You always have the option to subscribe to "all" events, and when the unregister happens check if any event is generated and it suits your needs, there could be another event type that might give you this info without having to be specifically the sofia::unregister, I'm not sure. Maybe worth the try... On Thu, Apr 4, 2019 at 12:04 PM mario_fs <mario_fs@mgtech.com> wrote:
I am trapping and logging unregister events using LUA sofia::unregister. I have found that the Counterpath’s push server is disconnecting intermittently but *not* by an “unregister” so the trap is not invoked and so cannot log it. Freeswitch is removing the registration for the device but the unregister trap is not called. Is there another event I could use to trap when FreeSwitch removes a registration?
hook event="custom" subclass="sofia::unregister" script=“….. Mario G _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com