]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Do not change IP address in SDP origin line (o=) in SIP reINVITE
authorVitezslav Novy <a1@vnovy.net>
Wed, 6 Sep 2017 10:23:25 +0000 (12:23 +0200)
committerVitezslav Novy <a1@vnovy.net>
Wed, 6 Sep 2017 14:22:53 +0000 (16:22 +0200)
commit597d1f89510145b94e12afa7fcf71f3901c66ca7
tree5cdc89e87c5b269839001f7338ed56f9e9befe68
parent7b240d173436ad828008d1cb3c1eae10932518be
chan_sip: Do not change IP address in SDP origin line (o=) in SIP reINVITE

If directmedia=yes is configured, when call is answered, Asterisk sends reINVITE
to both parties to set up media path directly between the endpoints.
In this reINVITE msg SDP origin line (o=) contains IP address of endpoint
instead of IP of asterisk. This behavior violates RFC3264, sec 8:
"When issuing an offer that modifies the session,
the "o=" line of the new SDP MUST be identical to that in the
previous SDP, except that the version in the origin field MUST
increment by one from the previous SDP."
This patch assures IP address of Asterisk is always sent in
SDP origin line.

ASTERISK-17540
Reported by:  saghul

Change-Id: I533a047490c43dcff32eeca8378b2ba02345b64e
channels/chan_sip.c