<div dir="ltr">Be careful with unregister on fail - it seems if there&#39;s just an intermittent internet interruption, it will unregister the box, which won&#39;t know it&#39;s been unregistered and you could lose your registration.<div>

Perhaps an option could be added to the code for &quot;event-on-fail&quot; so you could use that information accordingly...</div><div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>

</div><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 6:58 AM, Tim St. Pierre <span dir="ltr">&lt;<a href="mailto:fs-list@communicatefreely.net" target="_blank">fs-list@communicatefreely.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you enable unregister-on-option-fail in the SIP profile, you could<br>
then watch for the unregister events.  I know that on the console, a<br>
warning is fired if this happens, and I&#39;m sure there is an associated<br>
event you could listen for.  You would have to have some sort of external<br>
script subscribe to events through the socket, then generate the e-mail.<br>
<br>
The default options-ping time is 30s, so you would know within 30s of an<br>
endpoint disappearing.  This only sends an event if it was registered and<br>
then goes away for an unknown reason.  You may still want to periodically<br>
check the registrations database against what you expect to be there.<br>
<div><div class="h5"><br>
<br>
<br>
王理 wrote:<br>
&gt; Hi Freeswtich Master,<br>
&gt;<br>
&gt; I&#39;m in a situation where I need to proactively moniter whether some<br>
&gt; device/extension is on in my local network; If for some reason the<br>
&gt; devices are offline, I need to be noticed immediately so that I can<br>
&gt; restart the device;<br>
&gt;<br>
&gt; Previously I  use xlite client to suscribe to the presence notification<br>
&gt; of the devices, but recently added some devices which not supporting<br>
&gt; presence notification, so I want FreeSwitch to send an email<br>
&gt; notification when some user/extention are getting unregistered;<br>
&gt;<br>
&gt; How can I capture a Feeswtich user unregister event &amp; launch a LUA<br>
&gt; script then?<br>
&gt;<br>
&gt; Happy days!<br>
&gt;<br>
&gt; /Brgds, Alex<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">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/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">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" 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>
</div></div></blockquote></div><br></div></div>