]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Allow target refresh (Contact update) on re-INVITE. 80/3880/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:41:00 +0000 (03:41 -0500)
commit53cb0f9e84835d4a650262498ef14d4a550b2a12
tree163b88bc79e636db98f022b4c5d2c7b28c755b3c
parente5c409da6e9a0651fa4041e5a02d916aadec858f
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