Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 149918) +++ channels/chan_sip.c (working copy) @@ -7816,7 +7816,7 @@ 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) {