I have an issue where pbxnsip does not resolve the srv records correctly. I do not understand how it decides to use udp 66.135.59.238 5060 when I have no SRV record in my public dns that points to this!
[7] 2010/07/27 17:15:21: SIP Rx udp:172.31.255.149:5060:
INVITE sip:48@172.31.255.29:5060 SIP/2.0
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bK3511bfc26b58ba3f6.af640dfba1534ddfd
Max-Forwards: 70
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5846 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE, PRACK, SUBSCRIBE, INFO
Allow-Events: talk, hold, conference, LocalModeStatus
Contact: "47" <sip:47@172.31.255.149:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-1000-8000-00085D23EDC4>"
Supported: gruu, path, timer, 100rel, replaces
User-Agent: Aastra 57i/2.5.2.1010
Content-Type: application/sdp
Content-Length: 287
v=0
o=MxSIP 0 0 IN IP4 172.31.255.149
s=SIP Call
c=IN IP4 172.31.255.149
t=0 0
m=audio 3000 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=silenceSupp:off - - - -
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
[9] 2010/07/27 17:15:21: UDP: Opening socket on 0.0.0.0:49674
[9] 2010/07/27 17:15:21: UDP: Opening socket on 0.0.0.0:49675
[9] 2010/07/27 17:15:21: UDP: Opening socket on [::]:49674
[9] 2010/07/27 17:15:21: UDP: Opening socket on [::]:49675
[8] 2010/07/27 17:15:21: Could not find a trunk (2 trunks)
[9] 2010/07/27 17:15:21: Resolve 25: aaaa udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 25: a udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 25: udp 172.31.255.149 5060
[7] 2010/07/27 17:15:21: SIP Tx udp:172.31.255.149:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bK3511bfc26b58ba3f6.af640dfba1534ddfd
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>;tag=1275aa62e9
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5846 INVITE
Content-Length: 0
[9] 2010/07/27 17:15:21: Resolve 26: aaaa udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 26: a udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 26: udp 172.31.255.149 5060
[7] 2010/07/27 17:15:21: SIP Tx udp:172.31.255.149:5060:
SIP/2.0 401 Authentication Required
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bK3511bfc26b58ba3f6.af640dfba1534ddfd
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>;tag=1275aa62e9
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5846 INVITE
User-Agent: pbxnsip-PBX/4.0.1.3499
WWW-Authenticate: Digest realm="172.31.255.29",nonce="62c935252b1526263a7995602ad1556e",domain="sip:48@172.31.255.29:5060",algorithm=MD5
Content-Length: 0
[7] 2010/07/27 17:15:21: SIP Rx udp:172.31.255.149:5060:
ACK sip:48@172.31.255.29:5060 SIP/2.0
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bK3511bfc26b58ba3f6.af640dfba1534ddfd
Max-Forwards: 70
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>;tag=1275aa62e9
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5846 ACK
User-Agent: Aastra 57i/2.5.2.1010
Content-Length: 0
[7] 2010/07/27 17:15:21: SIP Rx udp:172.31.255.149:5060:
INVITE sip:48@172.31.255.29:5060 SIP/2.0
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bKb3efd381255b960e6.63cc29c408c88244d
Max-Forwards: 70
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5847 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE, PRACK, SUBSCRIBE, INFO
Allow-Events: talk, hold, conference, LocalModeStatus
Authorization: Digest username="47",realm="172.31.255.29",nonce="62c935252b1526263a7995602ad1556e",uri="sip:48@172.31.255.29:5060",response="d4d00e580a0a28f65b39aa15673f9b45",algorithm=MD5
Contact: "47" <sip:47@172.31.255.149:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-1000-8000-00085D23EDC4>"
Supported: gruu, path, timer, 100rel, replaces
User-Agent: Aastra 57i/2.5.2.1010
Content-Type: application/sdp
Content-Length: 287
v=0
o=MxSIP 0 0 IN IP4 172.31.255.149
s=SIP Call
c=IN IP4 172.31.255.149
t=0 0
m=audio 3000 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=silenceSupp:off - - - -
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
[8] 2010/07/27 17:15:21: Tagging request with existing tag
[7] 2010/07/27 17:15:21: Set packet length to 20
[6] 2010/07/27 17:15:21: Sending RTP for 8cf3ae7f9ecf8b60#1275aa62e9 to 172.31.255.149:3000
[9] 2010/07/27 17:15:21: Resolve 27: aaaa udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 27: a udp 172.31.255.149 5060
[9] 2010/07/27 17:15:21: Resolve 27: udp 172.31.255.149 5060
[7] 2010/07/27 17:15:21: SIP Tx udp:172.31.255.149:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.31.255.149:5060;branch=z9hG4bKb3efd381255b960e6.63cc29c408c88244d
From: "47" <sip:47@172.31.255.29:5060>;tag=c79951fecd
To: "48" <sip:48@172.31.255.29:5060>;tag=1275aa62e9
Call-ID: 8cf3ae7f9ecf8b60
CSeq: 5847 INVITE
Content-Length: 0
[8] 2010/07/27 17:15:21: Call state for call object 2: idle
[8] 2010/07/27 17:15:21: Call state for call object 2: alerting
[8] 2010/07/27 17:15:21: Play audio_moh/noise.wav
[9] 2010/07/27 17:15:21: UDP: Opening socket on 0.0.0.0:62168
[9] 2010/07/27 17:15:21: UDP: Opening socket on 0.0.0.0:62169
[9] 2010/07/27 17:15:21: UDP: Opening socket on [::]:62168
[9] 2010/07/27 17:15:21: UDP: Opening socket on [::]:62169
[9] 2010/07/27 17:15:21: Resolve 28: url sip:jameel@netsmart.ca
[9] 2010/07/27 17:15:21: Resolve 28: naptr netsmart.ca
[9] 2010/07/27 17:15:21: DNS: Request netsmart.ca from server 172.31.255.10
[8] 2010/07/27 17:15:21: DNS: Add NAPTR netsmart.ca (ttl=60)
[9] 2010/07/27 17:15:21: Resolve 28: naptr netsmart.ca
[9] 2010/07/27 17:15:21: Resolve 28: srv tls _sips._tcp.netsmart.ca
[9] 2010/07/27 17:15:21: DNS: Request _sips._tcp.netsmart.ca from server 172.31.255.10
[8] 2010/07/27 17:15:21: DNS: Add SRV _sips._tcp.netsmart.ca (ttl=60)
[9] 2010/07/27 17:15:21: Resolve 28: srv tls _sips._tcp.netsmart.ca
[9] 2010/07/27 17:15:21: Resolve 28: srv tcp _sip._tcp.netsmart.ca
[9] 2010/07/27 17:15:21: DNS: Request _sip._tcp.netsmart.ca from server 172.31.255.10
[8] 2010/07/27 17:15:21: DNS: Add SRV _sip._tcp.netsmart.ca (ttl=60)
[9] 2010/07/27 17:15:21: Resolve 28: srv tcp _sip._tcp.netsmart.ca
[9] 2010/07/27 17:15:21: Resolve 28: srv udp _sip._udp.netsmart.ca
[9] 2010/07/27 17:15:21: DNS: Request _sip._udp.netsmart.ca from server 172.31.255.10
[8] 2010/07/27 17:15:21: DNS: Add SRV _sip._udp.netsmart.ca (ttl=60)
[9] 2010/07/27 17:15:21: Resolve 28: srv udp _sip._udp.netsmart.ca
[9] 2010/07/27 17:15:21: Resolve 28: aaaa udp netsmart.ca 5060
[9] 2010/07/27 17:15:21: DNS: Request netsmart.ca from server 172.31.255.10
[8] 2010/07/27 17:15:21: DNS: Add AAAA netsmart.ca (ttl=60)
[9] 2010/07/27 17:15:21: Resolve 28: aaaa udp netsmart.ca 5060
[9] 2010/07/27 17:15:21: Resolve 28: a udp netsmart.ca 5060
[9] 2010/07/27 17:15:21: Resolve 28: udp 66.135.59.238 5060
[7] 2010/07/27 17:15:21: SIP Tx udp:66.135.59.238:5060: