Asterisk V10, SIP MESSAGE Fails For Unknown Reason, Missing DNS-lookup?
Hi,
I’m using SIP MESSAGE to asterisk V10 and it fails to be received.
I’m not super sure of the reason but I’m making this guess:
Due to I’m using non ipaddress in the to field, which contains sip:mobil1.xyz.com, Asterisk makes the mistake to try matching this name “mobil1.testserver.com” in extensions.conf and no extension/peer is found in the sip-message context I’ve configured.
It works when the TO: field contains an numeric ipadress. Any hints how to be able to make asterisk first look up the ip before trying to match it?
/Johan
LOG
[Feb 12 15:13:59] VERBOSE[25824] chan_sip.c:
<--- SIP read from UDP:83.186.238.111:5060 --->
MESSAGE sip:mobil1.xyz.com SIP/2.0
Via: SIP/2.0/UDP 83.186.238.111:5060;branch=z9hG4bK-3f138a53
To:
From:
Call-ID: 857d4ed8@83.186.238.111
CSeq: 245 MESSAGE
Max-Forwards: 70
User-Agent: CareIP 7813409 v1.2.4.0
Content-Type: application/scaip+xml Content-Length: 138
My message
<------------->
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 0 [ 49]: MESSAGE sip:mobil1.xyz.com SIP/2.0
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 1 [ 60]: Via: SIP/2.0/UDP 83.186.238.111:5060;branch=z9hG4bK-3f138a53
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 2 [ 39]: To:
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 3 [ 39]: From:
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 4 [ 32]: Call-ID: 857d4ed8@83.186.238.111
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 5 [ 17]: CSeq: 245 MESSAGE
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 6 [ 16]: Max-Forwards: 70
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 7 [ 35]: User-Agent: CareIP 7813409 v1.2.4.0
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 8 [ 35]: Content-Type: application/scaip+xml
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 9 [ 19]: Content-Length: 138
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Header 10 [ 0]:
[Feb 12 15:13:59] DEBUG[25824] chan_sip.c: Body 0 [138]: My message
[Feb 12 15:13:59] VERBOSE[25824] chan_sip.c: — (10 headers 1 lines) –