registration fails after several hours - FS problem?
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity. 3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS. I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
Mario, Try doing "sofia global siptrace on" when your system is in this state. It will definitely turn on sip trace for every profile on your system. It looks like these are failed outbound registrations, correct? Are you using domain names or IP addresses for these gateways? I'm just curious. I've seen situations where FS could not resolve the domain name for some odd reason. -MC On Mon, Oct 25, 2010 at 3:26 PM, Mario <mario_fs@mgtech.com> wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
They look outbound to me and I am using dns names. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario On Oct 25, 2010, at 3:38 PM, Michael Collins wrote:
Mario,
Try doing "sofia global siptrace on" when your system is in this state. It will definitely turn on sip trace for every profile on your system. It looks like these are failed outbound registrations, correct? Are you using domain names or IP addresses for these gateways? I'm just curious. I've seen situations where FS could not resolve the domain name for some odd reason.
-MC
On Mon, Oct 25, 2010 at 3:26 PM, Mario <mario_fs@mgtech.com> wrote: I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get: 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds. 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds. 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this: 1. log 7 2. sofia profile xxxx siptrace on for each profile/gateway 3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs 2 DSL/WAN lines, 1 static and 1 dynamic I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip. sofia status profile ... has the right ext ip nat_map status shows the dynamic (wrong) IP I tried starting with -nonat but that was worse the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times. Thanks Mario
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
add <variable name="sip-force-expires" value="30"/> to the <variables> section of your <user> you have it at 600 and the nat mapping is timing out while the 600 seconds is ticking away On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks! Mario On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600 seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You should be setting the req freq to a low number on the outbound gateways The examples you showed had a series of inbound reg also set expire-seconds to 30 in your gateway xml The problem is if you are not constantly sending traffic to the box the nat mapping will go away. If you are in production you should be using a static ip with a static mapping, any trouble you are having is your own fault for playing with fire. The best we can do is tell you how to keep it contained. On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks! Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600 seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I would love to get static mapping to work but I could not. I have 1 static public address and 1 dynamic both in the same router, this is the root of the problem. I tried to get FS to use the static ip but the router upnp only tells FS about the dynamic external ip. I tried setting external sip/rtp to just the ip (no autonat:) and ran with -nonat but I could not get incoming calls. BTW, I did change the expire-seconds to 30 in one gateway to test. Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks a lot for looking at the trace and pointing me in the right direction! Mario On Oct 26, 2010, at 1:22 PM, Anthony Minessale wrote:
You should be setting the req freq to a low number on the outbound gateways The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box the nat mapping will go away.
If you are in production you should be using a static ip with a static mapping, any trouble you are having is your own fault for playing with fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks! Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600 seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box the nat mapping will go away.
If you are in production you should be using a static ip with a static mapping, any trouble you are having is your own fault for playing with fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks! Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600 seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP: "I have enabled the SIP trace on your account. We are not currently seeing any registration attempts to your account within the last 15 minutes. Please restart FreeSwitch so that registration attempts begin again. Thank you. ". So FS is not getting past router. On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", "accttwo", "acct3". The trace includes phones since it was global. I am using: <param name="ext-rtp-ip" value="autonat:my-static.ip"/> <param name="ext-sip-ip" value="autonat:my-static.ip"/> I tried dumping nat and removing the autonat: above and using -nonat but that did not work, registration proceeded but no calls inbound. On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the problem: They look outbound to me and I am using dns for 2 and an IP for one so that is not the issue. I was able to get FS to clear this up by doing "nat_map reinit" which is why I think this is a nat problem. I will do the trace you mentioned. I will plug an ip address into one of the gateways to see what happens, they all fail at once. Thanks for responding! Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no additional lines which is why I am wondering if FS has a problem since the trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100% Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat. You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat. If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set 1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through. If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider. The static mapping is obviously the better, easier and more reliable solution. So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with. On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true? On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
if you map it or not, a scanner would penetrate it. There are lot of sip scanners out there now, you just need to beware of them. On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem: 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds. sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static: 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr. 3. set sip-ip and rtp-ip to the lan addr of FS 4. start FS with -nonat I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere: Name uuid1 Domain Name N/A Auto-NAT false DBName sofia_reg_mvvyl Pres Hosts Dialplan XML Context public Challenge Realm auto_to RTP-IP 10.x.x.20 Ext-RTP-IP 210.x.x.100 SIP-IP 10.x.x.20 Ext-SIP-IP 210.x.x.100 URL sip:mod_sofia@210.x.x.100:5068 BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 HOLD-MUSIC local_stream://moh OUTBOUND-PROXY N/A CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM CODECS OUT PCMU,PCMA,GSM TEL-EVENT 101 DTMF-MODE rfc2833 CNG 13 SESSION-TO 0 MAX-DIALOG 0 NOMEDIA false LATE-NEG false PROXY-MEDIA false AGGRESSIVENAT false STUN-ENABLED true STUN-AUTO-DISABLE false CALLS-IN 0 FAILED-CALLS-IN 0 CALLS-OUT 0 FAILED-CALLS-OUT 0 On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it. There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
stun-enabled must be true in your profile XML to see what you pasted. Get me a sip trace of this from when it works until when it fails only enable the sip trace on the profile with the gateway to reduce traffic On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem: 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static: 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr. 3. set sip-ip and rtp-ip to the lan addr of FS 4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1 Domain Name N/A Auto-NAT false DBName sofia_reg_mvvyl Pres Hosts Dialplan XML Context public Challenge Realm auto_to RTP-IP 10.x.x.20 Ext-RTP-IP 210.x.x.100 SIP-IP 10.x.x.20 Ext-SIP-IP 210.x.x.100 URL sip:mod_sofia@210.x.x.100:5068 BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 HOLD-MUSIC local_stream://moh OUTBOUND-PROXY N/A CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM CODECS OUT PCMU,PCMA,GSM TEL-EVENT 101 DTMF-MODE rfc2833 CNG 13 SESSION-TO 0 MAX-DIALOG 0 NOMEDIA false LATE-NEG false PROXY-MEDIA false AGGRESSIVENAT false STUN-ENABLED true STUN-AUTO-DISABLE false CALLS-IN 0 FAILED-CALLS-IN 0 CALLS-OUT 0 FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it. There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace Thank you very much! Mario On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem: 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static: 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr. 3. set sip-ip and rtp-ip to the lan addr of FS 4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1 Domain Name N/A Auto-NAT false DBName sofia_reg_mvvyl Pres Hosts Dialplan XML Context public Challenge Realm auto_to RTP-IP 10.x.x.20 Ext-RTP-IP 210.x.x.100 SIP-IP 10.x.x.20 Ext-SIP-IP 210.x.x.100 URL sip:mod_sofia@210.x.x.100:5068 BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 HOLD-MUSIC local_stream://moh OUTBOUND-PROXY N/A CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM CODECS OUT PCMU,PCMA,GSM TEL-EVENT 101 DTMF-MODE rfc2833 CNG 13 SESSION-TO 0 MAX-DIALOG 0 NOMEDIA false LATE-NEG false PROXY-MEDIA false AGGRESSIVENAT false STUN-ENABLED true STUN-AUTO-DISABLE false CALLS-IN 0 FAILED-CALLS-IN 0 CALLS-OUT 0 FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it. There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX (asterisk based) for over two years so FS may be pickier about upnp and/or nat, or just better at it exposing a problem in the router. I made different changes to the gateways to test different things. One failed after 17 hours, the other two stayed up. What did not work: added <variable name="sip-force-expires" value="30"/> to the directory entries as suggested. set the gateway expire times to 30 seconds. What worked (could be coincidental) for the two gateways that stayed up: I Added <param name="aggressive-nat-detection" value="true"/> I originally setup FS to use the static ip by setting external sip/rtp to just the static ip (no autonat:) and ran with -nonat but I could not get incoming calls. The only way it worked was to use autonat:1.2.3.4. The router has 1 static public address and 1 dynamic external IP, this is the root of the problem, upnp only tells FS about the dynamic ip Will keep this thread up-to-date for anyone who may be in the same boat someday. Thanks again for looking at the trace. Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected nat for the outside sip accounts. I was looking into aggressive-nat- detection since the internal profile status always shows the right external static IP but the nat_ap status always shows the dynamic ip. Crossing fingers/etc since this problem is 85% of time (weeks!) into FS changeover. Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem: 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static: 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr. 3. set sip-ip and rtp-ip to the lan addr of FS 4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1 Domain Name N/A Auto-NAT false DBName sofia_reg_mvvyl Pres Hosts Dialplan XML Context public Challenge Realm auto_to RTP-IP 10.x.x.20 Ext-RTP-IP 210.x.x.100 SIP-IP 10.x.x.20 Ext-SIP-IP 210.x.x.100 URL sip:mod_sofia@210.x.x.100:5068 BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 HOLD-MUSIC local_stream://moh OUTBOUND-PROXY N/A CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM CODECS OUT PCMU,PCMA,GSM TEL-EVENT 101 DTMF-MODE rfc2833 CNG 13 SESSION-TO 0 MAX-DIALOG 0 NOMEDIA false LATE-NEG false PROXY-MEDIA false AGGRESSIVENAT false STUN-ENABLED true STUN-AUTO-DISABLE false CALLS-IN 0 FAILED-CALLS-IN 0 CALLS-OUT 0 FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it. There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things. I want you to understand that the only reason you are having problems with this is because you don't understand how it works enough to know what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP. aggressive-nat-detection and sip-force-expires are all related to inbound calls when the things who are registering to you may be behind nat.
You need to learn the difference between which nat tools are *) designed for your FS to run behind nat *) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP 2) map the sip ports and all of the rtp ports from your static IP to FS lan addr 3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your provider and if there is no activity for the expire time on your NAT mapping the reverse port mapping from your provider back to you is lost. This is why you set your register expires to a very low number, (you need to make sure the provider does not turn the expires back up in the reply because it will beat your choice *see sip trace) if this is the case then you need the "ping" option set to 30, to continuously send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped port alive is to continuously send traffic, all the other methods that you are mentioning are to detect that phones registered to your are behind nat, I gave you that force-expires option before because your trace was full of inbound reg so I thought that is what you wanted help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote: > I should mention that I did not have this problem with an SPA9000 PBX > (asterisk based) for over two years so FS may be pickier about upnp and/or > nat, or just better at it exposing a problem in the router. > I made different changes to the gateways to test different things. One > failed after 17 hours, the other two stayed up. What did not work: > added <variable name="sip-force-expires" value="30"/> to the directory > entries as suggested. > set the gateway expire times to 30 seconds. > What worked (could be coincidental) for the two gateways that stayed up: > I Added <param name="aggressive-nat-detection" value="true"/> > I originally setup FS to use the static ip by setting external sip/rtp to > just the static ip (no autonat:) and ran with -nonat but I could not get > incoming calls. The only way it worked was to use autonat:1.2.3.4. The > router has 1 static public address and 1 dynamic external IP, this is the > root of the problem, upnp only tells FS about the dynamic ip Will keep this > thread up-to-date for anyone who may be in the same boat someday. Thanks > again for looking at the trace. > Mario > > You should be setting the req freq to a low number on the outbound gateways > > The examples you showed had a series of inbound reg > > also set expire-seconds to 30 in your gateway xml > > > The problem is if you are not constantly sending traffic to the box > > the nat mapping will go away. > > If you are in production you should be using a static ip with a static > > mapping, any trouble you are having is your own fault for playing with > > fire. The best we can do is tell you how to keep it contained. > > > > > On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote: > > I made the change. I had no idea the settings for the inside phones effected > nat for the outside sip accounts. I was looking into aggressive-nat- > detection since the internal profile status always shows the right external > static IP but the nat_ap status always shows the dynamic ip. Crossing > fingers/etc since this problem is 85% of time (weeks!) into FS changeover. > Thanks! > > Mario > > On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: > > add > > <variable name="sip-force-expires" value="30"/> > > to the <variables> section of your <user> > > you have it at 600 and the nat mapping is timing out while the 600 > > seconds is ticking away > > > > On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote: > > From the TSP: > > "I have enabled the SIP trace on your account. We are not currently seeing > > any registration attempts to your account within the last 15 minutes. Please > > restart FreeSwitch so that registration attempts begin again. Thank you. ". > > So FS is not getting past router. > > On Oct 26, 2010, at 9:09 AM, Mario G wrote: > > I ran the global trace during the problem and it is > > at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", > > "accttwo", "acct3". The trace includes phones since it was global. I am > > using: > > <param name="ext-rtp-ip" value="autonat:my-static.ip"/> > > <param name="ext-sip-ip" value="autonat:my-static.ip"/> > > I tried dumping nat and removing the autonat: above and using -nonat but > > that did not work, registration proceeded but no calls inbound. > > On Oct 25, 2010, at 4:11 PM, Mario G wrote: > > Whoops, I am using an IP address for at least one gateway so that is not the > > problem: > > They look outbound to me and I am using dns for 2 and an IP for one so that > > is not the issue. I was able to get FS to clear this up by doing "nat_map > > reinit" which is why I think this is a nat problem. I will do the trace you > > mentioned. I will plug an ip address into one of the gateways to see what > > happens, they all fail at once. Thanks for responding! > > Mario > > On Oct 25, 2010, at 3:26 PM, Mario wrote: > > I really need help on this as I have weeks into this problem. I thought I > > had it nailed but I guess not. After 5.5 hours I get: > > 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed > > Registration, setting retry to 30 seconds. > > 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 > > and no way to make/get calls until I restart FS. I did this: > > 1. log 7 > > 2. sofia profile xxxx siptrace on for each profile/gateway > > 3. restarted router > > All three did not solve the problem. The trace and log produced no > > additional lines which is why I am wondering if FS has a problem since the > > trace shows no SIP activity. > > 3 gateways with 2 ITSPs > > 2 DSL/WAN lines, 1 static and 1 dynamic > > I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the > > external static ip. > > sofia status profile ... has the right ext ip > > nat_map status shows the dynamic (wrong) IP > > I tried starting with -nonat but that was worse > > the only way to fix is restart FS. > > I read the wiki on external nat, auto_nat and everything else many times. > > Thanks Mario > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
can you repeat that trace with sofia debug on sofia loglevel all 9 Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/> I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up. On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done. On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
also raise loglevel to debug console loglevel debug On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
You should be aware of this: Setting sofia loglevel to 9 made FS memory go from 20meg to eventually using all memory and locking the machine up. I spent all night trying to get a good trace. I need to get one when the failure occurs early before the lockup. Will be working on this all weekend. Thanks for you help. Mario On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Setting sofia loglevel to 9 made Terminal app memory go from 20meg to eventually using all memory and locking the machine up. I spent all night trying to get a good trace. I need to get one when the failure occurs early before the lockup. Will be working all w/e on this. Thanks for you help. I got this with only 1 gateway defined but did not catch it early. Notice how there is no SIP trace activity: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
ok so there must be a problem in MAC, have you compared the results on win32 or linux? some other people are reporting mem issues on mac lets find it. http://valgrind.org/downloads/valgrind-3.6.0.tar.bz2 build and install valgrind run fs in vg mode valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/lt-freeswitch -vg do something that eats mem exit and get me the vg.log On Sat, Oct 30, 2010 at 11:37 AM, Mario G <mario_fs@mgtech.com> wrote:
Setting sofia loglevel to 9 made Terminal app memory go from 20meg to eventually using all memory and locking the machine up. I spent all night trying to get a good trace. I need to get one when the failure occurs early before the lockup. Will be working all w/e on this. Thanks for you help.
I got this with only 1 gateway defined but did not catch it early. Notice how there is no SIP trace activity: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_mvvyl
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
No I was wrong, the problem was Terminal not FS, it keeps it's log in memory. See my previous post with trace info. No memory problem now. On Oct 30, 2010, at 12:34 PM, Anthony Minessale wrote:
ok so there must be a problem in MAC, have you compared the results on win32 or linux? some other people are reporting mem issues on mac lets find it.
http://valgrind.org/downloads/valgrind-3.6.0.tar.bz2
build and install valgrind
run fs in vg mode valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/lt-freeswitch -vg
do something that eats mem
exit and get me the vg.log
On Sat, Oct 30, 2010 at 11:37 AM, Mario G <mario_fs@mgtech.com> wrote:
Setting sofia loglevel to 9 made Terminal app memory go from 20meg to eventually using all memory and locking the machine up. I spent all night trying to get a good trace. I need to get one when the failure occurs early before the lockup. Will be working all w/e on this. Thanks for you help.
I got this with only 1 gateway defined but did not catch it early. Notice how there is no SIP trace activity: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 mvvyl Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering mvvyl nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote: > Oh Boy: Not only is everything set to the static route but I turned > off/disconnected the dynamic DSL line so I only had 1 static line to the > router. The second wan is set in the router off. Even turned off router uPnP > even though I am using -nonat. Guess what.... I still have the problem. Look > like when FS says is going to retry it actually does not. > Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one > right after I started FS, failure occurred in minutes (lucky). Look at the > bottom of the trace, you see SIP trace activity and then when it fails no > SIP trace activity. Could this possibly be a FS bug? (I am a mainframe > assembler systems programmer and I might think so if there were error retry > messages but nothing showing in one of my traces...) > Notes: > idone is gateway 1 > idtwo is gateway 2 I had to trace both because it was impossible to figure > out which one would fail first. Ran several times but kept missing the right > one. > I use a url for one gateway and ip for another but it makes no difference > since both eventually fail. > 10. is local lan > 210. is external ip > 216. is itsp > > Here is a longer one from earlier http://pastebin.freeswitch.org/14357 > Notes: > A call was received and hung up for idtwo - beginning of trace > 11 minutes later idtwo failed - see last line of trace > > Thank you very much! > Mario > > On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote: > > stun-enabled must be true in your profile XML to see what you pasted. > > Get me a sip trace of this from when it works until when it fails > > only enable the sip trace on the profile with the gateway to reduce traffic > > > > On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote: > > Oh my... looks it was not NAT after all? Please help! I changed to all > profiles to static per instructions below and still have the problem: > > 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 > > 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed > Registration, setting retry to 15 seconds. > > sofia global siptrace on did not show any activity for this gateway in or > out, others were fine but eventually fail. I setup static: > > 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP > > 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to > FS lan addr. > > 3. set sip-ip and rtp-ip to the lan addr of FS > > 4. start FS with -nonat > > I don't know what to try next. BTW, the sofia status for the profiles shows > stun enabled but I did not set it up anywhere: > > Name uuid1 > > Domain Name N/A > > Auto-NAT false > > DBName sofia_reg_mvvyl > > Pres Hosts > > Dialplan XML > > Context public > > Challenge Realm auto_to > > RTP-IP 10.x.x.20 > > Ext-RTP-IP 210.x.x.100 > > SIP-IP 10.x.x.20 > > Ext-SIP-IP 210.x.x.100 > > URL sip:mod_sofia@210.x.x.100:5068 > > BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 > > HOLD-MUSIC local_stream://moh > > OUTBOUND-PROXY N/A > > CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM > > CODECS OUT PCMU,PCMA,GSM > > TEL-EVENT 101 > > DTMF-MODE rfc2833 > > CNG 13 > > SESSION-TO 0 > > MAX-DIALOG 0 > > NOMEDIA false > > LATE-NEG false > > PROXY-MEDIA false > > AGGRESSIVENAT false > > STUN-ENABLED true > > STUN-AUTO-DISABLE false > > CALLS-IN 0 > > FAILED-CALLS-IN 0 > > CALLS-OUT 0 > > FAILED-CALLS-OUT 0 > > > On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote: > > if you map it or not, a scanner would penetrate it. > > There are lot of sip scanners out there now, you just need to beware of > them. > > > On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote: > > Thanks so much! I am sure many others will find this info invaluable. I will > try the static route again but have one question: When I started with FS I > found a "sip scanner" in FS and someone on this group said not to use port > mapping since it was a security risk. Is that true? > > On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote: > > you are completely guessing at things. > > I want you to understand that the only reason you are having problems > > with this is because you don't understand how it works enough to know > > what you are doing 100% > > Its a given that the pnp stuff is only for your dynamic IP. > > aggressive-nat-detection and sip-force-expires are all related to > > inbound calls when the things who are registering to you may be behind > > nat. > > You need to learn the difference between which nat tools are > > *) designed for your FS to run behind nat > > *) designed for FS to run public and accept connections from devices behind > nat. > > If you have a static IP, you don't need the pnp stuff so -nonat is fine > > What you need to do is set > > 1) set the params ext-sip-ip and ext-rtp-ip to your external static IP > > 2) map the sip ports and all of the rtp ports from your static IP to FS lan > addr > > 3) set sip-ip and rtp-ip to the lan addr you forwarded through. > > > If you don't do this: your outbound registration will use NAT to your > > provider and if there is no activity for the expire time on your NAT > > mapping the reverse port mapping from your provider back to you is > > lost. This is why you set your register expires to a very low number, > > (you need to make sure the provider does not turn the expires back up > > in the reply because it will beat your choice *see sip trace) if this > > is the case then you need the "ping" option set to 30, to continuously > > send an options to your provider. > > The static mapping is obviously the better, easier and more reliable > solution. > > So I want you to understand that the only way to keep a nat mapped > > port alive is to continuously send traffic, all the other methods that > > you are mentioning are to detect that phones registered to your are > > behind nat, I gave you that force-expires option before because your > > trace was full of inbound reg so I thought that is what you wanted > > help with. > > > > > > > > > On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote: > > I should mention that I did not have this problem with an SPA9000 PBX > > (asterisk based) for over two years so FS may be pickier about upnp and/or > > nat, or just better at it exposing a problem in the router. > > I made different changes to the gateways to test different things. One > > failed after 17 hours, the other two stayed up. What did not work: > > added <variable name="sip-force-expires" value="30"/> to the directory > > entries as suggested. > > set the gateway expire times to 30 seconds. > > What worked (could be coincidental) for the two gateways that stayed up: > > I Added <param name="aggressive-nat-detection" value="true"/> > > I originally setup FS to use the static ip by setting external sip/rtp to > > just the static ip (no autonat:) and ran with -nonat but I could not get > > incoming calls. The only way it worked was to use autonat:1.2.3.4. The > > router has 1 static public address and 1 dynamic external IP, this is the > > root of the problem, upnp only tells FS about the dynamic ip Will keep this > > thread up-to-date for anyone who may be in the same boat someday. Thanks > > again for looking at the trace. > > Mario > > You should be setting the req freq to a low number on the outbound gateways > > The examples you showed had a series of inbound reg > > also set expire-seconds to 30 in your gateway xml > > > The problem is if you are not constantly sending traffic to the box > > the nat mapping will go away. > > If you are in production you should be using a static ip with a static > > mapping, any trouble you are having is your own fault for playing with > > fire. The best we can do is tell you how to keep it contained. > > > > > On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote: > > I made the change. I had no idea the settings for the inside phones effected > > nat for the outside sip accounts. I was looking into aggressive-nat- > > detection since the internal profile status always shows the right external > > static IP but the nat_ap status always shows the dynamic ip. Crossing > > fingers/etc since this problem is 85% of time (weeks!) into FS changeover. > > Thanks! > > Mario > > On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: > > add > > <variable name="sip-force-expires" value="30"/> > > to the <variables> section of your <user> > > you have it at 600 and the nat mapping is timing out while the 600 > > seconds is ticking away > > > > On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote: > > From the TSP: > > "I have enabled the SIP trace on your account. We are not currently seeing > > any registration attempts to your account within the last 15 minutes. Please > > restart FreeSwitch so that registration attempts begin again. Thank you. ". > > So FS is not getting past router. > > On Oct 26, 2010, at 9:09 AM, Mario G wrote: > > I ran the global trace during the problem and it is > > at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", > > "accttwo", "acct3". The trace includes phones since it was global. I am > > using: > > <param name="ext-rtp-ip" value="autonat:my-static.ip"/> > > <param name="ext-sip-ip" value="autonat:my-static.ip"/> > > I tried dumping nat and removing the autonat: above and using -nonat but > > that did not work, registration proceeded but no calls inbound. > > On Oct 25, 2010, at 4:11 PM, Mario G wrote: > > Whoops, I am using an IP address for at least one gateway so that is not the > > problem: > > They look outbound to me and I am using dns for 2 and an IP for one so that > > is not the issue. I was able to get FS to clear this up by doing "nat_map > > reinit" which is why I think this is a nat problem. I will do the trace you > > mentioned. I will plug an ip address into one of the gateways to see what > > happens, they all fail at once. Thanks for responding! > > Mario > > On Oct 25, 2010, at 3:26 PM, Mario wrote: > > I really need help on this as I have weeks into this problem. I thought I > > had it nailed but I guess not. After 5.5 hours I get: > > 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed > > Registration, setting retry to 30 seconds. > > 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 > > and no way to make/get calls until I restart FS. I did this: > > 1. log 7 > > 2. sofia profile xxxx siptrace on for each profile/gateway > > 3. restarted router > > All three did not solve the problem. The trace and log produced no > > additional lines which is why I am wondering if FS has a problem since the > > trace shows no SIP activity. > > 3 gateways with 2 ITSPs > > 2 DSL/WAN lines, 1 static and 1 dynamic > > I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the > > external static ip. > > sofia status profile ... has the right ext ip > > nat_map status shows the dynamic (wrong) IP > > I tried starting with -nonat but that was worse > > the only way to fix is restart FS. > > I read the wiki on external nat, auto_nat and everything else many times. > > Thanks Mario > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org > > googletalk:conf+888@conference.freeswitch.org > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I want to make sure this was clear: I have the problem sometimes after 5 minutes so memory is not an issue. Also, I checked the memory monitor. The memory problem was only due to the loglevel 9 trace and the way Terminal saves it. I did have this problem under Linux but at the time we thought it was nat/upnp related. All static not and dynamic IP wan interface is being kept inactive. I hope the traces help you see something. Mario
I am dead on the water without help so I greatly appreciate your help. Finally got the loglevel 9 trace! Only 1 gateway (idtwo) defined and 1 phone hooked up to minimize data. http://pastebin.freeswitch.org/14368 <- subset of trace showing registration working and then failing http://pastebin.freeswitch.org/14365 <- this is full trace from startup minus thousands of duplicate lines http://pastebin.freeswitch.org/14367 <- a tiny fraction of the thousands of duplicated lines removed from above, goes from 500 to 1 twice Still, notice how there is no SIP trace activity once the registrations fail: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be throwing FS off. so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh Boy: Not only is everything set to the static route but I turned off/disconnected the dynamic DSL line so I only had 1 static line to the router. The second wan is set in the router off. Even turned off router uPnP even though I am using -nonat. Guess what.... I still have the problem. Look like when FS says is going to retry it actually does not. Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one right after I started FS, failure occurred in minutes (lucky). Look at the bottom of the trace, you see SIP trace activity and then when it fails no SIP trace activity. Could this possibly be a FS bug? (I am a mainframe assembler systems programmer and I might think so if there were error retry messages but nothing showing in one of my traces...) Notes: idone is gateway 1 idtwo is gateway 2 I had to trace both because it was impossible to figure out which one would fail first. Ran several times but kept missing the right one. I use a url for one gateway and ip for another but it makes no difference since both eventually fail. 10. is local lan 210. is external ip 216. is itsp
Here is a longer one from earlier http://pastebin.freeswitch.org/14357 Notes: A call was received and hung up for idtwo - beginning of trace 11 minutes later idtwo failed - see last line of trace
Thank you very much! Mario
On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote:
stun-enabled must be true in your profile XML to see what you pasted.
Get me a sip trace of this from when it works until when it fails
only enable the sip trace on the profile with the gateway to reduce traffic
On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote:
Oh my... looks it was not NAT after all? Please help! I changed to all profiles to static per instructions below and still have the problem:
2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1
2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed Registration, setting retry to 15 seconds.
sofia global siptrace on did not show any activity for this gateway in or out, others were fine but eventually fail. I setup static:
1. set the params ext-sip-ip and ext-rtp-ip to my external static IP
2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to FS lan addr.
3. set sip-ip and rtp-ip to the lan addr of FS
4. start FS with -nonat
I don't know what to try next. BTW, the sofia status for the profiles shows stun enabled but I did not set it up anywhere:
Name uuid1
Domain Name N/A
Auto-NAT false
DBName sofia_reg_idtwo
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.x.x.20
Ext-RTP-IP 210.x.x.100
SIP-IP 10.x.x.20
Ext-SIP-IP 210.x.x.100
URL sip:mod_sofia@210.x.x.100:5068
BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM
CODECS OUT PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote:
if you map it or not, a scanner would penetrate it.
There are lot of sip scanners out there now, you just need to beware of them.
On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote:
Thanks so much! I am sure many others will find this info invaluable. I will try the static route again but have one question: When I started with FS I found a "sip scanner" in FS and someone on this group said not to use port mapping since it was a security risk. Is that true?
On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote:
you are completely guessing at things.
I want you to understand that the only reason you are having problems
with this is because you don't understand how it works enough to know
what you are doing 100%
Its a given that the pnp stuff is only for your dynamic IP.
aggressive-nat-detection and sip-force-expires are all related to
inbound calls when the things who are registering to you may be behind
nat.
You need to learn the difference between which nat tools are
*) designed for your FS to run behind nat
*) designed for FS to run public and accept connections from devices behind nat.
If you have a static IP, you don't need the pnp stuff so -nonat is fine
What you need to do is set
1) set the params ext-sip-ip and ext-rtp-ip to your external static IP
2) map the sip ports and all of the rtp ports from your static IP to FS lan addr
3) set sip-ip and rtp-ip to the lan addr you forwarded through.
If you don't do this: your outbound registration will use NAT to your
provider and if there is no activity for the expire time on your NAT
mapping the reverse port mapping from your provider back to you is
lost. This is why you set your register expires to a very low number,
(you need to make sure the provider does not turn the expires back up
in the reply because it will beat your choice *see sip trace) if this
is the case then you need the "ping" option set to 30, to continuously
send an options to your provider.
The static mapping is obviously the better, easier and more reliable solution.
So I want you to understand that the only way to keep a nat mapped
port alive is to continuously send traffic, all the other methods that
you are mentioning are to detect that phones registered to your are
behind nat, I gave you that force-expires option before because your
trace was full of inbound reg so I thought that is what you wanted
help with.
On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote:
I should mention that I did not have this problem with an SPA9000 PBX
(asterisk based) for over two years so FS may be pickier about upnp and/or
nat, or just better at it exposing a problem in the router.
I made different changes to the gateways to test different things. One
failed after 17 hours, the other two stayed up. What did not work:
added <variable name="sip-force-expires" value="30"/> to the directory
entries as suggested.
set the gateway expire times to 30 seconds.
What worked (could be coincidental) for the two gateways that stayed up:
I Added <param name="aggressive-nat-detection" value="true"/>
I originally setup FS to use the static ip by setting external sip/rtp to
just the static ip (no autonat:) and ran with -nonat but I could not get
incoming calls. The only way it worked was to use autonat:1.2.3.4. The
router has 1 static public address and 1 dynamic external IP, this is the
root of the problem, upnp only tells FS about the dynamic ip Will keep this
thread up-to-date for anyone who may be in the same boat someday. Thanks
again for looking at the trace.
Mario
You should be setting the req freq to a low number on the outbound gateways
The examples you showed had a series of inbound reg
also set expire-seconds to 30 in your gateway xml
The problem is if you are not constantly sending traffic to the box
the nat mapping will go away.
If you are in production you should be using a static ip with a static
mapping, any trouble you are having is your own fault for playing with
fire. The best we can do is tell you how to keep it contained.
On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote:
I made the change. I had no idea the settings for the inside phones effected
nat for the outside sip accounts. I was looking into aggressive-nat-
detection since the internal profile status always shows the right external
static IP but the nat_ap status always shows the dynamic ip. Crossing
fingers/etc since this problem is 85% of time (weeks!) into FS changeover.
Thanks!
Mario
On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote:
add
<variable name="sip-force-expires" value="30"/>
to the <variables> section of your <user>
you have it at 600 and the nat mapping is timing out while the 600
seconds is ticking away
On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote:
From the TSP:
"I have enabled the SIP trace on your account. We are not currently seeing
any registration attempts to your account within the last 15 minutes. Please
restart FreeSwitch so that registration attempts begin again. Thank you. ".
So FS is not getting past router.
On Oct 26, 2010, at 9:09 AM, Mario G wrote:
I ran the global trace during the problem and it is
at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone",
"accttwo", "acct3". The trace includes phones since it was global. I am
using:
<param name="ext-rtp-ip" value="autonat:my-static.ip"/>
<param name="ext-sip-ip" value="autonat:my-static.ip"/>
I tried dumping nat and removing the autonat: above and using -nonat but
that did not work, registration proceeded but no calls inbound.
On Oct 25, 2010, at 4:11 PM, Mario G wrote:
Whoops, I am using an IP address for at least one gateway so that is not the
problem:
They look outbound to me and I am using dns for 2 and an IP for one so that
is not the issue. I was able to get FS to clear this up by doing "nat_map
reinit" which is why I think this is a nat problem. I will do the trace you
mentioned. I will plug an ip address into one of the gateways to see what
happens, they all fail at once. Thanks for responding!
Mario
On Oct 25, 2010, at 3:26 PM, Mario wrote:
I really need help on this as I have weeks into this problem. I thought I
had it nailed but I guess not. After 5.5 hours I get:
2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed
Registration, setting retry to 30 seconds.
2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed
Registration, setting retry to 15 seconds.
2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid
2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid
2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777
and no way to make/get calls until I restart FS. I did this:
1. log 7
2. sofia profile xxxx siptrace on for each profile/gateway
3. restarted router
All three did not solve the problem. The trace and log produced no
additional lines which is why I am wondering if FS has a problem since the
trace shows no SIP activity.
3 gateways with 2 ITSPs
2 DSL/WAN lines, 1 static and 1 dynamic
I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the
external static ip.
sofia status profile ... has the right ext ip
nat_map status shows the dynamic (wrong) IP
I tried starting with -nonat but that was worse
the only way to fix is restart FS.
I read the wiki on external nat, auto_nat and everything else many times.
Thanks Mario
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Even sooner there is 1 reg sent out never answered or at least it seems. Get a pcap at the same time from another win. Also try to get a core dump of the running process. I can help Monday if you can't do those things On Oct 30, 2010 2:46 PM, "Mario G" <mario_fs@mgtech.com> wrote:
I am dead on the water without help so I greatly appreciate your help.
Finally got the loglevel 9 trace! Only 1 gateway (idtwo) defined and 1 phone hooked up to minimize data. http://pastebin.freeswitch.org/14368 <- subset of trace showing registration working and then failing http://pastebin.freeswitch.org/14365 <- this is full trace from startup minus thousands of duplicate lines http://pastebin.freeswitch.org/14367 <- a tiny fraction of the thousands of duplicated lines removed from above, goes from 500 to 1 twice
Still, notice how there is no SIP trace activity once the registrations fail: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I
tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
can you repeat that trace with sofia debug on sofia loglevel all 9
Are you doing DNS by any chance in the gateway "proxy" param? you could try filling in the register-proxy param in your gateway to sip:<ip> <-- not dns but ip that dns resolves to <param name="register-proxy" value="sip:1.2.3.4"/>
I'm just guessing but Its possible some bad dns query could be
throwing FS off.
so this test would force all the packets to the exact IP of your host instead of looking it up.
On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote: > Oh Boy: Not only is everything set to the static route but I turned > off/disconnected the dynamic DSL line so I only had 1 static line to the > router. The second wan is set in the router off. Even turned off router uPnP > even though I am using -nonat. Guess what.... I still have the problem. Look > like when FS says is going to retry it actually does not. > Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one > right after I started FS, failure occurred in minutes (lucky). Look at the > bottom of the trace, you see SIP trace activity and then when it fails no > SIP trace activity. Could this possibly be a FS bug? (I am a mainframe > assembler systems programmer and I might think so if there were error retry > messages but nothing showing in one of my traces...) > Notes: > idone is gateway 1 > idtwo is gateway 2 I had to trace both because it was impossible to figure > out which one would fail first. Ran several times but kept missing the right > one. > I use a url for one gateway and ip for another but it makes no difference > since both eventually fail. > 10. is local lan > 210. is external ip > 216. is itsp > > Here is a longer one from earlier http://pastebin.freeswitch.org/14357 > Notes: > A call was received and hung up for idtwo - beginning of trace > 11 minutes later idtwo failed - see last line of trace > > Thank you very much! > Mario > > On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote: > > stun-enabled must be true in your profile XML to see what you pasted. > > Get me a sip trace of this from when it works until when it fails > > only enable the sip trace on the profile with the gateway to reduce traffic > > > > On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote: > > Oh my... looks it was not NAT after all? Please help! I changed to all > profiles to static per instructions below and still have the problem: > > 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 > > 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed > Registration, setting retry to 15 seconds. > > sofia global siptrace on did not show any activity for this gateway in or > out, others were fine but eventually fail. I setup static: > > 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP > > 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to > FS lan addr. > > 3. set sip-ip and rtp-ip to the lan addr of FS > > 4. start FS with -nonat > > I don't know what to try next. BTW, the sofia status for the profiles shows > stun enabled but I did not set it up anywhere: > > Name uuid1 > > Domain Name N/A > > Auto-NAT false > > DBName sofia_reg_idtwo > > Pres Hosts > > Dialplan XML > > Context public > > Challenge Realm auto_to > > RTP-IP 10.x.x.20 > > Ext-RTP-IP 210.x.x.100 > > SIP-IP 10.x.x.20 > > Ext-SIP-IP 210.x.x.100 > > URL sip:mod_sofia@210.x.x.100:5068 > > BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 > > HOLD-MUSIC local_stream://moh > > OUTBOUND-PROXY N/A > > CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM > > CODECS OUT PCMU,PCMA,GSM > > TEL-EVENT 101 > > DTMF-MODE rfc2833 > > CNG 13 > > SESSION-TO 0 > > MAX-DIALOG 0 > > NOMEDIA false > > LATE-NEG false > > PROXY-MEDIA false > > AGGRESSIVENAT false > > STUN-ENABLED true > > STUN-AUTO-DISABLE false > > CALLS-IN 0 > > FAILED-CALLS-IN 0 > > CALLS-OUT 0 > > FAILED-CALLS-OUT 0 > > > On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote: > > if you map it or not, a scanner would penetrate it. > > There are lot of sip scanners out there now, you just need to beware of > them. > > > On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote: > > Thanks so much! I am sure many others will find this info invaluable. I will > try the static route again but have one question: When I started with FS I > found a "sip scanner" in FS and someone on this group said not to use port > mapping since it was a security risk. Is that true? > > On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote: > > you are completely guessing at things. > > I want you to understand that the only reason you are having problems > > with this is because you don't understand how it works enough to know > > what you are doing 100% > > Its a given that the pnp stuff is only for your dynamic IP. > > aggressive-nat-detection and sip-force-expires are all related to > > inbound calls when the things who are registering to you may be behind > > nat. > > You need to learn the difference between which nat tools are > > *) designed for your FS to run behind nat > > *) designed for FS to run public and accept connections from devices behind > nat. > > If you have a static IP, you don't need the pnp stuff so -nonat is fine > > What you need to do is set > > 1) set the params ext-sip-ip and ext-rtp-ip to your external static IP > > 2) map the sip ports and all of the rtp ports from your static IP to FS lan > addr > > 3) set sip-ip and rtp-ip to the lan addr you forwarded through. > > > If you don't do this: your outbound registration will use NAT to your > > provider and if there is no activity for the expire time on your NAT > > mapping the reverse port mapping from your provider back to you is > > lost. This is why you set your register expires to a very low number, > > (you need to make sure the provider does not turn the expires back up > > in the reply because it will beat your choice *see sip trace) if this > > is the case then you need the "ping" option set to 30, to continuously > > send an options to your provider. > > The static mapping is obviously the better, easier and more reliable > solution. > > So I want you to understand that the only way to keep a nat mapped > > port alive is to continuously send traffic, all the other methods that > > you are mentioning are to detect that phones registered to your are > > behind nat, I gave you that force-expires option before because your > > trace was full of inbound reg so I thought that is what you wanted > > help with. > > > > > > > > > On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote: > > I should mention that I did not have this problem with an SPA9000 PBX > > (asterisk based) for over two years so FS may be pickier about upnp and/or > > nat, or just better at it exposing a problem in the router. > > I made different changes to the gateways to test different things. One > > failed after 17 hours, the other two stayed up. What did not work: > > added <variable name="sip-force-expires" value="30"/> to the directory > > entries as suggested. > > set the gateway expire times to 30 seconds. > > What worked (could be coincidental) for the two gateways that stayed up: > > I Added <param name="aggressive-nat-detection" value="true"/> > > I originally setup FS to use the static ip by setting external sip/rtp to > > just the static ip (no autonat:) and ran with -nonat but I could not get > > incoming calls. The only way it worked was to use autonat:1.2.3.4. The > > router has 1 static public address and 1 dynamic external IP, this is the > > root of the problem, upnp only tells FS about the dynamic ip Will keep this > > thread up-to-date for anyone who may be in the same boat someday. Thanks > > again for looking at the trace. > > Mario > > You should be setting the req freq to a low number on the outbound gateways > > The examples you showed had a series of inbound reg > > also set expire-seconds to 30 in your gateway xml > > > The problem is if you are not constantly sending traffic to the box > > the nat mapping will go away. > > If you are in production you should be using a static ip with a static > > mapping, any trouble you are having is your own fault for playing with > > fire. The best we can do is tell you how to keep it contained. > > > > > On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote: > > I made the change. I had no idea the settings for the inside phones effected > > nat for the outside sip accounts. I was looking into aggressive-nat- > > detection since the internal profile status always shows the right external > > static IP but the nat_ap status always shows the dynamic ip. Crossing > > fingers/etc since this problem is 85% of time (weeks!) into FS changeover. > > Thanks! > > Mario > > On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: > > add > > <variable name="sip-force-expires" value="30"/> > > to the <variables> section of your <user> > > you have it at 600 and the nat mapping is timing out while the 600 > > seconds is ticking away > > > > On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote: > > From the TSP: > > "I have enabled the SIP trace on your account. We are not currently seeing > > any registration attempts to your account within the last 15 minutes. Please > > restart FreeSwitch so that registration attempts begin again. Thank you. ". > > So FS is not getting past router. > > On Oct 26, 2010, at 9:09 AM, Mario G wrote: > > I ran the global trace during the problem and it is > > at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", > > "accttwo", "acct3". The trace includes phones since it was global. I am > > using: > > <param name="ext-rtp-ip" value="autonat:my-static.ip"/> > > <param name="ext-sip-ip" value="autonat:my-static.ip"/> > > I tried dumping nat and removing the autonat: above and using -nonat but > > that did not work, registration proceeded but no calls inbound. > > On Oct 25, 2010, at 4:11 PM, Mario G wrote: > > Whoops, I am using an IP address for at least one gateway so that is not the > > problem: > > They look outbound to me and I am using dns for 2 and an IP for one so that > > is not the issue. I was able to get FS to clear this up by doing "nat_map > > reinit" which is why I think this is a nat problem. I will do the trace you > > mentioned. I will plug an ip address into one of the gateways to see what > > happens, they all fail at once. Thanks for responding! > > Mario > > On Oct 25, 2010, at 3:26 PM, Mario wrote: > > I really need help on this as I have weeks into this problem. I thought I > > had it nailed but I guess not. After 5.5 hours I get: > > 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed > > Registration, setting retry to 30 seconds. > > 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed > > Registration, setting retry to 15 seconds. > > 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid > > 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid > > 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 > > and no way to make/get calls until I restart FS. I did this: > > 1. log 7 > > 2. sofia profile xxxx siptrace on for each profile/gateway > > 3. restarted router > > All three did not solve the problem. The trace and log produced no > > additional lines which is why I am wondering if FS has a problem since the > > trace shows no SIP activity. > > 3 gateways with 2 ITSPs > > 2 DSL/WAN lines, 1 static and 1 dynamic > > I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the > > external static ip. > > sofia status profile ... has the right ext ip > > nat_map status shows the dynamic (wrong) IP > > I tried starting with -nonat but that was worse > > the only way to fix is restart FS. > > I read the wiki on external nat, auto_nat and everything else many times. > > Thanks Mario > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > -- > > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > > ClueCon http://www.cluecon.com/ > > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > > pstn:+19193869900 > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH! LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system. OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference. LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours! OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it: 2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/ Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010. One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX. On Oct 30, 2010, at 5:01 PM, Anthony Minessale wrote:
Even sooner there is 1 reg sent out never answered or at least it seems.
Get a pcap at the same time from another win. Also try to get a core dump of the running process.
I can help Monday if you can't do those things
On Oct 30, 2010 2:46 PM, "Mario G" <mario_fs@mgtech.com> wrote:
I am dead on the water without help so I greatly appreciate your help.
Finally got the loglevel 9 trace! Only 1 gateway (idtwo) defined and 1 phone hooked up to minimize data. http://pastebin.freeswitch.org/14368 <- subset of trace showing registration working and then failing http://pastebin.freeswitch.org/14365 <- this is full trace from startup minus thousands of duplicate lines http://pastebin.freeswitch.org/14367 <- a tiny fraction of the thousands of duplicated lines removed from above, goes from 500 to 1 twice
Still, notice how there is no SIP trace activity once the registrations fail: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
> can you repeat that trace with sofia debug on > sofia loglevel all 9 > > Are you doing DNS by any chance in the gateway "proxy" param? > you could try filling in the register-proxy param in your gateway to > sip:<ip> <-- not dns but ip that dns resolves to > <param name="register-proxy" value="sip:1.2.3.4"/> > > I'm just guessing but Its possible some bad dns query could be throwing FS off. > so this test would force all the packets to the exact IP of your host > instead of looking it up. > > > > On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote: >> Oh Boy: Not only is everything set to the static route but I turned >> off/disconnected the dynamic DSL line so I only had 1 static line to the >> router. The second wan is set in the router off. Even turned off router uPnP >> even though I am using -nonat. Guess what.... I still have the problem. Look >> like when FS says is going to retry it actually does not. >> Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one >> right after I started FS, failure occurred in minutes (lucky). Look at the >> bottom of the trace, you see SIP trace activity and then when it fails no >> SIP trace activity. Could this possibly be a FS bug? (I am a mainframe >> assembler systems programmer and I might think so if there were error retry >> messages but nothing showing in one of my traces...) >> Notes: >> idone is gateway 1 >> idtwo is gateway 2 I had to trace both because it was impossible to figure >> out which one would fail first. Ran several times but kept missing the right >> one. >> I use a url for one gateway and ip for another but it makes no difference >> since both eventually fail. >> 10. is local lan >> 210. is external ip >> 216. is itsp >> >> Here is a longer one from earlier http://pastebin.freeswitch.org/14357 >> Notes: >> A call was received and hung up for idtwo - beginning of trace >> 11 minutes later idtwo failed - see last line of trace >> >> Thank you very much! >> Mario >> >> On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote: >> >> stun-enabled must be true in your profile XML to see what you pasted. >> >> Get me a sip trace of this from when it works until when it fails >> >> only enable the sip trace on the profile with the gateway to reduce traffic >> >> >> >> On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> wrote: >> >> Oh my... looks it was not NAT after all? Please help! I changed to all >> profiles to static per instructions below and still have the problem: >> >> 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 >> >> 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed >> Registration, setting retry to 15 seconds. >> >> sofia global siptrace on did not show any activity for this gateway in or >> out, others were fine but eventually fail. I setup static: >> >> 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP >> >> 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to >> FS lan addr. >> >> 3. set sip-ip and rtp-ip to the lan addr of FS >> >> 4. start FS with -nonat >> >> I don't know what to try next. BTW, the sofia status for the profiles shows >> stun enabled but I did not set it up anywhere: >> >> Name uuid1 >> >> Domain Name N/A >> >> Auto-NAT false >> >> DBName sofia_reg_idtwo >> >> Pres Hosts >> >> Dialplan XML >> >> Context public >> >> Challenge Realm auto_to >> >> RTP-IP 10.x.x.20 >> >> Ext-RTP-IP 210.x.x.100 >> >> SIP-IP 10.x.x.20 >> >> Ext-SIP-IP 210.x.x.100 >> >> URL sip:mod_sofia@210.x.x.100:5068 >> >> BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 >> >> HOLD-MUSIC local_stream://moh >> >> OUTBOUND-PROXY N/A >> >> CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM >> >> CODECS OUT PCMU,PCMA,GSM >> >> TEL-EVENT 101 >> >> DTMF-MODE rfc2833 >> >> CNG 13 >> >> SESSION-TO 0 >> >> MAX-DIALOG 0 >> >> NOMEDIA false >> >> LATE-NEG false >> >> PROXY-MEDIA false >> >> AGGRESSIVENAT false >> >> STUN-ENABLED true >> >> STUN-AUTO-DISABLE false >> >> CALLS-IN 0 >> >> FAILED-CALLS-IN 0 >> >> CALLS-OUT 0 >> >> FAILED-CALLS-OUT 0 >> >> >> On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote: >> >> if you map it or not, a scanner would penetrate it. >> >> There are lot of sip scanners out there now, you just need to beware of >> them. >> >> >> On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> wrote: >> >> Thanks so much! I am sure many others will find this info invaluable. I will >> try the static route again but have one question: When I started with FS I >> found a "sip scanner" in FS and someone on this group said not to use port >> mapping since it was a security risk. Is that true? >> >> On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote: >> >> you are completely guessing at things. >> >> I want you to understand that the only reason you are having problems >> >> with this is because you don't understand how it works enough to know >> >> what you are doing 100% >> >> Its a given that the pnp stuff is only for your dynamic IP. >> >> aggressive-nat-detection and sip-force-expires are all related to >> >> inbound calls when the things who are registering to you may be behind >> >> nat. >> >> You need to learn the difference between which nat tools are >> >> *) designed for your FS to run behind nat >> >> *) designed for FS to run public and accept connections from devices behind >> nat. >> >> If you have a static IP, you don't need the pnp stuff so -nonat is fine >> >> What you need to do is set >> >> 1) set the params ext-sip-ip and ext-rtp-ip to your external static IP >> >> 2) map the sip ports and all of the rtp ports from your static IP to FS lan >> addr >> >> 3) set sip-ip and rtp-ip to the lan addr you forwarded through. >> >> >> If you don't do this: your outbound registration will use NAT to your >> >> provider and if there is no activity for the expire time on your NAT >> >> mapping the reverse port mapping from your provider back to you is >> >> lost. This is why you set your register expires to a very low number, >> >> (you need to make sure the provider does not turn the expires back up >> >> in the reply because it will beat your choice *see sip trace) if this >> >> is the case then you need the "ping" option set to 30, to continuously >> >> send an options to your provider. >> >> The static mapping is obviously the better, easier and more reliable >> solution. >> >> So I want you to understand that the only way to keep a nat mapped >> >> port alive is to continuously send traffic, all the other methods that >> >> you are mentioning are to detect that phones registered to your are >> >> behind nat, I gave you that force-expires option before because your >> >> trace was full of inbound reg so I thought that is what you wanted >> >> help with. >> >> >> >> >> >> >> >> >> On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> wrote: >> >> I should mention that I did not have this problem with an SPA9000 PBX >> >> (asterisk based) for over two years so FS may be pickier about upnp and/or >> >> nat, or just better at it exposing a problem in the router. >> >> I made different changes to the gateways to test different things. One >> >> failed after 17 hours, the other two stayed up. What did not work: >> >> added <variable name="sip-force-expires" value="30"/> to the directory >> >> entries as suggested. >> >> set the gateway expire times to 30 seconds. >> >> What worked (could be coincidental) for the two gateways that stayed up: >> >> I Added <param name="aggressive-nat-detection" value="true"/> >> >> I originally setup FS to use the static ip by setting external sip/rtp to >> >> just the static ip (no autonat:) and ran with -nonat but I could not get >> >> incoming calls. The only way it worked was to use autonat:1.2.3.4. The >> >> router has 1 static public address and 1 dynamic external IP, this is the >> >> root of the problem, upnp only tells FS about the dynamic ip Will keep this >> >> thread up-to-date for anyone who may be in the same boat someday. Thanks >> >> again for looking at the trace. >> >> Mario >> >> You should be setting the req freq to a low number on the outbound gateways >> >> The examples you showed had a series of inbound reg >> >> also set expire-seconds to 30 in your gateway xml >> >> >> The problem is if you are not constantly sending traffic to the box >> >> the nat mapping will go away. >> >> If you are in production you should be using a static ip with a static >> >> mapping, any trouble you are having is your own fault for playing with >> >> fire. The best we can do is tell you how to keep it contained. >> >> >> >> >> On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> wrote: >> >> I made the change. I had no idea the settings for the inside phones effected >> >> nat for the outside sip accounts. I was looking into aggressive-nat- >> >> detection since the internal profile status always shows the right external >> >> static IP but the nat_ap status always shows the dynamic ip. Crossing >> >> fingers/etc since this problem is 85% of time (weeks!) into FS changeover. >> >> Thanks! >> >> Mario >> >> On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: >> >> add >> >> <variable name="sip-force-expires" value="30"/> >> >> to the <variables> section of your <user> >> >> you have it at 600 and the nat mapping is timing out while the 600 >> >> seconds is ticking away >> >> >> >> On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> wrote: >> >> From the TSP: >> >> "I have enabled the SIP trace on your account. We are not currently seeing >> >> any registration attempts to your account within the last 15 minutes. Please >> >> restart FreeSwitch so that registration attempts begin again. Thank you. ". >> >> So FS is not getting past router. >> >> On Oct 26, 2010, at 9:09 AM, Mario G wrote: >> >> I ran the global trace during the problem and it is >> >> at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", >> >> "accttwo", "acct3". The trace includes phones since it was global. I am >> >> using: >> >> <param name="ext-rtp-ip" value="autonat:my-static.ip"/> >> >> <param name="ext-sip-ip" value="autonat:my-static.ip"/> >> >> I tried dumping nat and removing the autonat: above and using -nonat but >> >> that did not work, registration proceeded but no calls inbound. >> >> On Oct 25, 2010, at 4:11 PM, Mario G wrote: >> >> Whoops, I am using an IP address for at least one gateway so that is not the >> >> problem: >> >> They look outbound to me and I am using dns for 2 and an IP for one so that >> >> is not the issue. I was able to get FS to clear this up by doing "nat_map >> >> reinit" which is why I think this is a nat problem. I will do the trace you >> >> mentioned. I will plug an ip address into one of the gateways to see what >> >> happens, they all fail at once. Thanks for responding! >> >> Mario >> >> On Oct 25, 2010, at 3:26 PM, Mario wrote: >> >> I really need help on this as I have weeks into this problem. I thought I >> >> had it nailed but I guess not. After 5.5 hours I get: >> >> 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid >> >> 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid >> >> 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed >> >> Registration, setting retry to 30 seconds. >> >> 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid >> >> 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid >> >> 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 >> >> and no way to make/get calls until I restart FS. I did this: >> >> 1. log 7 >> >> 2. sofia profile xxxx siptrace on for each profile/gateway >> >> 3. restarted router >> >> All three did not solve the problem. The trace and log produced no >> >> additional lines which is why I am wondering if FS has a problem since the >> >> trace shows no SIP activity. >> >> 3 gateways with 2 ITSPs >> >> 2 DSL/WAN lines, 1 static and 1 dynamic >> >> I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the >> >> external static ip. >> >> sofia status profile ... has the right ext ip >> >> nat_map status shows the dynamic (wrong) IP >> >> I tried starting with -nonat but that was worse >> >> the only way to fix is restart FS. >> >> I read the wiki on external nat, auto_nat and everything else many times. >> >> Thanks Mario >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale@hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org > googletalk:conf+888@conference.freeswitch.org > pstn:+19193869900 > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
UPDATED: I have the pcap and dump taken during the problem on our web server. Please send me a private email so I can send credentials. I don't want them public since they contain security info. THANKS SO MUCH! Here is where we are: Lot's of new info on this serious problem that looks like a FS bug or incompatibility for osX since it runs fine on Linux (same config/ip). It's acting like a timing issue where processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. Please review the steps I took: LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system. OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference. LINUX 6. Went back to the Linux box with git 10-13 using exact copy of config from mac, same IPs, etc. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours! OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it: 2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/ Note: I set the Minito no sleep although it worked on Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010. One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
On Oct 30, 2010, at 5:01 PM, Anthony Minessale wrote:
Even sooner there is 1 reg sent out never answered or at least it seems.
Get a pcap at the same time from another win. Also try to get a core dump of the running process.
I can help Monday if you can't do those things
On Oct 30, 2010 2:46 PM, "Mario G" <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote:
I am dead on the water without help so I greatly appreciate your help.
Finally got the loglevel 9 trace! Only 1 gateway (idtwo) defined and 1 phone hooked up to minimize data. http://pastebin.freeswitch.org/14368 <- subset of trace showing registration working and then failing http://pastebin.freeswitch.org/14365 <- this is full trace from startup minus thousands of duplicate lines http://pastebin.freeswitch.org/14367 <- a tiny fraction of the thousands of duplicated lines removed from above, goes from 500 to 1 twice
Still, notice how there is no SIP trace activity once the registrations fail: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com
<mailto:mario_fs@mgtech.com>> wrote:
> Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done. > > On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote: > >> can you repeat that trace with sofia debug on >> sofia loglevel all 9 >> >> Are you doing DNS by any chance in the gateway "proxy" param? >> you could try filling in the register-proxy param in your gateway to >> sip:<ip> <-- not dns but ip that dns resolves to >> <param name="register-proxy" value="sip:1.2.3.4"/> >> >> I'm just guessing but Its possible some bad dns query could be throwing FS off. >> so this test would force all the packets to the exact IP of your host >> instead of looking it up. >> >> >> >> On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> Oh Boy: Not only is everything set to the static route but I turned >>> off/disconnected the dynamic DSL line so I only had 1 static line to the >>> router. The second wan is set in the router off. Even turned off router uPnP >>> even though I am using -nonat. Guess what.... I still have the problem. Look >>> like when FS says is going to retry it actually does not. >>> Here is a short one: http://pastebin.freeswitch.org/14359 - I caught one >>> right after I started FS, failure occurred in minutes (lucky). Look at the >>> bottom of the trace, you see SIP trace activity and then when it fails no >>> SIP trace activity. Could this possibly be a FS bug? (I am a mainframe >>> assembler systems programmer and I might think so if there were error retry >>> messages but nothing showing in one of my traces...) >>> Notes: >>> idone is gateway 1 >>> idtwo is gateway 2 I had to trace both because it was impossible to figure >>> out which one would fail first. Ran several times but kept missing the right >>> one. >>> I use a url for one gateway and ip for another but it makes no difference >>> since both eventually fail. >>> 10. is local lan >>> 210. is external ip >>> 216. is itsp >>> >>> Here is a longer one from earlier http://pastebin.freeswitch.org/14357 >>> Notes: >>> A call was received and hung up for idtwo - beginning of trace >>> 11 minutes later idtwo failed - see last line of trace >>> >>> Thank you very much! >>> Mario >>> >>> On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote: >>> >>> stun-enabled must be true in your profile XML to see what you pasted. >>> >>> Get me a sip trace of this from when it works until when it fails >>> >>> only enable the sip trace on the profile with the gateway to reduce traffic >>> >>> >>> >>> On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> >>> Oh my... looks it was not NAT after all? Please help! I changed to all >>> profiles to static per instructions below and still have the problem: >>> >>> 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering uuid1 >>> >>> 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed >>> Registration, setting retry to 15 seconds. >>> >>> sofia global siptrace on did not show any activity for this gateway in or >>> out, others were fine but eventually fail. I setup static: >>> >>> 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP >>> >>> 2. map the sip ports (5060-5080) and all of the rtp ports (16384-32767) to >>> FS lan addr. >>> >>> 3. set sip-ip and rtp-ip to the lan addr of FS >>> >>> 4. start FS with -nonat >>> >>> I don't know what to try next. BTW, the sofia status for the profiles shows >>> stun enabled but I did not set it up anywhere: >>> >>> Name uuid1 >>> >>> Domain Name N/A >>> >>> Auto-NAT false >>> >>> DBName sofia_reg_idtwo >>> >>> Pres Hosts >>> >>> Dialplan XML >>> >>> Context public >>> >>> Challenge Realm auto_to >>> >>> RTP-IP 10.x.x.20 >>> >>> Ext-RTP-IP 210.x.x.100 >>> >>> SIP-IP 10.x.x.20 >>> >>> Ext-SIP-IP 210.x.x.100 >>> >>> URL sip:mod_sofia@210.x.x.100:5068 >>> >>> BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 >>> >>> HOLD-MUSIC local_stream://moh >>> >>> OUTBOUND-PROXY N/A >>> >>> CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM >>> >>> CODECS OUT PCMU,PCMA,GSM >>> >>> TEL-EVENT 101 >>> >>> DTMF-MODE rfc2833 >>> >>> CNG 13 >>> >>> SESSION-TO 0 >>> >>> MAX-DIALOG 0 >>> >>> NOMEDIA false >>> >>> LATE-NEG false >>> >>> PROXY-MEDIA false >>> >>> AGGRESSIVENAT false >>> >>> STUN-ENABLED true >>> >>> STUN-AUTO-DISABLE false >>> >>> CALLS-IN 0 >>> >>> FAILED-CALLS-IN 0 >>> >>> CALLS-OUT 0 >>> >>> FAILED-CALLS-OUT 0 >>> >>> >>> On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote: >>> >>> if you map it or not, a scanner would penetrate it. >>> >>> There are lot of sip scanners out there now, you just need to beware of >>> them. >>> >>> >>> On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> >>> Thanks so much! I am sure many others will find this info invaluable. I will >>> try the static route again but have one question: When I started with FS I >>> found a "sip scanner" in FS and someone on this group said not to use port >>> mapping since it was a security risk. Is that true? >>> >>> On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote: >>> >>> you are completely guessing at things. >>> >>> I want you to understand that the only reason you are having problems >>> >>> with this is because you don't understand how it works enough to know >>> >>> what you are doing 100% >>> >>> Its a given that the pnp stuff is only for your dynamic IP. >>> >>> aggressive-nat-detection and sip-force-expires are all related to >>> >>> inbound calls when the things who are registering to you may be behind >>> >>> nat. >>> >>> You need to learn the difference between which nat tools are >>> >>> *) designed for your FS to run behind nat >>> >>> *) designed for FS to run public and accept connections from devices behind >>> nat. >>> >>> If you have a static IP, you don't need the pnp stuff so -nonat is fine >>> >>> What you need to do is set >>> >>> 1) set the params ext-sip-ip and ext-rtp-ip to your external static IP >>> >>> 2) map the sip ports and all of the rtp ports from your static IP to FS lan >>> addr >>> >>> 3) set sip-ip and rtp-ip to the lan addr you forwarded through. >>> >>> >>> If you don't do this: your outbound registration will use NAT to your >>> >>> provider and if there is no activity for the expire time on your NAT >>> >>> mapping the reverse port mapping from your provider back to you is >>> >>> lost. This is why you set your register expires to a very low number, >>> >>> (you need to make sure the provider does not turn the expires back up >>> >>> in the reply because it will beat your choice *see sip trace) if this >>> >>> is the case then you need the "ping" option set to 30, to continuously >>> >>> send an options to your provider. >>> >>> The static mapping is obviously the better, easier and more reliable >>> solution. >>> >>> So I want you to understand that the only way to keep a nat mapped >>> >>> port alive is to continuously send traffic, all the other methods that >>> >>> you are mentioning are to detect that phones registered to your are >>> >>> behind nat, I gave you that force-expires option before because your >>> >>> trace was full of inbound reg so I thought that is what you wanted >>> >>> help with. >>> >>> >>> >>> >>> >>> >>> >>> >>> On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> >>> I should mention that I did not have this problem with an SPA9000 PBX >>> >>> (asterisk based) for over two years so FS may be pickier about upnp and/or >>> >>> nat, or just better at it exposing a problem in the router. >>> >>> I made different changes to the gateways to test different things. One >>> >>> failed after 17 hours, the other two stayed up. What did not work: >>> >>> added <variable name="sip-force-expires" value="30"/> to the directory >>> >>> entries as suggested. >>> >>> set the gateway expire times to 30 seconds. >>> >>> What worked (could be coincidental) for the two gateways that stayed up: >>> >>> I Added <param name="aggressive-nat-detection" value="true"/> >>> >>> I originally setup FS to use the static ip by setting external sip/rtp to >>> >>> just the static ip (no autonat:) and ran with -nonat but I could not get >>> >>> incoming calls. The only way it worked was to use autonat:1.2.3.4. The >>> >>> router has 1 static public address and 1 dynamic external IP, this is the >>> >>> root of the problem, upnp only tells FS about the dynamic ip Will keep this >>> >>> thread up-to-date for anyone who may be in the same boat someday. Thanks >>> >>> again for looking at the trace. >>> >>> Mario >>> >>> You should be setting the req freq to a low number on the outbound gateways >>> >>> The examples you showed had a series of inbound reg >>> >>> also set expire-seconds to 30 in your gateway xml >>> >>> >>> The problem is if you are not constantly sending traffic to the box >>> >>> the nat mapping will go away. >>> >>> If you are in production you should be using a static ip with a static >>> >>> mapping, any trouble you are having is your own fault for playing with >>> >>> fire. The best we can do is tell you how to keep it contained. >>> >>> >>> >>> >>> On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> >>> I made the change. I had no idea the settings for the inside phones effected >>> >>> nat for the outside sip accounts. I was looking into aggressive-nat- >>> >>> detection since the internal profile status always shows the right external >>> >>> static IP but the nat_ap status always shows the dynamic ip. Crossing >>> >>> fingers/etc since this problem is 85% of time (weeks!) into FS changeover. >>> >>> Thanks! >>> >>> Mario >>> >>> On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: >>> >>> add >>> >>> <variable name="sip-force-expires" value="30"/> >>> >>> to the <variables> section of your <user> >>> >>> you have it at 600 and the nat mapping is timing out while the 600 >>> >>> seconds is ticking away >>> >>> >>> >>> On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: >>> >>> From the TSP: >>> >>> "I have enabled the SIP trace on your account. We are not currently seeing >>> >>> any registration attempts to your account within the last 15 minutes. Please >>> >>> restart FreeSwitch so that registration attempts begin again. Thank you. ". >>> >>> So FS is not getting past router. >>> >>> On Oct 26, 2010, at 9:09 AM, Mario G wrote: >>> >>> I ran the global trace during the problem and it is >>> >>> at http://pastebin.freeswitch.org/14324 . You can find "rnktel", "acctone", >>> >>> "accttwo", "acct3". The trace includes phones since it was global. I am >>> >>> using: >>> >>> <param name="ext-rtp-ip" value="autonat:my-static.ip"/> >>> >>> <param name="ext-sip-ip" value="autonat:my-static.ip"/> >>> >>> I tried dumping nat and removing the autonat: above and using -nonat but >>> >>> that did not work, registration proceeded but no calls inbound. >>> >>> On Oct 25, 2010, at 4:11 PM, Mario G wrote: >>> >>> Whoops, I am using an IP address for at least one gateway so that is not the >>> >>> problem: >>> >>> They look outbound to me and I am using dns for 2 and an IP for one so that >>> >>> is not the issue. I was able to get FS to clear this up by doing "nat_map >>> >>> reinit" which is why I think this is a nat problem. I will do the trace you >>> >>> mentioned. I will plug an ip address into one of the gateways to see what >>> >>> happens, they all fail at once. Thanks for responding! >>> >>> Mario >>> >>> On Oct 25, 2010, at 3:26 PM, Mario wrote: >>> >>> I really need help on this as I have weeks into this problem. I thought I >>> >>> had it nailed but I guess not. After 5.5 hours I get: >>> >>> 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed >>> >>> Registration, setting retry to 15 seconds. >>> >>> 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering mvuuid >>> >>> 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering mguuid >>> >>> 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed >>> >>> Registration, setting retry to 30 seconds. >>> >>> 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed >>> >>> Registration, setting retry to 15 seconds. >>> >>> 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed >>> >>> Registration, setting retry to 15 seconds. >>> >>> 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering mvuuid >>> >>> 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering mguuid >>> >>> 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering mynum777 >>> >>> and no way to make/get calls until I restart FS. I did this: >>> >>> 1. log 7 >>> >>> 2. sofia profile xxxx siptrace on for each profile/gateway >>> >>> 3. restarted router >>> >>> All three did not solve the problem. The trace and log produced no >>> >>> additional lines which is why I am wondering if FS has a problem since the >>> >>> trace shows no SIP activity. >>> >>> 3 gateways with 2 ITSPs >>> >>> 2 DSL/WAN lines, 1 static and 1 dynamic >>> >>> I am using autonat:1.2.3.4 in internal and external profiles. 1.2.3.4 is the >>> >>> external static ip. >>> >>> sofia status profile ... has the right ext ip >>> >>> nat_map status shows the dynamic (wrong) IP >>> >>> I tried starting with -nonat but that was worse >>> >>> the only way to fix is restart FS. >>> >>> I read the wiki on external nat, auto_nat and everything else many times. >>> >>> Thanks Mario >>> >>>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
you already have my email addr from the 100 emails on this thread. On Sun, Oct 31, 2010 at 2:24 PM, Mario G <mario_fs@mgtech.com> wrote:
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH! LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system. OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference. LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours! OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it: 2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/ Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010. One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
On Oct 30, 2010, at 5:01 PM, Anthony Minessale wrote:
Even sooner there is 1 reg sent out never answered or at least it seems.
Get a pcap at the same time from another win. Also try to get a core dump of the running process.
I can help Monday if you can't do those things
On Oct 30, 2010 2:46 PM, "Mario G" <mario_fs@mgtech.com> wrote:
I am dead on the water without help so I greatly appreciate your help.
Finally got the loglevel 9 trace! Only 1 gateway (idtwo) defined and 1 phone hooked up to minimize data. http://pastebin.freeswitch.org/14368 <- subset of trace showing registration working and then failing http://pastebin.freeswitch.org/14365 <- this is full trace from startup minus thousands of duplicate lines http://pastebin.freeswitch.org/14367 <- a tiny fraction of the thousands of duplicated lines removed from above, goes from 500 to 1 twice
Still, notice how there is no SIP trace activity once the registrations fail: 2010-10-30 09:30:15.046900 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. nta: timer K fired, terminate NOTIFY (3892042) outgoing_reclaim_all(0x0, 0x0, 0x102309cb0) nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set 2010-10-30 09:30:31.926382 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:30:47.685212 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:03.478941 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register 2010-10-30 09:31:19.219346 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-30 09:31:36.208448 [NOTICE] sofia_reg.c:342 Registering idtwo nua: nua_register: entering nua(0x1003c3750): sent signal r_register nua(0x1003c3750): recv signal r_register
Mario
On Oct 29, 2010, at 5:43 PM, Anthony Minessale wrote:
also raise loglevel to debug console loglevel debug
On Fri, Oct 29, 2010 at 7:29 PM, Mario G <mario_fs@mgtech.com> wrote:
Will so, BTW, I mentioned below one is dns and another uses IP, I tested that theory using an IP does not help. I also updated to todays git version and no help there. Will post when the trace is done.
On Oct 29, 2010, at 5:17 PM, Anthony Minessale wrote:
> can you repeat that trace with sofia debug on > sofia loglevel all 9 > > Are you doing DNS by any chance in the gateway "proxy" param? > you could try filling in the register-proxy param in your gateway to > sip:<ip> <-- not dns but ip that dns resolves to > <param name="register-proxy" value="sip:1.2.3.4"/> > > I'm just guessing but Its possible some bad dns query could be > throwing FS off. > so this test would force all the packets to the exact IP of your host > instead of looking it up. > > > > On Fri, Oct 29, 2010 at 6:30 PM, Mario G <mario_fs@mgtech.com> wrote: >> Oh Boy: Not only is everything set to the static route but I turned >> off/disconnected the dynamic DSL line so I only had 1 static line to >> the >> router. The second wan is set in the router off. Even turned off >> router uPnP >> even though I am using -nonat. Guess what.... I still have the >> problem. Look >> like when FS says is going to retry it actually does not. >> Here is a short one: http://pastebin.freeswitch.org/14359 - I caught >> one >> right after I started FS, failure occurred in minutes (lucky). Look >> at the >> bottom of the trace, you see SIP trace activity and then when it >> fails no >> SIP trace activity. Could this possibly be a FS bug? (I am a >> mainframe >> assembler systems programmer and I might think so if there were >> error retry >> messages but nothing showing in one of my traces...) >> Notes: >> idone is gateway 1 >> idtwo is gateway 2 I had to trace both because it was impossible to >> figure >> out which one would fail first. Ran several times but kept missing >> the right >> one. >> I use a url for one gateway and ip for another but it makes no >> difference >> since both eventually fail. >> 10. is local lan >> 210. is external ip >> 216. is itsp >> >> Here is a longer one from earlier >> http://pastebin.freeswitch.org/14357 >> Notes: >> A call was received and hung up for idtwo - beginning of trace >> 11 minutes later idtwo failed - see last line of trace >> >> Thank you very much! >> Mario >> >> On Oct 29, 2010, at 12:11 PM, Anthony Minessale wrote: >> >> stun-enabled must be true in your profile XML to see what you >> pasted. >> >> Get me a sip trace of this from when it works until when it fails >> >> only enable the sip trace on the profile with the gateway to reduce >> traffic >> >> >> >> On Fri, Oct 29, 2010 at 1:56 PM, Mario G <mario_fs@mgtech.com> >> wrote: >> >> Oh my... looks it was not NAT after all? Please help! I changed to >> all >> profiles to static per instructions below and still have the >> problem: >> >> 2010-10-29 11:15:18.536446 [NOTICE] sofia_reg.c:342 Registering >> uuid1 >> >> 2010-10-29 11:15:34.313150 [WARNING] sofia_reg.c:387 uuid1 Failed >> Registration, setting retry to 15 seconds. >> >> sofia global siptrace on did not show any activity for this gateway >> in or >> out, others were fine but eventually fail. I setup static: >> >> 1. set the params ext-sip-ip and ext-rtp-ip to my external static IP >> >> 2. map the sip ports (5060-5080) and all of the rtp ports >> (16384-32767) to >> FS lan addr. >> >> 3. set sip-ip and rtp-ip to the lan addr of FS >> >> 4. start FS with -nonat >> >> I don't know what to try next. BTW, the sofia status for the >> profiles shows >> stun enabled but I did not set it up anywhere: >> >> Name uuid1 >> >> Domain Name N/A >> >> Auto-NAT false >> >> DBName sofia_reg_idtwo >> >> Pres Hosts >> >> Dialplan XML >> >> Context public >> >> Challenge Realm auto_to >> >> RTP-IP 10.x.x.20 >> >> Ext-RTP-IP 210.x.x.100 >> >> SIP-IP 10.x.x.20 >> >> Ext-SIP-IP 210.x.x.100 >> >> URL sip:mod_sofia@210.x.x.100:5068 >> >> BIND-URL sip:mod_sofia@210.x.x.100:5068;maddr=10.x.x.20 >> >> HOLD-MUSIC local_stream://moh >> >> OUTBOUND-PROXY N/A >> >> CODECS IN G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM >> >> CODECS OUT PCMU,PCMA,GSM >> >> TEL-EVENT 101 >> >> DTMF-MODE rfc2833 >> >> CNG 13 >> >> SESSION-TO 0 >> >> MAX-DIALOG 0 >> >> NOMEDIA false >> >> LATE-NEG false >> >> PROXY-MEDIA false >> >> AGGRESSIVENAT false >> >> STUN-ENABLED true >> >> STUN-AUTO-DISABLE false >> >> CALLS-IN 0 >> >> FAILED-CALLS-IN 0 >> >> CALLS-OUT 0 >> >> FAILED-CALLS-OUT 0 >> >> >> On Oct 27, 2010, at 10:04 AM, Anthony Minessale wrote: >> >> if you map it or not, a scanner would penetrate it. >> >> There are lot of sip scanners out there now, you just need to beware >> of >> them. >> >> >> On Wed, Oct 27, 2010 at 11:50 AM, Mario G <mario_fs@mgtech.com> >> wrote: >> >> Thanks so much! I am sure many others will find this info >> invaluable. I will >> try the static route again but have one question: When I started >> with FS I >> found a "sip scanner" in FS and someone on this group said not to >> use port >> mapping since it was a security risk. Is that true? >> >> On Oct 27, 2010, at 9:10 AM, Anthony Minessale wrote: >> >> you are completely guessing at things. >> >> I want you to understand that the only reason you are having >> problems >> >> with this is because you don't understand how it works enough to >> know >> >> what you are doing 100% >> >> Its a given that the pnp stuff is only for your dynamic IP. >> >> aggressive-nat-detection and sip-force-expires are all related to >> >> inbound calls when the things who are registering to you may be >> behind >> >> nat. >> >> You need to learn the difference between which nat tools are >> >> *) designed for your FS to run behind nat >> >> *) designed for FS to run public and accept connections from devices >> behind >> nat. >> >> If you have a static IP, you don't need the pnp stuff so -nonat is >> fine >> >> What you need to do is set >> >> 1) set the params ext-sip-ip and ext-rtp-ip to your external static >> IP >> >> 2) map the sip ports and all of the rtp ports from your static IP to >> FS lan >> addr >> >> 3) set sip-ip and rtp-ip to the lan addr you forwarded through. >> >> >> If you don't do this: your outbound registration will use NAT to >> your >> >> provider and if there is no activity for the expire time on your NAT >> >> mapping the reverse port mapping from your provider back to you is >> >> lost. This is why you set your register expires to a very low >> number, >> >> (you need to make sure the provider does not turn the expires back >> up >> >> in the reply because it will beat your choice *see sip trace) if >> this >> >> is the case then you need the "ping" option set to 30, to >> continuously >> >> send an options to your provider. >> >> The static mapping is obviously the better, easier and more reliable >> solution. >> >> So I want you to understand that the only way to keep a nat mapped >> >> port alive is to continuously send traffic, all the other methods >> that >> >> you are mentioning are to detect that phones registered to your are >> >> behind nat, I gave you that force-expires option before because your >> >> trace was full of inbound reg so I thought that is what you wanted >> >> help with. >> >> >> >> >> >> >> >> >> On Wed, Oct 27, 2010 at 10:43 AM, Mario G <mario_fs@mgtech.com> >> wrote: >> >> I should mention that I did not have this problem with an SPA9000 >> PBX >> >> (asterisk based) for over two years so FS may be pickier about upnp >> and/or >> >> nat, or just better at it exposing a problem in the router. >> >> I made different changes to the gateways to test different things. >> One >> >> failed after 17 hours, the other two stayed up. What did not work: >> >> added <variable name="sip-force-expires" value="30"/> to the >> directory >> >> entries as suggested. >> >> set the gateway expire times to 30 seconds. >> >> What worked (could be coincidental) for the two gateways that stayed >> up: >> >> I Added <param name="aggressive-nat-detection" value="true"/> >> >> I originally setup FS to use the static ip by setting external >> sip/rtp to >> >> just the static ip (no autonat:) and ran with -nonat but I could not >> get >> >> incoming calls. The only way it worked was to use autonat:1.2.3.4. >> The >> >> router has 1 static public address and 1 dynamic external IP, this >> is the >> >> root of the problem, upnp only tells FS about the dynamic ip Will >> keep this >> >> thread up-to-date for anyone who may be in the same boat someday. >> Thanks >> >> again for looking at the trace. >> >> Mario >> >> You should be setting the req freq to a low number on the outbound >> gateways >> >> The examples you showed had a series of inbound reg >> >> also set expire-seconds to 30 in your gateway xml >> >> >> The problem is if you are not constantly sending traffic to the box >> >> the nat mapping will go away. >> >> If you are in production you should be using a static ip with a >> static >> >> mapping, any trouble you are having is your own fault for playing >> with >> >> fire. The best we can do is tell you how to keep it contained. >> >> >> >> >> On Tue, Oct 26, 2010 at 12:34 PM, Mario G <mario_fs@mgtech.com> >> wrote: >> >> I made the change. I had no idea the settings for the inside phones >> effected >> >> nat for the outside sip accounts. I was looking into aggressive-nat- >> >> detection since the internal profile status always shows the right >> external >> >> static IP but the nat_ap status always shows the dynamic ip. >> Crossing >> >> fingers/etc since this problem is 85% of time (weeks!) into FS >> changeover. >> >> Thanks! >> >> Mario >> >> On Oct 26, 2010, at 10:15 AM, Anthony Minessale wrote: >> >> add >> >> <variable name="sip-force-expires" value="30"/> >> >> to the <variables> section of your <user> >> >> you have it at 600 and the nat mapping is timing out while the 600 >> >> seconds is ticking away >> >> >> >> On Tue, Oct 26, 2010 at 12:01 PM, Mario G <mario_fs@mgtech.com> >> wrote: >> >> From the TSP: >> >> "I have enabled the SIP trace on your account. We are not currently >> seeing >> >> any registration attempts to your account within the last 15 >> minutes. Please >> >> restart FreeSwitch so that registration attempts begin again. Thank >> you. ". >> >> So FS is not getting past router. >> >> On Oct 26, 2010, at 9:09 AM, Mario G wrote: >> >> I ran the global trace during the problem and it is >> >> at http://pastebin.freeswitch.org/14324 . You can find "rnktel", >> "acctone", >> >> "accttwo", "acct3". The trace includes phones since it was global. I >> am >> >> using: >> >> <param name="ext-rtp-ip" value="autonat:my-static.ip"/> >> >> <param name="ext-sip-ip" value="autonat:my-static.ip"/> >> >> I tried dumping nat and removing the autonat: above and using -nonat >> but >> >> that did not work, registration proceeded but no calls inbound. >> >> On Oct 25, 2010, at 4:11 PM, Mario G wrote: >> >> Whoops, I am using an IP address for at least one gateway so that is >> not the >> >> problem: >> >> They look outbound to me and I am using dns for 2 and an IP for one >> so that >> >> is not the issue. I was able to get FS to clear this up by doing >> "nat_map >> >> reinit" which is why I think this is a nat problem. I will do the >> trace you >> >> mentioned. I will plug an ip address into one of the gateways to see >> what >> >> happens, they all fail at once. Thanks for responding! >> >> Mario >> >> On Oct 25, 2010, at 3:26 PM, Mario wrote: >> >> I really need help on this as I have weeks into this problem. I >> thought I >> >> had it nailed but I guess not. After 5.5 hours I get: >> >> 2010-10-25 15:05:43.407272 [WARNING] sofia_reg.c:387 mguuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:05:49.557478 [NOTICE] sofia_reg.c:342 Registering >> mvuuid >> >> 2010-10-25 15:05:59.206273 [NOTICE] sofia_reg.c:342 Registering >> mguuid >> >> 2010-10-25 15:06:04.923157 [WARNING] sofia_reg.c:387 mynum777 Failed >> >> Registration, setting retry to 30 seconds. >> >> 2010-10-25 15:06:05.358321 [WARNING] sofia_reg.c:387 mvuuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:06:16.125060 [WARNING] sofia_reg.c:387 mguuid Failed >> >> Registration, setting retry to 15 seconds. >> >> 2010-10-25 15:06:21.151240 [NOTICE] sofia_reg.c:342 Registering >> mvuuid >> >> 2010-10-25 15:06:33.060421 [NOTICE] sofia_reg.c:342 Registering >> mguuid >> >> 2010-10-25 15:06:35.392655 [NOTICE] sofia_reg.c:342 Registering >> mynum777 >> >> and no way to make/get calls until I restart FS. I did this: >> >> 1. log 7 >> >> 2. sofia profile xxxx siptrace on for each profile/gateway >> >> 3. restarted router >> >> All three did not solve the problem. The trace and log produced no >> >> additional lines which is why I am wondering if FS has a problem >> since the >> >> trace shows no SIP activity. >> >> 3 gateways with 2 ITSPs >> >> 2 DSL/WAN lines, 1 static and 1 dynamic >> >> I am using autonat:1.2.3.4 in internal and external profiles. >> 1.2.3.4 is the >> >> external static ip. >> >> sofia status profile ... has the right ext ip >> >> nat_map status shows the dynamic (wrong) IP >> >> I tried starting with -nonat but that was worse >> >> the only way to fix is restart FS. >> >> I read the wiki on external nat, auto_nat and everything else many >> times. >> >> Thanks Mario >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> >> >> -- >> >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> >> ClueCon http://www.cluecon.com/ >> >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> >> MSN:anthony_minessale@hotmail.com >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> >> sip:888@conference.freeswitch.org >> >> googletalk:conf+888@conference.freeswitch.org >> >> pstn:+19193869900 >> >> _______________________________________________ >> >> FreeSWITCH-users mailing list >> >> FreeSWITCH-users@lists.freeswitch.org >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> >> http://www.freeswitch.org >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale@hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org > googletalk:conf+888@conference.freeswitch.org > pstn:+19193869900 > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Just a quick note. Mario mentions he only sees the problems on osX. I see the exactly same errors and warning in my logs on a Linux box (Fedora 12 64-bit). Sometimes it happens every couple of minutes, sometimes it goes away for 2-3 hours. The excerpt attached is from a log of a freshly compiled git checkout. What I see is that if it happens, usually multiple external registrations go down, not just one or just the registrations with one server/provider. Cheers, Kurt On Sun, Oct 31, 2010 at 12:24:35PM -0700, Mario G wrote:
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH!
LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system.
OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference.
LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours!
OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it:
2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds.
I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/
Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010.
One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
what would help is if you can get a similar log with the siptrace on the profile and sofia global loglevel 9 The key is the catch the very first time it goes wrong, possibly a full pcap of any network activity as well to look for more clues. This appears to be some sort of strange environmental condition or particular edge case that breaks the sip lib internally. On Mon, Nov 1, 2010 at 5:51 PM, <pbdlists@pinboard.com> wrote:
Just a quick note. Mario mentions he only sees the problems on osX. I see the exactly same errors and warning in my logs on a Linux box (Fedora 12 64-bit). Sometimes it happens every couple of minutes, sometimes it goes away for 2-3 hours.
The excerpt attached is from a log of a freshly compiled git checkout. What I see is that if it happens, usually multiple external registrations go down, not just one or just the registrations with one server/provider.
Cheers,
Kurt
On Sun, Oct 31, 2010 at 12:24:35PM -0700, Mario G wrote:
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH!
LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system.
OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference.
LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours!
OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it:
2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds.
I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/
Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010.
One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Hello Anthony, Indeed, even though I can't understand most of what is going on in this debug output, it is helpful. Here what I found (I still have the traces, but can't put them anywhere public): - just before the registrations go away, freeswitch says it got an ICMP type 3 code 1 (no route to host): ESC[mESC[mtport_wakeup_pri(0x7f9030004520): events ERR ESC[mESC[mtport_udp_error: No route to host (113) [icmp type=3 code=1] ESC[mESC[m reported by [188..........9]:0 ESC[mESC[mnta_agent: tport: 88........1:1024: No route to host - a tcpdump, however, shows no such ICMP packet - routes are static and a dump of the routing table every 5 seconds shows that the default route (used for these destinations) is there - some more testing, capturing and searching shows a very interesting behaviour: - none of the network interfaces used to communicate to anywhere outside of the box do show the ICMP reported by freeswitch, neither the external facing interface, nor the internal facing interface - BUT: - on the loopback interface I do get ICMP type 3 code 1 (host unreachable) messages - the ICMP messages I see there are only for systems which which freeswitch is communicating - the ICMP messages I see there are exactly for the remote systems which were reported down, plus for one internal registrations) - the timestamps of the ICMP messages starting and the registrations going down match, as well as the timestamps of the ICMP messages stopping and the registrations coming up again I didn't change much on the default config and as far as I know nothing network related. Is it possible that I nevertheless messed up my config somewhere, causing freeswitch to chose the loopback interface for communicating from time to time? Cheers, Kurt On Mon, Nov 01, 2010 at 06:59:27PM -0500, Anthony Minessale wrote:
what would help is if you can get a similar log with the siptrace on the profile and sofia global loglevel 9 The key is the catch the very first time it goes wrong, possibly a full pcap of any network activity as well to look for more clues.
This appears to be some sort of strange environmental condition or particular edge case that breaks the sip lib internally.
On Mon, Nov 1, 2010 at 5:51 PM, <pbdlists@pinboard.com> wrote:
Just a quick note. Mario mentions he only sees the problems on osX. I see the exactly same errors and warning in my logs on a Linux box (Fedora 12 64-bit). Sometimes it happens every couple of minutes, sometimes it goes away for 2-3 hours.
The excerpt attached is from a log of a freshly compiled git checkout. What I see is that if it happens, usually multiple external registrations go down, not just one or just the registrations with one server/provider.
Cheers,
Kurt
On Sun, Oct 31, 2010 at 12:24:35PM -0700, Mario G wrote:
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH!
LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system.
OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference.
LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours!
OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it:
2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds.
I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/
Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010.
One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
-- ---------------------------------------------------------------------- : Kurt@pinboard.com http://www.pinboard.com/ business : : http://kurt.www.pinboard.com/ private : ---------------------------------------------------------------------- : Unix and Internet Specialist : : PGP fingerprint 5C88 FAD4 E111 F33E DA3E 2EC5 DF0E 220F FFD6 2FF1 : ----------------------------------------------------------------------
A final update for those interested. Anthony worked many hours last Mon-Wed (11/2-3) and solved this issue. I leave it up to him if he wants to explain/add comments. I thoroughly tested FS for 48 hours twice and shorter two other times. Not once did it fail to register, even after an isp upgrade knocked the line out 7 times one night. FS is recovering from lost connections and reregistering perfectly every time as far as I can tell. The fix was applied to the git on 11/3. MANY THANKS TO ANTHONY! Mario G On Nov 2, 2010, at 5:01 PM, pbdlists@pinboard.com wrote:
Hello Anthony,
Indeed, even though I can't understand most of what is going on in this debug output, it is helpful. Here what I found (I still have the traces, but can't put them anywhere public):
- just before the registrations go away, freeswitch says it got an ICMP type 3 code 1 (no route to host): ESC[mESC[mtport_wakeup_pri(0x7f9030004520): events ERR ESC[mESC[mtport_udp_error: No route to host (113) [icmp type=3 code=1] ESC[mESC[m reported by [188..........9]:0 ESC[mESC[mnta_agent: tport: 88........1:1024: No route to host - a tcpdump, however, shows no such ICMP packet - routes are static and a dump of the routing table every 5 seconds shows that the default route (used for these destinations) is there - some more testing, capturing and searching shows a very interesting behaviour: - none of the network interfaces used to communicate to anywhere outside of the box do show the ICMP reported by freeswitch, neither the external facing interface, nor the internal facing interface - BUT: - on the loopback interface I do get ICMP type 3 code 1 (host unreachable) messages - the ICMP messages I see there are only for systems which which freeswitch is communicating - the ICMP messages I see there are exactly for the remote systems which were reported down, plus for one internal registrations) - the timestamps of the ICMP messages starting and the registrations going down match, as well as the timestamps of the ICMP messages stopping and the registrations coming up again
I didn't change much on the default config and as far as I know nothing network related. Is it possible that I nevertheless messed up my config somewhere, causing freeswitch to chose the loopback interface for communicating from time to time?
Cheers,
Kurt
On Mon, Nov 01, 2010 at 06:59:27PM -0500, Anthony Minessale wrote:
what would help is if you can get a similar log with the siptrace on the profile and sofia global loglevel 9 The key is the catch the very first time it goes wrong, possibly a full pcap of any network activity as well to look for more clues.
This appears to be some sort of strange environmental condition or particular edge case that breaks the sip lib internally.
On Mon, Nov 1, 2010 at 5:51 PM, <pbdlists@pinboard.com> wrote:
Just a quick note. Mario mentions he only sees the problems on osX. I see the exactly same errors and warning in my logs on a Linux box (Fedora 12 64-bit). Sometimes it happens every couple of minutes, sometimes it goes away for 2-3 hours.
The excerpt attached is from a log of a freshly compiled git checkout. What I see is that if it happens, usually multiple external registrations go down, not just one or just the registrations with one server/provider.
Cheers,
Kurt
On Sun, Oct 31, 2010 at 12:24:35PM -0700, Mario G wrote:
I have the pcap and dump to email to you and lot's of new info on this serious bug (yes it's a bug on FS for osX). The pcap is 1.1M and dump is 350M, please tell me where to send them. I don't want to put then in public areas since they contain security info. Please review my steps below. I don't know FS or Linux internals but it seems a lot like a timing issue where two processes are not communicating with each other since retry messages occur but there is no SIP tracing going on. THANKS SO MUCH!
LINUX 1. Setup FS on OpenSuse starting Sep 15. After basic initial problems there was a serious nat/upnp problems that lasted 3 weeks. Fixed with help, but still used nat. 2. Final testing was on git 2010-10-13. Ran fine for 5 days on very old 32 bit system.
OSX 3. Purchased Mac Mini and installed FS git 2010-10-23. Lasted only 3 to 17 hours. Problems looked same as nat so switched to full static. 4. With all static (-nonat) and only one DSL static connection active ITSPs go down in 5-60 minutes one by one. Still thought it was network related. Sent you traces. 5. Updated to git 10-29 but made no difference.
LINUX 6. Went back to the Linux box with git 10-13 using copy of config from mac. Pure static as osX. No problems for 6 hours! 7. Copied and updated Linux to git 10-29 to be the same as Mac box. Again, no problems for 12 hours!
OSX 8. Went back to the mac to provide you with pcap and dump. In about 15 minutes FS lost 2 ITSPs. Here are messages issues during pcap/dump, NOTE clock message which is first I have seen of it:
2010-10-31 11:35:00.593970 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:13.118634 [NOTICE] sofia_reg.c:342 Registering idtwo 2010-10-31 11:35:16.432236 [NOTICE] sofia_reg.c:342 Registering idone 2010-10-31 11:35:19.898319 [CRIT] switch_time.c:760 Forward Clock Skew Detected! 2010-10-31 11:35:25.440207 [WARNING] switch_scheduler.c:114 Task was executed late by 2 seconds 1 heartbeat (core) 2010-10-31 11:35:29.946329 [WARNING] sofia_reg.c:387 idtwo Failed Registration, setting retry to 15 seconds. 2010-10-31 11:35:32.147466 [WARNING] sofia_reg.c:387 idone Failed Registration, setting retry to 15 seconds.
I found the instruction for PCAP and TCPDUMP here in case you need them: http://support.apple.com/kb/HT3994 http://www.osxbook.com/book/bonus/chapter8/core/
Note: I had the Mini set to no sleep even though it worked with Linux sleep. I found a couple others on the web who had the same problem and one had written a script to restart FS every 4 hours. Fried (tired) right now and cant find the URL but it was from Jan 2010.
One last thing to mention is that on osX using auto-nat:1.2.3.4 and some expiry parms, etc that may have triggered activity, FS worked much longer than on static. This is why I think it's timer or sync related and only on osX.
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
--
participants (5)
-
Anthony Minessale
-
Mario
-
Mario G
-
Michael Collins
-
pbdlists@pinboard.com