<div>I have it set to debug in switch.conf.xml and enable fsctl loglevel 7 in fs_cli....</div><div><br></div><div>:~$ cat /usr/local/freeswitch/conf/autoload_configs/switch.conf.xml | egrep &quot;param.*loglevel&quot;</div>
<div>    &lt;param name=&quot;loglevel&quot; value=&quot;debug&quot;/&gt;</div><div><br></div>With regards to sofia: how does it determine if the external IP has changed?  And when it does, does sofia initiate a reregister of all external sip providers?<div>
<br></div><div>Thanks!</div><div><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 3:14 AM, Mario G <span dir="ltr">&lt;<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">What you said: &quot;And nat_map status shows me which ports have been forwarded and the external ip address (which is sometimes wrong).  I also see this in the router gui.&quot; is also happening to me on a Linksys/Cisco RV042 router. Can&#39;t keep FS working for more than 2-5 hours without doing a restart or nat_map reinit. I think the routers upnp has a problem with dual wans, I have one static and one dynamic DSL.<div>
<div></div><div class="h5"><div><br><div><div>On Oct 26, 2010, at 6:43 AM, Rupa Schomaker wrote:</div><br><blockquote type="cite">What do you have set for loglevel in switch.conf.xml?  My guess is that you have it set to something other than debug.  If that is set to (say) info, then info is as low as you can go.  Setting the console log level to debug will not give you debug output.<div>

<br></div><div>sofia is unaware of upnp so a keepalive packet should have no impact on it&#39;s operation.  I&#39;m not familiar enough with sofia to tell what triggers that event.<br><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 6:24 AM, Mark Campbell-Smith <span dir="ltr">&lt;<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK..  tcpdump gave me this and I still do not see anything on FS except for this line:<div><br><div>2010-10-26 22:02:51.235608 [DEBUG] sofia.c:957 nua_i_outbound: unknown event 8: 102 NAT binding changed</div>

<div><br></div>
<div><div>Hypertext Transfer Protocol</div><div>    NOTIFY * HTTP/1.1\r\n</div><div>    HOST:<a href="http://239.255.255.250:1900/" target="_blank">239.255.255.250:1900</a>\r\n</div><div>    Cache-Control:max-age=120\r\n</div>

<div>    Location:<a href="http://192.168.1.1:1278/rootDesc.xml%5Cr%5Cn" target="_blank">http://192.168.1.1:1278/rootDesc.xml\r\n</a></div>
<div>    Server: Tomato UPnP/1.0 MiniUPnPd/1.4\r\n</div><div>    NT:urn:schemas-upnp-org:service:WANIPConnection:1\r\n</div><div>    USN:uuid:882dbe81-c28a-4992-baf7-410c05f1caf4::urn:schemas-upnp-org:service:WANIPConnection:1\r\n</div>


<div>    NTS:ssdp:alive\r\n</div><div>    \r\n</div><div><br></div>This looks the same as you posted before, so why do I get the unknown event 8 (is this related)?</div><div><br></div><div>Thanks!<div><div></div><div>
<br><div class="gmail_quote">
On Tue, Oct 26, 2010 at 3:32 PM, Mark Campbell-Smith <span dir="ltr">&lt;<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


:)  that was the first thing I did, but I get nothing; no keep alive packets.<div><br></div><div>in the logfile at startup I see:</div><div><br></div><div><div>2010-10-26 10:19:45.484258 [INFO] switch_nat.c:410 Scanning for NAT</div>



<div>2010-10-26 10:19:45.485991 [DEBUG] switch_nat.c:167 Checking for PMP 1/5</div><div>2010-10-26 10:19:45.488575 [INFO] switch_nat.c:423 NAT detected type: pmp, ExtIP: &#39;203.xxx.xxx.xxx&#39;</div><div>2010-10-26 10:19:45.490683 [DEBUG] switch_nat.c:256 NAT thread configured</div>



<div>2010-10-26 10:19:45.492180 [DEBUG] switch_nat.c:267 NAT thread started</div><div><br></div>And nat_map status shows me which ports have been forwarded and the external ip address (which is sometimes wrong).  I also see this in the router gui.  </div>



<div><br></div><div>But I never see the keep alive packets.</div><div><div></div><div><div><br></div><div><div class="gmail_quote">On Tue, Oct 26, 2010 at 3:13 PM, Rupa Schomaker <span dir="ltr">&lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just turn up console logging to level 7.<div><br></div><div>/log 7 if using fs_cli<div><div></div><div><br>
<br><div class="gmail_quote">On Mon, Oct 25, 2010 at 6:53 PM, Mark Campbell-Smith <span dir="ltr">&lt;<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<div><br></div><div>How do I enable debugging to get the UPnP keep alive packets?</div><div><br></div><div>Thanks!</div>




<div><div></div><div><div><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 1:15 AM, Rupa Schomaker <span dir="ltr">&lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need the debug logging from the upnp stuff.  It should look something like:<div><br></div><div><div>+OK log level 7 [7]</div>





<div>freeswitch@internal&gt; 2010-10-25 09:13:59.926861 [DEBUG] switch_nat.c:299 got UPnP keep alive packet:</div>
<div>NOTIFY * HTTP/1.1</div><div>HOST:<a href="http://239.255.255.250:1900/" target="_blank">239.255.255.250:1900</a></div><div>Cache-Control:max-age=60</div><div>Location:<a href="http://192.168.1.1:5000/rootDesc.xml" target="_blank">http://192.168.1.1:5000/rootDesc.xml</a></div>






<div>Server: Tomato UPnP/1.0 MiniUPnPd/1.4</div><div>NT:urn:schemas-upnp-org:service:WANIPConnection:1</div><div>USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:WANIPConnection:1</div><div>NTS:ssdp:alive</div>






<div><br></div><div>I also run tomato and haven&#39;t had trouble with the upnp support so at least we have that part working.</div><div><br></div><div>You should see the above keepalive appear periodically every 30s or so.  You should see another set of messages when you terminate the DSL connection and when that dsl connection comes back online.</div>





<div><div></div><div>
<br><div class="gmail_quote">On Sat, Oct 23, 2010 at 5:36 PM, Mark Campbell-Smith <span dir="ltr">&lt;<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






Hi!<div><br></div><div>The router is a ASUS router but it is running the tomato firmware which runs miniupnd.</div><div><br></div><div>In the debug I see the message: 2010-10-24 08:02:59.178918 [DEBUG] sofia.c:956 nua_i_outbound: unknown event 8: 101 NAT detected</div>








<div><br></div><div>This is what I see below. I hope I enabled all debug messages.  I thought I saw some xml type messages earlier, but not sure how I enabled them.</div><div><br></div><div><div>nta_outgoing: RTT is 67.958 ms</div>







<div>outbound(0xb6e07c00): NAT binding changed: [210.xx.xxx.xx]:5080 != [58.xxx.xx.xx]:5080</div><div>nua(0xb6e07c00): event i_outbound 102 NAT binding changed</div><div>nua: nua_application_event: entering</div><div>2010-10-24 09:05:08.849525 [DEBUG] sofia.c:956 nua_i_outbound: unknown event 8: 102 NAT binding changed</div>







</div><div><div></div><div><div><br><br><div class="gmail_quote">On Sun, Oct 24, 2010 at 1:08 AM, Rupa Schomaker <span dir="ltr">&lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

btw: what router are you using?<div><div></div><div><br><br><div class="gmail_quote">On Sat, Oct 23, 2010 at 9:06 AM, Rupa Schomaker <span dir="ltr">&lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;</span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In a upnp config, FS is depending on the router to notify it of the ip address change.  It is possible the upnp message(s) aren&#39;t formatted as expected.  If you turn on debug logging you&#39;ll get the upnp messages on the console.  If you can pastebin the capture of those while dropping and restarting the dsl connection I can maybe see if there is something obvious going on.  The debug should also have messages related to the processing of those upnp messages.<br>










<br><div class="gmail_quote"><div><div></div><div>On Sat, Oct 23, 2010 at 7:04 AM, Mark Campbell-Smith <span dir="ltr">&lt;<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>&gt;</span> wrote:<br>









</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
HI!<div><br></div><div>I know this question must have been answered 100&#39;s of times....</div><div><br></div><div>My adsl is a bit dodgy at the moment and tends to go up and down; which means I get assigned a new ip address from my ISP.  FS is nat&#39;d behind a upnp capable router.</div>











<div><br></div><div>The problem is that FS does not seem to be detecting the change.   For both the internal and external profile, I have auto-nat setup, and I have tried stun and host settings in vars.conf.  When I issue a nat_map status I see my old IP address, and if I then issue a nat_map reinit, I see the new public IP address.  How can I get this to be automatic?</div>











<div><br></div><div>Also the public IP address shown in the nat_map status is not the same as shown in the sofia profile internal/external printouts.  Why is this?</div><div><br></div><div>I&#39;m sure this is configuration, just not sure what to change.</div>











<div><br></div><div>Thanks!</div>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">-Rupa<br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">-Rupa<br>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div>
_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>