[asterisk-commits] schmidts: branch 1.8 r341366 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 19 02:15:56 CDT 2011


Author: schmidts
Date: Wed Oct 19 02:15:51 2011
New Revision: 341366

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341366
Log:
Don't sent in-dialog requests like UPDATE when Asterisk has not yet received a Contact URI from a UAS

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=341366&r1=341365&r2=341366
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Oct 19 02:15:51 2011
@@ -12547,7 +12547,7 @@
 			ast_set_flag(&p->flags[0], SIP_OUTGOING);
 			p->invitestate = INV_CALLING;
 			send_request(p, &req, XMIT_CRITICAL, p->ocseq);
-		} else if (is_method_allowed(&p->allowed_methods, SIP_UPDATE)) {
+		} else if ((is_method_allowed(&p->allowed_methods, SIP_UPDATE)) && (!ast_strlen_zero(p->okcontacturi))) { 
 			reqprep(&req, p, SIP_UPDATE, 0, 1);
 			add_rpid(&req, p);
 			add_header(&req, "X-Asterisk-rpid-update", "Yes");




More information about the asterisk-commits mailing list