<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>I spoke too soon. :(</p>
<p>If the stun lookup fails, the profile defaults to the internal address, so running this periodically could result in intermittant failures. I might have a crack at a script -</p>
<p>1. Query the status of the profile</p>
<p>2. Check if the IP is RFC1918</p>
<p>Yes: Start the profile</p>
<p>No: Do nothing</p>
<p> </p>
<p>-Francis</p>
<div> </div>
<p>On 2014-05-07 17:38, Francis wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Yes, I was thinking something along those lines, thanks!</p>
<p>I did a test, starting the profile when it was already running and it does a stun lookup, which had me wondering what would happen if the lookup failed, so I added a bogus stun server and sure enough, it threw an error, but the profile stayed up regardless. That's pretty much what I was hoping for, so setting up a cron job should do the trick.</p>
<p>Good to know there's a way to make it work if static IP's aren't available.</p>
<p>-Francis</p>
<p> </p>
<div> </div>
<p>On 2014-05-07 20:13, Steven Ayre wrote:</p>
<blockquote style="padding-left: 5px; border-left: #1010ff 2px solid; margin-left: 5px;"><!-- node type 8 --><!-- node type 8 --><!-- node type 8 -->
<div dir="ltr">
<div>You could also schedule 'sofia profile <name> start' to run periodically. If the profile is already started it'll do nothing, but if it isn't (eg STUN failed) it'll start it. That way if it fails on boot that command might start it a few minutes later.</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">But really your issue is with your firewall. On a reboot it should work just fine if your firewall is configured right. It'll only be a issue in the event that your internet link is down during boot.</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">-Steve</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On 7 May 2014 05:23, Ken Rice <span><<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">you can configure it statically, what mike is talking about, is people behind nat on a dynamic ip<br /><br /> Ken<br /> Sent from my iPad<br />
<div class="HOEnZb">
<div class="h5"><br /> > On May 6, 2014, at 22:23, Nathan Neulinger <<a href="mailto:nneul@mst.edu">nneul@mst.edu</a>> wrote:<br /> ><br /> > Isn't that making the assumption that dynamic addressing is required?<br /> ><br /> > Shouldn't he be able to configure that information staticly if he isn't behind a NAT? He doesn't indicate in his message<br /> > if stun is actually required for his deployment.<br /> ><br /> > -- Nathan<br /> ><br /> >> On 05/06/2014 02:10 PM, Michael Jerris wrote:<br /> >> we can't set the profile addresses until we get a stun response, and we can't start the profile listening without that address... so in short, no, no good way to do that.<br /> >><br /> >><br /> >>> On May 6, 2014, at 8:46 AM, Francis <<a href="mailto:sms@icefire.qza.net.au">sms@icefire.qza.net.au</a>> wrote:<br /> >>><br /> >>> I came across this accidentally, because of a broken firewall.<br /> >>><br /> >>> I rebooted a Freeswitch server, which came up but failed to load the<br /> >>> internal profile. When trying to reload the profile from fs_cli, I got<br /> >>> an error message that the stun server was invalid, which wasn't the<br /> >>> case, it was just the firewall blocking traffic. Disabling the firewall<br /> >>> and restarting the server got everything working again.<br /> >>><br /> >>> This effectively prevents a server from functioning, in the event of<br /> >>> having to reboot during an internet outage or if the stun server is<br /> >>> temporarily inaccessible. I'd rather the profile load regardless and<br /> >>> continue to probe the stun server until it gets a response. Is there any<br /> >>> way to set this?<br /> >>><br /> >>> Francis<br /> >>><br /> >>> _________________________________________________________________________<br /> >>> Professional FreeSWITCH Consulting Services:<br /> >>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /> >>> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br /> >>><br /> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /> >>> <a href="http://www.cudatel.com">http://www.cudatel.com</a><br /> >>><br /> >>> Official FreeSWITCH Sites<br /> >>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /> >>> <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /> >>> <a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /> >>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /> >><br /> >><br /> >> _________________________________________________________________________<br /> >> Professional FreeSWITCH Consulting Services:<br /> >> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /> >> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br /> >><br /> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /> >> <a href="http://www.cudatel.com">http://www.cudatel.com</a><br /> >><br /> >> Official FreeSWITCH Sites<br /> >> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /> >> <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /> >> <a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /> >> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /> ><br /> > --<br /> > ------------------------------------------------------------<br /> > Nathan Neulinger <a href="mailto:nneul@mst.edu">nneul@mst.edu</a><br /> > Missouri S&T Information Technology <a href="tel:%28573%29%20612-1412">(573) 612-1412</a><br /> > System Administrator - Architect<br /> ><br /> > _________________________________________________________________________<br /> > Professional FreeSWITCH Consulting Services:<br /> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /> > <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br /> ><br /> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /> > <a href="http://www.cudatel.com">http://www.cudatel.com</a><br /> ><br /> > Official FreeSWITCH Sites<br /> > <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /> > <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /> > <a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /> > <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /><br /> _________________________________________________________________________<br /> Professional FreeSWITCH Consulting Services:<br /><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br /><br /> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /><a href="http://www.cudatel.com">http://www.cudatel.com</a><br /><br /> Official FreeSWITCH Sites<br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /><a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
</div>
</blockquote>
</div>
</div>
</div>
<br />
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<!-- html ignored --><br />
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body></html>