<html>
<head>
<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Anthony,<br>
<br>
I found problem source. I think, it will be valuable information for
our community. Also, maybe will need to fix FS according this info.<br>
<br>
1. About "FS does not receive ACK" - you was right. Really, FS was
not received ACKs, and breaks connection.<br>
<br>
2. Currently, FS runs behind NAT router, with option "-nonat" and
static routing.<br>
Also, there is firewall on the FS server, which allows connection to
port 5060 only from some selected networks.<br>
Server has static IP=192.168.1.5, WAN IP=173.79.237.11, Phone
connected to LAN, IP=192.168.1.158 (DHCP).<br>
<br>
3. When I (and Stan G.) investigated this problem, we run tcpdump
_inside_ the phone, and found -- phone sends <br>
ACKs to WAN ROUTERs port (173.79.237.11), when must send to FS
server, 192.168.1.5 <br>
<br>
{{{<br>
tcpdumpš -A -vvv port 5060<br>
<br>
ššššššš Via: SIP/2<br>
20:36:27.790809 IP (tos 0xa0, ttlš 64, id 28499, offset 0, flags
[none], length: 699) lgvp.5060 > Wireless_Broadband_Router.5060:
UDP, length: 671<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:E...oS..@..8.....O.p......%GACK">E...oS..@..8.....O.p......%GACK</a> <a class="moz-txt-link-freetext" href="sip:5000@173.79.237.11">sip:5000@173.79.237.11</a><br>
20:36:27.809815 IP (tos 0xa0, ttlš 64, id 28500, offset 0, flags
[none], length: 699) lgvp.5060 > Wireless_Broadband_Router.5060:
UDP, length: 671<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:E...oT..@..7.....O.p......%GACK">E...oT..@..7.....O.p......%GACK</a> <a class="moz-txt-link-freetext" href="sip:5000@173.79.237.11">sip:5000@173.79.237.11</a><br>
20:36:27.815188 IP (tos 0xa0, ttlš 64, id 28501, offset 0, flags
[none], length: 699) lgvp.5060 > Wireless_Broadband_Router.5060:
UDP, length: 671<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:E...oU..@..6.....O.p......%GACK">E...oU..@..6.....O.p......%GACK</a> <a class="moz-txt-link-freetext" href="sip:5000@173.79.237.11">sip:5000@173.79.237.11</a><br>
20:36:29.179099 IP (tos 0x0, ttlš 64, id 43922, offset 0, flags
[none], length: 1174) 192.168.1.5.5060 > lgvp.5060: UDP, length:
1146<br>
<a class="moz-txt-link-abbreviated" href="mailto:E.......@.F.................SIP/2.0">E.......@.F.................SIP/2.0</a> 200 OK<br>
}}<br>
<br>
When router sends UDP packets to FS box, they receiving from
Router's address 173.79.237.11, and rejected by IP firewall.<br>
<br>
I allowed my own WAN subnet 173.79.0.0/16 with firewall, and
thereafter phone works OK.<br>
Following - sample of the FS log, when connection works OK, with
ACKs.<br>
<br>
<a moz-do-not-send="true"
href="http://olegh.ath.cx/freeswitch.log-1535-1" target="_blank">http://olegh.ath.cx/freeswitch.log-1535-2</a><br>
<br>
But, question: How can I enforce phone works directly with FS,
without loopback in the router?<br>
<br>
I assume, phone sends request to WAN address instead of direct FS,
because FS sends to LAN client<br>
contact field,š contains WAN address in the SIP 200 message:<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:5000@173.79.237.112:5060;transport=udp"><sip:5000@173.79.237.112:5060;transport=udp></a><br>
Of course, client sends replies back to this WAN address...<br>
<br>
How to fix this issue, for FS send to local clients only something
like<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:5000@192.168.1.5:5060;transport=udp"><sip:5000@192.168.1.5:5060;transport=udp></a><br>
<br>
Thanks,<br>
<br>
Oleg<br>
<br>
<br>
<br>
<br>
<br>
Anthony Minessale wrote:
<blockquote
cite="mid:CAKbxfG-8mSN0viSPQxvt5+1nfoSqceS6qj0cBXRYmdMuZOh5zQ@mail.gmail.com"
type="cite">you are not getting an ACK back from the phone after
the 200OK
<div>investigate the sip traffic and look for something like SIP
ALG or other things that may cause the ACK to not make it back
to FS.</div>
<div><br>
</div>
<div>
<br>
<div class="gmail_quote">2011/11/3 Oleg Khovayko <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:khovayko@gmail.com">khovayko@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Anthony,
<div class="im"><br>
<br>
Thank you very much for assistance. I produced log-file,
contains siptrace, you can get it:<br>
<br>
<a moz-do-not-send="true"
href="http://olegh.ath.cx/freeswitch.log-1535-1"
target="_blank">http://olegh.ath.cx/freeswitch.log-1535-1</a><br>
<br>
In thins test, I called from numbed 1000 to number 5000.<br>
<br>
<br>
</div>
<font color="#888888"> Oleg</font>
<div>
<div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Anthony Minessale wrote:
<blockquote type="cite">snippets of logs rarely are
helpful, try complete debug logs including sip trace
<div><br>
<br>
<div class="gmail_quote">On Wed, Nov 2, 2011 at
4:16 PM, Oleg Khovayko <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:khovayko@gmail.com"
target="_blank">khovayko@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">Hi,<br>
<br>
I am using FS for couple years, it was works
OK.<br>
And, approx 1 year ago, I tested with
FreeSWITCH phone Nortel 1535.<br>
It worked perfect.<br>
<br>
Thereafter, I couple times upgraded FS, and
right now, I run version<br>
from GIT, dated 11-10-29. OS: FreeBSD 7.2, 32
bits.<br>
<br>
I again connected Nortel 1535, and this time
see, connection suddenly<br>
broken during call to any "robot":<br>
FS #5000, FS #4000, CallCentric #17771234567<br>
<br>
Every time, before disconnect, I see chain of
log messages like:<br>
<br>
[DEBUG] switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
and HANGUP thereafter. See following samples
from the log:<br>
<br>
Another phones, like VM1188T or PAP2, still
works OK.<br>
About Nortel: I tested 3 phones, with two
firmwares (2.50 & 2.76) --<br>
problem same on both.<br>
<br>
Can you suggest me, how to fix this issue?<br>
<br>
Thanks,<br>
<br>
Oleg<br>
<br>
<br>
<br>
CallCentric: 7771234567<br>
<br>
2011-11-02 16:39:20.901219 [DEBUG]
sofia_reg.c:1984 Changing expire time<br>
to 103 by request of proxy sip:<a
moz-do-not-send="true"
href="http://callcentric.com"
target="_blank">callcentric.com</a><br>
2011-11-02 16:39:31.108503 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:39:31.108503 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:39:31.108503 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:39:31.108503 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:39:31.130669 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:39:31.130669 [DEBUG]
sofia.c:5283 Channel<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
entering state [terminating][0]<br>
2011-11-02 16:39:31.130669 [DEBUG]
switch_channel.c:2804<br>
(sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>)
Callstate Change ACTIVE -> HANGUP<br>
2011-11-02 16:39:31.130669 [NOTICE]
sofia.c:6039 Hangup<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[CS_EXECUTE] [NORMAL_UNSPECIFIED]<br>
2011-11-02 16:39:31.130669 [DEBUG]
switch_channel.c:2820 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a> [KILL]<br>
2011-11-02 16:39:31.130669 [DEBUG]
switch_core_session.c:1177 Send<br>
signal sofia/internal/<a
moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
<br>
<br>
FS: 5000<br>
<br>
2011-11-02 17:03:08.207852 [DEBUG]
switch_ivr_play_say.c:1672 done<br>
playing file<br>
/usr/local/freeswitch/sounds/ru/RU/elena/ivr/ivr-to_do_a_freeswitch_echo_test.wav<br>
2011-11-02 17:03:08.459809 [DEBUG]
switch_ivr_play_say.c:244 Handle<br>
play-file:[ivr/ivr-please.wav] (ru:ru)<br>
2011-11-02 17:03:08.459809 [DEBUG]
switch_ivr_play_say.c:1302 Codec<br>
Activated L16@8000hz 1 channels 20ms<br>
2011-11-02 17:03:09.257683 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 17:03:09.257683 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 17:03:09.257683 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 17:03:09.280490 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 17:03:09.280490 [DEBUG]
sofia.c:5283 Channel<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
entering state [terminating][0]<br>
2011-11-02 17:03:09.280490 [DEBUG]
switch_channel.c:2804<br>
(sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>)
Callstate Change ACTIVE -> HANGUP<br>
2011-11-02 17:03:09.280490 [NOTICE]
sofia.c:6039 Hangup<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[CS_EXECUTE] [NORMAL_UNSPECIFIED]<br>
2011-11-02 17:03:09.280490 [DEBUG]
switch_channel.c:2820 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a> [KILL]<br>
2011-11-02 17:03:09.280490 [DEBUG]
switch_core_session.c:1177 Send<br>
signal sofia/internal/<a
moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 17:03:09.280490 [DEBUG]
switch_ivr_play_say.c:1672 done<br>
playing file
/usr/local/freeswitch/sounds/ru/RU/elena/ivr/ivr-please.wav<br>
2011-11-02 17:03:09.532638 [DEBUG]
switch_ivr_menu.c:348 waiting for 4/4<br>
digits t/o 2000<br>
2011-11-02 17:03:09.532638 [DEBUG]
switch_ivr_menu.c:395 digits ''<br>
2011-11-02 17:03:09.532638 [DEBUG]
switch_ivr_menu.c:585 IVR menu<br>
'demo_ivr' no input detected<br>
2011-11-02 17:03:10.587476 [DEBUG]
switch_ivr_menu.c:599 exit-sound<br>
'voicemail/vm-goodbye.wav'<br>
2011-11-02 17:03:10.587476 [DEBUG]
switch_core_session.c:2269<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a> skip
receive message<br>
[APPLICATION_EXEC_COMPLETE] (channel is hungup
already)<br>
<br>
<br>
FS: voicemail<br>
<br>
2011-11-02 16:51:50.217856 [DEBUG]
switch_ivr_play_say.c:67 No language<br>
specified - Using [ru]<br>
2011-11-02 16:51:50.307721 [DEBUG]
switch_ivr_play_say.c:244 Handle<br>
say:[1290554584] (ru:ru)<br>
2011-11-02 16:51:50.307721 [INFO]
mod_say_ru.c:721 ru_say!!!<br>
1290554584! š say_opt.gender=0 š
say_opt.cases=0<br>
2011-11-02 16:51:50.307721 [DEBUG]
switch_ivr_play_say.c:1302 Codec<br>
Activated L16@8000hz 1 channels 20ms<br>
2011-11-02 16:51:50.969016 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:51:50.969016 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:51:50.969016 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:51:50.969016 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:51:50.969016 [DEBUG]
switch_core_session.c:872 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
2011-11-02 16:51:50.990445 [DEBUG]
sofia.c:5283 Channel<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
entering state [terminating][0]<br>
2011-11-02 16:51:50.990445 [DEBUG]
switch_channel.c:2804<br>
(sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>)
Callstate Change ACTIVE -> HANGUP<br>
2011-11-02 16:51:50.990445 [NOTICE]
sofia.c:6039 Hangup<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[CS_EXECUTE] [NORMAL_UNSPECIFIED]<br>
2011-11-02 16:51:50.990445 [DEBUG]
switch_channel.c:2820 Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a> [KILL]<br>
2011-11-02 16:51:50.990445 [DEBUG]
switch_core_session.c:1177 Send<br>
signal sofia/internal/<a
moz-do-not-send="true"
href="mailto:1000@olegh.ath.cx"
target="_blank">1000@olegh.ath.cx</a>
[BREAK]<br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a>
877-7-4ACLUE<br>
<br>
FreeSWITCH-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-dev@lists.freeswitch.org"
target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-dev"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true"
href="http://www.freeswitch.org/"
target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true"
href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a moz-do-not-send="true"
href="http://twitter.com/FreeSWITCH_wire"
target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com"
target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true"
href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org"
target="_blank">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a moz-do-not-send="true"
href="tel:%2B19193869900" value="+19193869900"
target="_blank">+19193869900</a><br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-dev mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true"
href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true"
href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a moz-do-not-send="true"
href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>
</blockquote>
<br>
</body>
</html>