]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_multihomed: Change Contact port to listening port. 01/3901/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:06 +0000 (08:26 -0500)
commit449719be008f8b7073d350f587c93159afa8f37f
tree255da9bf18ab1238436fb42deffede9721468ff0
parent11d05fc3699aa3547be722b83529bfecbe15ee4f
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