]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Allow target refresh (Contact update) on re-INVITE. 79/3879/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:54 +0000 (03:40 -0500)
commitda8ba990d13c0dd396b625cc98a9e00ca85d986a
tree21c24f7b0b95cc379f2a54830bd5eec8c8bf1bdb
parent7580a736bb30577d7557aac9165894dc9f9583e6
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