[asterisk-commits] schmidts: branch schmidts/unleash-the-beast r340563 - /team/schmidts/unleash-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 12 15:27:08 CDT 2011
Author: schmidts
Date: Wed Oct 12 15:26:56 2011
New Revision: 340563
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340563
Log:
Store route-set from provisional SIP responses so early-dialog requests can be routed properly
Modified:
team/schmidts/unleash-the-beast/channels/chan_sip.c
Modified: team/schmidts/unleash-the-beast/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/schmidts/unleash-the-beast/channels/chan_sip.c?view=diff&rev=340563&r1=340562&r2=340563
==============================================================================
--- team/schmidts/unleash-the-beast/channels/chan_sip.c (original)
+++ team/schmidts/unleash-the-beast/channels/chan_sip.c Wed Oct 12 15:26:56 2011
@@ -19486,6 +19486,13 @@
case 182: /* 182 Queued */
if (!req->ignore && p->invitestate != INV_CANCELLED && sip_cancel_destroy(p))
ast_log(LOG_WARNING, "Unable to cancel SIP destruction. Expect bad things.\n");
+ /* Store Route-set from provisional SIP responses so
+ * early-dialog request can be routed properly
+ * */
+ parse_ok_contact(p, req);
+ if (!reinvite) {
+ build_route(p, req, 1);
+ }
if (!req->ignore && p->owner) {
if (get_rpid(p, req)) {
/* Queue a connected line update */
@@ -19548,6 +19555,13 @@
case 183: /* Session progress */
if (!req->ignore && (p->invitestate != INV_CANCELLED) && sip_cancel_destroy(p))
ast_log(LOG_WARNING, "Unable to cancel SIP destruction. Expect bad things.\n");
+ /* Store Route-set from provisional SIP responses so
+ * early-dialog request can be routed properly
+ * */
+ parse_ok_contact(p, req);
+ if (!reinvite) {
+ build_route(p, req, 1);
+ }
if (!req->ignore && p->owner) {
if (get_rpid(p, req)) {
/* Queue a connected line update */
More information about the asterisk-commits
mailing list