[Freeswitch-users] Need help in NAT traversal

Anton Kvashenkin anton.jugatsu at gmail.com
Mon Oct 1 23:17:51 MSD 2012


Which gateway do you use? You can try stun.sipnet.ru. Could you please
paste sip-messages (use ngrep) from 3-way handshake, also sofia_contact
*/external_gateway

2012/10/1 Виталий Давудов <vitaliy.davudov at vts24.ru>

>  Hi!
> I tried to establish connection between Freeswitch and external gateway
> which is located behind NAT.
>
> NAT-gateway is configured to do ip/port forwarding.
>
> RTP session can't be established. With tcpdump & wireshark that's what I
> saw:
>
> |Time     | 91.211.XXX.XXX                        |
> 192.168.0.100                         |
> |         |                   | 77.246.XXX.XXX     |
> |8,088    |         INVITE SDP (g711A g711U CN)
> |                   |SIP From: "9260123069" <sip:9260123069 at 91.211.XXX.XXXTo:<
> sip:4959899711 at 77.246.XXX.XXX:5065
> |         |(5065)   ------------------>  (5065)   |                   |
> |8,088    |         INVITE SDP (g711A g711U CN)
> |                   |SIP From: "9260123069" <sip:9260123069 at 91.211.XXX.XXXTo:<
> sip:4959899711 at 77.246.XXX.XXX:5065
> |         |(5065)   ------------------>  (5065)   |                   |
> |8,099    |         100 Trying|                   |                   |SIP
> Status
> |         |(5065)   <------------------  (5065)   |                   |
> |8,116    |         200 Ok SDP (g711A)            |                   |SIP
> Status
> |         |(5065)   <------------------  (5065)   |                   |
> |8,117    |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |8,117    |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |8,199    |         RTP (g711A)                   |                   |RTP
> Num packets:28  Duration:0.259s SSRC:0x76B458
> |         |(16694)  -------------------------------------->  (49152)  |
> |8,287    |         RTP (g711A)                   |                   |RTP
> Num packets:860  Duration:17.181s SSRC:0xEAC34F46
> |         |(16694)  <------------------  (49152)  |                   |
> |8,479    |         RTP (g711A)                   |                   |RTP
> Num packets:1488  Duration:14.900s SSRC:0x76B458
> |         |(16694)  ------------------>  (49152)  |                   |
> |10,116   |         200 Ok SDP (g711A)            |                   |SIP
> Status
> |         |(5065)   <------------------  (5065)   |                   |
> |10,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |10,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |14,116   |         200 Ok SDP (g711A)            |                   |SIP
> Status
> |         |(5065)   <------------------  (5065)   |                   |
> |14,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |14,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |22,116   |         200 Ok SDP (g711A)            |                   |SIP
> Status
> |         |(5065)   <------------------  (5065)   |                   |
> |22,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |22,116   |         ACK       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |23,420   |         BYE       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |23,420   |         BYE       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |24,421   |         BYE       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
> |24,421   |         BYE       |                   |                   |SIP
> Request
> |         |(5065)   -------------------------------------->  (5065)   |
>
> Freeswitch answered to local ip-address of a gateway which used in sip
> "contact" header. Is it possible to say Freeswitch to use public ip-address
> which is in the field "from" instead?
>
> --
> Best regards,
> Vitaly.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121001/d988046f/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list