Hi
I have a kamailio proxy in front of asterisk ver 13 servers. I’m using path support to route to the relevant asterisk server depending on the domain in the sip header. The incoming registers & invites from sip endpoints get routed to the correct asterisk server , but when asterisk is sending sip options to the end points my kamailio config is not routing the option on to the endpoint .
Kamailio debug shows error below
ERROR: <script>: 192.168.200.131 OPTIONS sip:1333@192.168.200.112:5062 -- domain "192.168.200.112" is not found in domain table 192.168.200.131
Am I correct in thinking that this SIP option should be getting routed via my on-reply route.
the sip option looks like it is failing here at the start of my config
if (src_ip != BACKEND_NET4)
{
xlog("L_NOTICE", "FROM CLIENT IP: $si $rm $ru $td \n");
# SIP request packet client->backend
if( !loose_route() )
{
if (!lookup_domain("$td", "dattr_")) {
xlog("L_NOTOCE" , "Domain lookup, $rm ");
xlog("L_ERR", "$si $rm $ru -- domain \"$td\" is not " +
"found in domain table $si\n");
drop();
}
Sample of SIP option captured on the kamailio server
OPTIONS sip:1333@192.168.200.112:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.131:5060;branch=z9hG4bK4f910445
Max-Forwards: 70
Route: <sip:192.168.200.148;lr;received=sip:87.198.223.83:16070>
From: "Unknown" <sip:Unknown@192.168.200.131>;tag=as54cfb9df
To: <sip:1333@192.168.200.112:5062>
Contact: <sip:Unknown@192.168.200.131:5060>
Call-ID: 257dea110f5255275aa38d9c45e0e235@192.168.200.131:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(13.10.0)
Date: Fri, 22 Jul 2016 15:31:13 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer, path
Content-Length: 0
OPTIONS sip:1333@192.168.200.112:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.131:5060;branch=z9hG4bK20611e3b
Max-Forwards: 70
Route: <sip:192.168.200.148;lr;received=sip:87.198.223.83:16070>
From: "Unknown" <sip:Unknown@192.168.200.131>;tag=as1b6a0faf
To: <sip:1333@192.168.200.112:5062>
Contact: <sip:Unknown@192.168.200.131:5060>
Call-ID: 7f8ed5ea7a147f2b61269df862af7fae@192.168.200.131:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(13.10.0)
Date: Fri, 22 Jul 2016 15:31:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer, path
Content-Length: 0
Gerry Kernan
Infinity IT | 17 The Mall | Beacon Court | Sandyford | Dublin D18 E3C8 | Ireland
Tel: +353 - (0)1 - 293 0090 | E-Mail: gerry.kernan@infinityit.ie
Managed IT Services Infinity IT - www.infinityit.ie
IP Telephony Asterisk Consulting – www.asteriskconsulting.com
Contact Centre Total Interact – www.totalinteract.com