]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_multihomed: Change Contact port to listening port. 03/3903/3
authorJoshua Colp <jcolp@digium.com>
Wed, 14 Sep 2016 13:42:46 +0000 (09:42 -0400)
committerJoshua Colp <jcolp@digium.com>
Thu, 15 Sep 2016 13:26:36 +0000 (08:26 -0500)
commit9d894ee0a183de3fb54c662bcacf6fc4b2f8a9dd
tree1f84277f15590f59f886b06602885dd4a18e46e9
parent95cf4f8d3128d3c972126efd5b7e4e7b55486fa2
res_pjsip_multihomed: Change Contact port to listening port.

The res_pjsip_multihomed module determines what interface and transport
a request is going out on and updates the SIP message accordingly with
the address information. This currently incorrectly updates the Contact
header for connectionful protocols to the ephemeral connection port,
instead of the bound address for the listening socket which can actually
accept the connection back. If the remote side attempts to connect back on
the epehemeral port it will fail.

This change makes it so the port is updated to the bound port on
connectionful protocols and is maintained on UDP (as there can be
multiple of those).

ASTERISK-26374 #close

Change-Id: I50f8dab65b9f75117d73ba5f6bbcf6c9871854ab
res/res_pjsip_multihomed.c