]> 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 15:07:55 +0000 (10:07 -0500)
commit07e62b4e0e704d8c3df409ff3a9b3d9fcec7fb3b
treec2b92939859c607478a81135bd28bd68298d7299
parenta5b49ff388d7c6d5ed8742384c8671c398d1dd55
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