aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-13 02:18:26 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-13 02:18:26 +0000
commitd82623d3c9e06de92aff119df9156b32675bfba8 (patch)
treea9d0d6208c4454352af6f057c0b083c7cd863e45 /channels
parente71f1b9ab72b54bb96322711c844e69a537c4013 (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-xchannels/chan_sip.c5
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 */