[asterisk-commits] schmidts: branch 10 r340718 - /branches/10/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 13 01:59:53 CDT 2011


Author: schmidts
Date: Thu Oct 13 01:59:50 2011
New Revision: 340718

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340718
Log:
Merged revisions 340717 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r340717 | schmidts | 2011-10-13 06:58:00 +0000 (Thu, 13 Oct 2011) | 3 lines
  
  storing the route-set also on a 181 response not only on 180,182 or 183.
........

Modified:
    branches/10/channels/chan_sip.c

Modified: branches/10/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_sip.c?view=diff&rev=340718&r1=340717&r2=340718
==============================================================================
--- branches/10/channels/chan_sip.c (original)
+++ branches/10/channels/chan_sip.c Thu Oct 13 01:59:50 2011
@@ -19997,6 +19997,13 @@
 	case 181:	/* Call Is Being Forwarded */
 		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) {
 			struct ast_party_redirecting redirecting;
 			struct ast_set_party_redirecting update_redirecting;




More information about the asterisk-commits mailing list