Skip to content

Instantly share code, notes, and snippets.

@davehorton
Created August 6, 2018 12:45
Show Gist options
  • Save davehorton/87b050bcdec6913584f204c0ed4ada12 to your computer and use it in GitHub Desktop.
Save davehorton/87b050bcdec6913584f204c0ed4ada12 to your computer and use it in GitHub Desktop.
error scenario with ipv6 / ipv4
2018-08-06 11:17:43.410747 SipProxyController::doSendRequestOutsideDialog attempting to determine transport tport for request-uri sip:guiprat@sip.linphone.org proto: udp
2018-08-06 11:17:43.410761 SipTransport::findAppropriateTransport: searching for a transport to reach udp/sip:guiprat@sip.linphone.org
2018-08-06 11:17:43.410800 SipTransport::findAppropriateTransport: host parsed as sip.linphone.org
2018-08-06 11:17:43.410811 SipTransport::findAppropriateTransport - after filtering for transport we have 6 candidates
2018-08-06 11:17:43.410817 SipTransport::findAppropriateTransport - after filtering for protocol we have 3 candidates
2018-08-06 11:17:43.410865 SipTransport::findAppropriateTransport: - returning the best match 0x24c2f10: udp/10.196.160.34:5060
2018-08-06 11:17:43.410875 SipTransport::getContactUri - created Contact header: sip:10.196.160.34:5060
2018-08-06 11:17:43.410882 SipProxyController::doSendRequestOutsideDialog selected transport 0x24c2f10
2018-08-06 11:17:43.410905 makeTags - Adding well-known header 'From' with value 'sip:gprat@sip.linphone.org'
2018-08-06 11:17:43.410915 makeTags - Adding well-known header 'User-Agent' with value 'drachtio'
2018-08-06 11:17:43.410923 SipDialogController::doSendRequestOutsideDialog - from: sip:gprat@sip.linphone.org
2018-08-06 11:17:43.410929 SipDialogController::doSendRequestOutsideDialog - to: sip:guiprat@sip.linphone.org
2018-08-06 11:17:43.410935 SipDialogController::doSendRequestOutsideDialog - contact: <sip:10.196.160.34:5060>
2018-08-06 11:17:43.410941 SipDialogController::doSendRequestOutsideDialog - automatically detecting content-type as application/sdp
2018-08-06 11:17:43.410949 isLocalSipUri: checking to see if this is one of mine: sip:guiprat@sip.linphone.org
2018-08-06 11:17:43.410979 nta.c:4506 nta_leg_tcreate() nta_leg_tcreate(0x24c9860)
2018-08-06 11:17:43.411018 nta.c:2753 nta_tpn_by_url() nta: selecting scheme sip
2018-08-06 11:17:43.411035 sres_cache.c:272 sres_cache_get() sres_cache_get(0x24b9c20, NAPTR, "sip.linphone.org.") called
2018-08-06 11:17:43.411045 sres_cache.c:318 sres_cache_get() sres_cache_get(0x24b9c20, NAPTR, "sip.linphone.org.") returned 1 entries
2018-08-06 11:17:43.411052 nta.c:10503 outgoing_query_naptr() nta: for "sip.linphone.org" query "sip.linphone.org" NAPTR (cached)
2018-08-06 11:17:43.411069 sres_cache.c:272 sres_cache_get() sres_cache_get(0x24b9c20, SRV, "_sip._udp.sip.linphone.org.") called
2018-08-06 11:17:43.411078 sres_cache.c:318 sres_cache_get() sres_cache_get(0x24b9c20, SRV, "_sip._udp.sip.linphone.org.") returned 2 entries
2018-08-06 11:17:43.411084 nta.c:10703 outgoing_query_srv() nta: for "sip.linphone.org" query "_sip._udp.sip.linphone.org" SRV (cached)
2018-08-06 11:17:43.411093 nta.c:10799 outgoing_answer_srv() nta: _sip._udp.sip.linphone.org IN SRV 0 100 5060 sip3.linphone.org. (udp)
2018-08-06 11:17:43.411100 nta.c:10799 outgoing_answer_srv() nta: _sip._udp.sip.linphone.org IN SRV 10 100 5060 sip1.linphone.org. (udp)
2018-08-06 11:17:43.411111 sres_cache.c:272 sres_cache_get() sres_cache_get(0x24b9c20, AAAA, "sip3.linphone.org.") called
2018-08-06 11:17:43.411118 sres_cache.c:318 sres_cache_get() sres_cache_get(0x24b9c20, AAAA, "sip3.linphone.org.") returned 1 entries
2018-08-06 11:17:43.411125 nta.c:10825 outgoing_query_aaaa() nta: for "sip.linphone.org" query "sip3.linphone.org." AAAA (cached)
2018-08-06 11:17:43.411133 nta.c:10879 outgoing_answer_aaaa() nta(0x24cb2b0): sip3.linphone.org. IN AAAA 2001:41d0:8:6e48::
2018-08-06 11:17:43.411142 nta.c:10988 outgoing_query_results() nta(0x24cb2b0): sip3.linphone.org. A record still unresolved
2018-08-06 11:17:43.411156 nta.c:2595 outgoing_update_contact() outgoing_update_contact: updating contact to udp/[::1]:5060
2018-08-06 11:17:43.411177 tport.c:3285 tport_tsend() tport_tsend(0x24c4b40) tpn = udp/2001:41d0:8:6e48:::5060
2018-08-06 11:17:43.411188 tport.c:4085 tport_resolve() tport_resolve addrinfo = [2001:41d0:8:6e48::]:5060
2018-08-06 11:17:43.411217 tport.c:3684 tport_send_fatal() tport_vsend(0x24c4b40): Network is unreachable with (s=17, IP6=udp/2001:41d0:8:6e48:::5060 (scope=0) addrlen=28)
2018-08-06 11:17:43.411226 tport.c:3531 tport_send_msg() tport_vsend returned -1
2018-08-06 11:17:43.411235 nta.c:8597 outgoing_print_tport_error() nta: INVITE (126437467): trying alternative server after Network is unreachable (101) with udp/[2001:41d0:8:6e48::]:5060
2018-08-06 11:17:43.411243 sres_cache.c:272 sres_cache_get() sres_cache_get(0x24b9c20, A, "sip3.linphone.org.") called
2018-08-06 11:17:43.411250 sres_cache.c:318 sres_cache_get() sres_cache_get(0x24b9c20, A, "sip3.linphone.org.") returned 1 entries
2018-08-06 11:17:43.411257 nta.c:10908 outgoing_query_a() nta: for "sip.linphone.org" query "sip3.linphone.org." A (cached)
2018-08-06 11:17:43.411264 nta.c:10961 outgoing_answer_a() nta: sip3.linphone.org. IN A 37.59.51.72
2018-08-06 11:17:43.411275 tport.c:3285 tport_tsend() tport_tsend(0x24c2f10) tpn = udp/37.59.51.72:5060
2018-08-06 11:17:43.411284 tport.c:4085 tport_resolve() tport_resolve addrinfo = 37.59.51.72:5060
2018-08-06 11:17:43.411304 tport.c:3531 tport_send_msg() tport_vsend returned 1149
2018-08-06 11:17:43.411344 send 1149 bytes to udp/[37.59.51.72]:5060 at 11:17:43.411291:
INVITE sip:guiprat@sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 10.196.160.34;rport;branch=z9hG4bK25485rZD3ev2B
Max-Forwards: 70
From: <sip:gprat@sip.linphone.org>;tag=1SyZr9Byc0tSN
To: <sip:guiprat@sip.linphone.org>
Call-ID: 6a7b8b28-13fc-1237-00ab-64006a8ec907
CSeq: 126437467 INVITE
User-Agent: drachtio
Content-Type: application/sdp
Content-Length: 742
Contact: <sip:[::1]:5060;transport=udp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment