Hello list,

I need to send to an external API events when user is registrated and de-registrated.
As far as I understand standart behaviour is as follows:

If user is not registered, he sends REGISTER and he is registrated (I can catch that because I make the auth).
If user is registered and sends REGISTER he is de-register. 
(Please correct me if I'm wrong.)
How can I catch that? 
Can I use event_route[usrloc:contact-expired]?

Thanks in advance!

--
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
tel: +37367398493
web: http://abriss.solutions/