From: Stefan Schmidt Date: Wed, 19 Oct 2011 07:23:34 +0000 (+0000) Subject: Don't sent in-dialog requests like UPDATE when Asterisk has not yet received a Contac... X-Git-Tag: 10.0.0-rc1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4cc7f518e38c903cf5cba852aa956ee4930c243;p=thirdparty%2Fasterisk.git Don't sent in-dialog requests like UPDATE when Asterisk has not yet received a Contact URI from a UAS ........ Merged revisions 341366 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@341377 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 63e95051aa..7228298834 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12824,7 +12824,7 @@ static void update_connectedline(struct sip_pvt *p, const void *data, size_t dat 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");