]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Allow target refresh (Contact update) on re-INVITE. 78/3878/1
authorWalter Doekes <walter+github@wjd.nu>
Mon, 12 Sep 2016 08:28:17 +0000 (10:28 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 12 Sep 2016 08:40:47 +0000 (03:40 -0500)
commit52e6d0340119a8d6571a423ebf3a96722b2986cd
tree205c3d46e1e20843df681a491a818bfdc19de5b0
parent236761a5b2efc54a5baa32febdaa869a669c7ce7
chan_sip: Allow target refresh (Contact update) on re-INVITE.

Previously, the Contact was stored only on initial INVITE and on any
18X and 200. That meant that after re-INVITEs from *us* the Contact
could get updated, but after re-INVITEs from the *peer*, it did not.

This changeset fixes this inconsistency, properly allowing target
refreshes through re-INVITES (RFC3261, 12.2).

If your strictrtp setting allows it, this change allows you to switch
the source IP of a connected/calling device mid-call with a simple
re-INVITE from the new IP.

ASTERISK-26358 #close

Change-Id: Ibb8512054ab27c8c3d2514022568fde943bf2435
channels/chan_sip.c