summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2004-01-13 02:18:26 +0000
committerJeremy McNamara <jj@nufone.net>2004-01-13 02:18:26 +0000
commit226ec5bd25bdf679fd98a104ad7c2a9b1152c766 (patch)
treea9d0d6208c4454352af6f057c0b083c7cd863e45 /channels
parent33402397332e2e70c92c44ccdc07d8e617db6c39 (diff)
via z9hG4bK issue. Bug #663
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 */