<div dir="ltr">Be careful with unregister on fail - it seems if there's just an intermittent internet interruption, it will unregister the box, which won't know it's been unregistered and you could lose your registration.<div>
Perhaps an option could be added to the code for "event-on-fail" 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"><<a href="mailto:fs-list@communicatefreely.net" target="_blank">fs-list@communicatefreely.net</a>></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'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>
> Hi Freeswtich Master,<br>
><br>
> I'm in a situation where I need to proactively moniter whether some<br>
> device/extension is on in my local network; If for some reason the<br>
> devices are offline, I need to be noticed immediately so that I can<br>
> restart the device;<br>
><br>
> Previously I use xlite client to suscribe to the presence notification<br>
> of the devices, but recently added some devices which not supporting<br>
> presence notification, so I want FreeSwitch to send an email<br>
> notification when some user/extention are getting unregistered;<br>
><br>
> How can I capture a Feeswtich user unregister event & launch a LUA<br>
> script then?<br>
><br>
> Happy days!<br>
><br>
> /Brgds, Alex<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">><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>
<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>