diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 02:18:26 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 02:18:26 +0000 |
commit | d82623d3c9e06de92aff119df9156b32675bfba8 (patch) | |
tree | a9d0d6208c4454352af6f057c0b083c7cd863e45 /channels | |
parent | e71f1b9ab72b54bb96322711c844e69a537c4013 (diff) |
via z9hG4bK issue. Bug #663
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2000 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 289c3fcc6..f3dc75df7 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2703,8 +2703,11 @@ static int transmit_reinvite_with_sdp(struct sip_pvt *p, struct ast_rtp *rtp, st struct sip_request req; if (p->canreinvite == REINVITE_UPDATE) reqprep(&req, p, "UPDATE", 0); - else + else { + p->branch++; + snprintf(p->via, sizeof(p->via), "SIP/2.0/UDP %s:%d;branch=z9hG4bK%08x", inet_ntoa(p->ourip), ourport, p->branch); reqprep(&req, p, "INVITE", 0); + } add_header(&req, "Allow", ALLOWED_METHODS); add_sdp(&req, p, rtp, vrtp); /* Use this as the basis */ |