[SR-Users] How to understad that user is de-registrating

Alexandru Covalschi 568691 at gmail.com
Fri Jun 24 09:46:47 CEST 2016


Thanks for the info guys, I've fixed my config to suit the correct logic.
Thanks again!

2016-06-23 8:40 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com>:

> Hello,
>
> On 19/06/16 19:41, Alexandru Covalschi wrote:
>
> 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.
>
>
> This is not always a de-registration. If the expires value in the new
> REGISTER is >0, then it is an update of the registration (or
> re-registration). Only if expires==0, then it is a de-registration.
>
> Cheers,
> Daniel
>
> (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/ <http://abs-telecom.com/>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://www.asipto.com - http://www.kamailio.orghttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
tel: +37367398493
web: http://abriss.solutions/ <http://abs-telecom.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160624/44a58592/attachment.html>


More information about the sr-users mailing list