]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_multihomed: Change Contact port to listening port. 00/3900/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:25:26 +0000 (09:25 -0400)
commitf1c06322badb5f998a2350fa530fa5656441610f
tree18c707a6d6d186a646025639e72b2ee17bc498f7
parentd6c9e72c93fdb0d28830dbcd8408891f19553699
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