]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip / res_pjsip_multihomed: Use the correct transport and addressing informatio... 64/364/1
authorJoshua Colp <jcolp@digium.com>
Mon, 19 Jan 2015 13:18:32 +0000 (13:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 5 May 2015 15:22:43 +0000 (12:22 -0300)
commitbf31a486cb0cb82a80ddf6b113a522be32749b05
tree3aaee1c15f10584c46602ff7db281b873251d703
parent0602409c898782bb4cad29c9978738d9401798cc
res_pjsip / res_pjsip_multihomed: Use the correct transport and addressing information on UAS sessions.

The first thing this patch fixes is UAS dialogs. Previously if a transport was
configured on an endpoint and an inbound session was created there was no guarantee
that requests sent on the dialog would use the correct transport and address
information. This has now been fixed so an explicitly configured transport
is taken into account.

The second thing this patch fixes is res_pjsip_multihomed. The res_pjsip_multihomed
module attempts to determine what transport a message should go out on and what
addressing information should go into the message itself. In a scenario where
multiple transports exist bound to the same IP address but a different port the
code would incorrectly alter the transport and change the message to the wrong
transport. This change makes the res_pjsip_multihomed module smarter so it will
only change the transport and address information in the message when it is
possible and makes sense.

ASTERISK-24615 #close
Reported by: David Justl

Change-Id: I5b57362201cc8c6555834ec8707e9fbddeff7904
res/res_pjsip.c
res/res_pjsip_multihomed.c