diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-10-16 20:57:18 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-10-16 20:57:18 +0000 |
commit | 4d983e34cf17fd6a3286a6200ba02fb2e9b21a9b (patch) | |
tree | 5fc95dd15d0c7e4cad5d3d7f0195921d7cc00c21 /channels | |
parent | de9c5d4c42c05ccbcad6c8bcaf6c2beaaccb9b77 (diff) |
INVITES with proxy auth were sent with a different branch
than what was in the invite_branch of a sip_pvt, meaning
that if a CANCEL were sent later, the branch in the CANCEL
would not match the branch in the latest INVITE sent out, leading
to some endpoints responding to the CANCEL with a 481.
(closes issue #13714)
Reported by: fnordian
Patches:
invite_branch.patch uploaded by fnordian (license 110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 88a159335..e75cf55e9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8004,7 +8004,7 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in seqno = p->ocseq; } - if (sipmethod == SIP_CANCEL) { + if (sipmethod == SIP_CANCEL || sipmethod == SIP_INVITE) { p->branch = p->invite_branch; build_via(p); } else if (newbranch) { |