I've been working on integration of Asterisk and Kamailio, currently on the
same host with different ports, and have come across a problem with calls that
originate from the Asterisk side (PSTN/DAHDI) and route through Kamailio to a
SIP UAC. In short, when the SIP UAC (10.1.1.9) sends the BYE, loose_route()
is returning -1 and the BYE is routed back to Kamailio (10.1.1.1:5060) instead
of Asterisk (10.1.1.1:5080). I am using the stock WITHINDLG route
configuration.
RR module settings are as follows:
modparam("rr", "enable_full_lr", 1)
modparam("rr", "append_fromtag", 1)
The BYE from the SIP UAC contains the following Route header which only
contains the contents of Kamailio's Record-Route header. I have attached the
full sip trace for review as well.
Route: <sip:10.1.1.1;lr=on;ftag=2400d939-de0b-4456-9e01-f9a3302f3e25;nat=yes>.
What would be the best method to resolve this issue in either Asterisk or
Kamailio? Should I manually add a Record-Route header for the Asterisk
host:port to Kamailio config? Is there something to be done in Asterisk?
Thanks. -A
--
Anthony -
https://messinet.com/ -
https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E