<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Brian West wrote:
<blockquote
cite="mid:06E75670-DFEC-404F-A1EA-C22CE66D7F2B@freeswitch.org"
type="cite"><span class="Apple-style-span"
style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><font
class="Apple-style-span" color="#000000"><font class="Apple-style-span"
color="#144fae"><br>
</font></font></span>
<div><br>
<div>I really find that one hard to believe. š</div>
<br>
</div>
</blockquote>
Hard to believe, but this is true:<br>
<br>
<br>
I have made PURE experiment.<br>
My friend has registered SIP-phone behind NAT in Ukraine.<br>
His registration:<br>
<br>
Call-ID:ššššššš <a class="moz-txt-link-abbreviated" href="mailto:4a978b30@192.168.10.103">4a978b30@192.168.10.103</a><br>
User:šššššššššš <a class="moz-txt-link-abbreviated" href="mailto:1012@192.168.1.5">1012@192.168.1.5</a><br>
Contact:ššššššš "user" <a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.136:1024"><sip:1012@192.168.1.136:1024></a><br>
Agent:ššššššššš AcctonVoIP/2.5<br>
Status:šššššššš Registered(UDP)(unknown) EXP(2010-05-23 14:27:20)<br>
Host:šššššššššš olegh.ath.cx<br>
IP:šššššššššššš 91.207.244.1<br>
Port:šššššššššš 1024<br>
Auth-User:ššššš 1012<br>
Auth-Realm:šššš olegh.ath.cx<br>
MWI-Account:ššš <a class="moz-txt-link-abbreviated" href="mailto:1012@192.168.1.5">1012@192.168.1.5</a><br>
<br>
<br>
I tried call 1001 -> 1012, fs_cli prints:<br>
<br>
<br>
2010-05-23 12:37:01.593320 [NOTICE] switch_channel.c:669 New Channel
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/sip:1012@192.168.1.136:1024">sofia/internal/sip:1012@192.168.1.136:1024</a>
[2b79d969-8966-df11-ac63-005004c3cb7e]<br>
<br>
I sniffed network traffic, FS tries connect to his LAN address from
"Contact", not his real address:<br>
<br>
olegh# tcpdump host'(192.168.1.136 or 91.207.244.1)'<br>
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode<br>
listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes<br>
12:40:55.044208 arp who-has 192.168.1.136 tell deskpro.khovayko.com<br>
12:40:55.544711 arp who-has 192.168.1.136 tell deskpro.khovayko.com<br>
12:40:56.545145 arp who-has 192.168.1.136 tell deskpro.khovayko.com<br>
12:40:58.546827 arp who-has 192.168.1.136 tell deskpro.khovayko.com<br>
<br>
<br>
<blockquote
cite="mid:06E75670-DFEC-404F-A1EA-C22CE66D7F2B@freeswitch.org"
type="cite">
<div>sofia profile xxx siptrace on</div>
<div><br>
</div>
<div>I will be you its NOT ignoring the fs_path you just can't see
the packet leaving and since its TCP the far side nat I suspect has
closed the nat translation thus you'll need to register more often or
enable keep alives on the device.</div>
<div><br>
</div>
<div>/b</div>
<div><br>
</div>
</blockquote>
<br>
I tried to do this -- results as same as with tcpdump.<br>
My local phone has number 1001, IP=192.168.1.130, try to call 1012
(behind NAT, see registration above):<br>
<br>
<br>
freeswitch@internal><br>
freeswitch@internal><br>
freeswitch@internal> <br>
recv 950 bytes from udp/[192.168.1.130]:5060 at 16:55:30.811681:<br>
šš
------------------------------------------------------------------------<br>
šš INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:1012@192.168.1.5">sip:1012@192.168.1.5</a> SIP/2.0<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bKe2ba0d5f00302<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a><br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166667 INVITE<br>
šš Max-Forwards: 70<br>
šš Contact: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.130:5060"><sip:1001@192.168.1.130:5060></a><br>
šš P-Preferred-Identity: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5:5060"><sip:1001@192.168.1.5:5060></a><br>
šš User-Agent: AcctonVoIP/2.5<br>
šš Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, SUBSCRIBE, REFER, NOTIFY,
PRACK, UPDATE, MESSAGE, SERVICE, INFO, PING<br>
šš Allow-Events: refer<br>
šš Supported: 100rel, replaces<br>
šš Content-Length: 322<br>
šš Content-Type: application/sdp<br>
<br>
šš v=0<br>
šš o=- 608413784 756898537 IN IP4 192.168.1.130<br>
šš s=Voice call<br>
šš <a class="moz-txt-link-abbreviated" href="mailto:e=you@yourcompany.com">e=you@yourcompany.com</a><br>
šš c=IN IP4 192.168.1.130<br>
šš t=0 0<br>
šš a=sendrecv<br>
šš m=audio 5000 RTP/AVP 0 8 18 100<br>
šš a=ptime:20<br>
šš a=maxptime:30<br>
šš a=sendrecv<br>
šš a=rtpmap:0 pcmu/8000<br>
šš a=rtpmap:8 pcma/8000<br>
šš a=rtpmap:18 g729/8000<br>
šš a=rtpmap:100 telephone-event/8000<br>
šš a=fmtp:100 0-15<br>
šš
------------------------------------------------------------------------<br>
send 307 bytes to udp/[192.168.1.130]:5060 at 16:55:30.815843:<br>
šš
------------------------------------------------------------------------<br>
šš SIP/2.0 100 Trying<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bKe2ba0d5f00302<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a><br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166667 INVITE<br>
šš User-Agent: FreeSWITCH-mod_sofia/1.0.6-svn-exported<br>
šš Content-Length: 0<br>
<br>
šš
------------------------------------------------------------------------<br>
send 788 bytes to udp/[192.168.1.130]:5060 at 16:55:30.842061:<br>
šš
------------------------------------------------------------------------<br>
šš SIP/2.0 407 Proxy Authentication Required<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bKe2ba0d5f00302<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012 <a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a>;tag=Za0U6NHjK7H6S<br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166667 INVITE<br>
šš User-Agent: FreeSWITCH-mod_sofia/1.0.6-svn-exported<br>
šš Accept: application/sdp<br>
šš Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
šš Supported: timer, precondition, path, replaces<br>
šš Allow-Events: talk, presence, dialog, line-seize, call-info, sla,
include-session-description, presence.winfo, message-summary, refer<br>
šš Proxy-Authenticate: Digest realm="192.168.1.5",
nonce="4f2df2fe-8b66-df11-ac63-005004c3cb7e", algorithm=MD5, qop="auth"<br>
šš Content-Length: 0<br>
<br>
šš
------------------------------------------------------------------------<br>
recv 329 bytes from udp/[192.168.1.130]:5060 at 16:55:30.907144:<br>
šš
------------------------------------------------------------------------<br>
šš ACK <a class="moz-txt-link-abbreviated" href="mailto:sip:1012@192.168.1.5">sip:1012@192.168.1.5</a> SIP/2.0<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bKe2ba0d5f00302<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a>;tag=Za0U6NHjK7H6S<br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166667 ACK<br>
šš Max-Forwards: 70<br>
šš User-Agent: AcctonVoIP/2.5<br>
šš Content-Length: 0<br>
<br>
šš
------------------------------------------------------------------------<br>
recv 1177 bytes from udp/[192.168.1.130]:5060 at 16:55:30.913127:<br>
šš
------------------------------------------------------------------------<br>
šš INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:1012@192.168.1.5">sip:1012@192.168.1.5</a> SIP/2.0<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK69429b9100303<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a><br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166668 INVITE<br>
šš Max-Forwards: 70<br>
šš Contact: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.130:5060"><sip:1001@192.168.1.130:5060></a><br>
šš P-Preferred-Identity: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5:5060"><sip:1001@192.168.1.5:5060></a><br>
šš User-Agent: AcctonVoIP/2.5<br>
šš Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, SUBSCRIBE, REFER, NOTIFY,
PRACK, UPDATE, MESSAGE, SERVICE, INFO, PING<br>
šš Allow-Events: refer<br>
šš Supported: 100rel, replaces<br>
šš Proxy-Authorization: Digest username="1001", realm="192.168.1.5",
uri=<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5">"sip:1012@192.168.1.5"</a>,
nonce="4f2df2fe-8b66-df11-ac63-005004c3cb7e", qop=auth,
cnonce="2f9b946d", nc=00000001,
response="32cf7ea1d398bce1e1c8f53380a6bcea"<br>
šš Content-Length: 322<br>
šš Content-Type: application/sdp<br>
<br>
šš v=0<br>
šš o=- 608413784 756898537 IN IP4 192.168.1.130<br>
šš s=Voice call<br>
šš <a class="moz-txt-link-abbreviated" href="mailto:e=you@yourcompany.com">e=you@yourcompany.com</a><br>
šš c=IN IP4 192.168.1.130<br>
šš t=0 0<br>
šš a=sendrecv<br>
šš m=audio 5000 RTP/AVP 0 8 18 100<br>
šš a=ptime:20<br>
šš a=maxptime:30<br>
šš a=sendrecv<br>
šš a=rtpmap:0 pcmu/8000<br>
šš a=rtpmap:8 pcma/8000<br>
šš a=rtpmap:18 g729/8000<br>
šš a=rtpmap:100 telephone-event/8000<br>
šš a=fmtp:100 0-15<br>
šš
------------------------------------------------------------------------<br>
send 307 bytes to udp/[192.168.1.130]:5060 at 16:55:30.919399:<br>
šš
------------------------------------------------------------------------<br>
šš SIP/2.0 100 Trying<br>
šš Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK69429b9100303<br>
šš From: 1001 Cabinet<a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=4df567c4<br>
šš To: 1012<a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.5"><sip:1012@192.168.1.5></a><br>
šš Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:78fdee2b-17@192.168.1.130">78fdee2b-17@192.168.1.130</a><br>
šš CSeq: 1380166668 INVITE<br>
šš User-Agent: FreeSWITCH-mod_sofia/1.0.6-svn-exported<br>
šš Content-Length: 0<br>
<br>
šš
------------------------------------------------------------------------<br>
send 1302 bytes to udp/[192.168.1.136]:1024 at 16:55:31.703579:<br>
šš
------------------------------------------------------------------------<br>
šš INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:1012@192.168.1.136:1024">sip:1012@192.168.1.136:1024</a> SIP/2.0<br>
šš Via: SIP/2.0/UDP 192.168.1.5;rport;branch=z9hG4bK2ajD0jFj617vN<br>
šš Max-Forwards: 69<br>
šš From: "Extension 1001" <a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a>;tag=1vjDacKSDSyBH<br>
šš To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:1012@192.168.1.136:1024"><sip:1012@192.168.1.136:1024></a><br>
šš Call-ID: d6d76003-e12e-122d-728c-2fb53066047d<br>
šš CSeq: 131198529 INVITE<br>
šš Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:mod_sofia@192.168.1.5:5060"><sip:mod_sofia@192.168.1.5:5060></a><br>
šš User-Agent: FreeSWITCH-mod_sofia/1.0.6-svn-exported<br>
šš Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
šš Supported: timer, precondition, path, replaces<br>
šš Allow-Events: talk, presence, dialog, line-seize, call-info, sla,
include-session-description, presence.winfo, message-summary, refer<br>
šš Privacy: none<br>
šš Content-Type: application/sdp<br>
šš Content-Disposition: session<br>
šš Content-Length: 425<br>
šš X-FS-Support: update_display<br>
šš P-Asserted-Identity: "Extension 1001" <a class="moz-txt-link-rfc2396E" href="mailto:sip:1001@192.168.1.5"><sip:1001@192.168.1.5></a><br>
<br>
šš v=0<br>
šš o=FreeSWITCH 1274609641 1274609642 IN IP4 192.168.1.5<br>
šš s=FreeSWITCH<br>
šš c=IN IP4 192.168.1.5<br>
šš t=0 0<br>
šš m=audio 24090 RTP/AVP 0 115 107 9 8 3 101 13<br>
šš a=rtpmap:0 PCMU/8000<br>
šš a=rtpmap:115 G7221/32000<br>
šš a=fmtp:115 bitrate=48000<br>
šš a=rtpmap:107 G7221/16000<br>
šš a=fmtp:107 bitrate=32000<br>
šš a=rtpmap:9 G722/8000<br>
šš a=rtpmap:8 PCMA/8000<br>
šš a=rtpmap:3 GSM/8000<br>
šš a=rtpmap:101 telephone-event/8000<br>
šš a=fmtp:101 0-16<br>
šš a=rtpmap:13 CN/8000<br>
šš a=ptime:20<br>
šš
------------------------------------------------------------------------<br>
<br>
<br>
<br>
<br>
</body>
</html>