[asterisk-commits] schmidts: branch schmidts/unleash-the-beast r341429 - /team/schmidts/unleash-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 19 05:25:22 CDT 2011
Author: schmidts
Date: Wed Oct 19 05:25:18 2011
New Revision: 341429
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341429
Log:
Don't sent in-dialog requests like UPDATE when Asterisk has not yet received a Contact URI from a UAS
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=341429&r1=341428&r2=341429
==============================================================================
--- team/schmidts/unleash-the-beast/channels/chan_sip.c (original)
+++ team/schmidts/unleash-the-beast/channels/chan_sip.c Wed Oct 19 05:25:18 2011
@@ -12578,7 +12578,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