Hello,
I am trying to implement scenario described in this thread by Daniel-Constantin Mierla.
I am able to cache registration using save but i am not able to handle unregistration.
Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message.
Is there any workaround to fix this?
Thanks,
I forgot to add URL in previous email
https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html
On Mon, Apr 25, 2022 at 4:34 PM Linux Vince linuxv@gmail.com wrote:
Hello,
I am trying to implement scenario described in this thread by Daniel-Constantin Mierla.
I am able to cache registration using save but i am not able to handle unregistration.
Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message.
Is there any workaround to fix this?
Thanks,
Hello,
what about just handling the unregister REGISTER message in the normal request route?
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Linux Vince Sent: Monday, April 25, 2022 1:09 PM To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Local Registration Cache
I forgot to add URL in previous email
https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html
On Mon, Apr 25, 2022 at 4:34 PM Linux Vince <linuxv@gmail.commailto:linuxv@gmail.com> wrote: Hello,
I am trying to implement scenario described in this thread by Daniel-Constantin Mierla.
I am able to cache registration using save but i am not able to handle unregistration.
Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message.
Is there any workaround to fix this?
Thanks,
Hello,
at least in v5.5.x, the unregister() is exported for use in any route block.
Cheers, Daniel
On 25.04.22 13:08, Linux Vince wrote:
I forgot to add URL in previous email
https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html
On Mon, Apr 25, 2022 at 4:34 PM Linux Vince linuxv@gmail.com wrote:
Hello, I am trying to implement scenario described in this thread by Daniel-Constantin Mierla. I am able to cache registration using save but i am not able to handle unregistration. Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message. Is there any workaround to fix this? Thanks,
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Hello,
Thank you for the help.
I was reading documentation and it did not mention REPLY ROUTE has access to unregister().
I was able to use it and that solved the problem.
Thank you.
On Mon, Apr 25, 2022 at 5:18 PM Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
at least in v5.5.x, the unregister() is exported for use in any route block.
Cheers, Daniel On 25.04.22 13:08, Linux Vince wrote:
I forgot to add URL in previous email
https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html
On Mon, Apr 25, 2022 at 4:34 PM Linux Vince linuxv@gmail.com wrote:
Hello,
I am trying to implement scenario described in this thread by Daniel-Constantin Mierla.
I am able to cache registration using save but i am not able to handle unregistration.
Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message.
Is there any workaround to fix this?
Thanks,
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online
Hello,
ANY_ROUTE is used as an alias for all types of routes -- it is somehow propagated from C code to docs.
Good to know that it solves it.
Cheers, Daniel
On 26.04.22 05:58, Linux Vince wrote:
Hello,
Thank you for the help.
I was reading documentation and it did not mention REPLY ROUTE has access to unregister().
I was able to use it and that solved the problem.
Thank you.
On Mon, Apr 25, 2022 at 5:18 PM Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello, at least in v5.5.x, the unregister() is exported for use in any route block. Cheers, Daniel On 25.04.22 13:08, Linux Vince wrote:
I forgot to add URL in previous email https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html On Mon, Apr 25, 2022 at 4:34 PM Linux Vince <linuxv@gmail.com> wrote: Hello, I am trying to implement scenario described in this thread by Daniel-Constantin Mierla. I am able to cache registration using save but i am not able to handle unregistration. Unregister function of registrar module is not available in onreply routes and I cannot unregister until upstream registrar returns 200 OK on Expire 0 message. Is there any workaround to fix this? Thanks, __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio Advanced Training - Online * https://www.asipto.com/sw/kamailio-advanced-training-online/