[OpenSIPS-Users] Mid_Registrar contact
nutxase
nutxase at proton.me
Thu Nov 17 11:02:11 UTC 2022
I guess let me go one step further and ask advice
What do you think is the best scenario to use if i want to register to asterisk and then when when my UAC goes to "sleep" keep the registration up on asterisk
Sent with [Proton Mail](https://proton.me/) secure email.
------- Original Message -------
On Thursday, November 17th, 2022 at 10:45 AM, Liviu Chircu <liviu at opensips.org> wrote:
> On 17.11.2022 12:37, nutxase wrote:
>
>> Just to confirm can registrar also forward the registration similar to how mid_registrar does?
>
> Approach 1: the [save()](https://opensips.org/docs/modules/3.4.x/registrar.html#func_save) function has an "r" flag (do not auto-send a reply upstream) which may be useful here, allowing you to t_relay() your REGISTER further downstream. A caveat here is that you're saving the Contact before the Asterisk, which may fail (e.g. 500 Internal Server Error). So what do you do then? You must delete it somehow...
>
> Approach 2: if I remember correctly, the [save()](https://opensips.org/docs/modules/3.4.x/registrar.html#func_save) function was also designed to work on a 200 OK reply! But I haven't tested this scenario in a long time, so I'm not sure how well or if it works at all nowadays.
>
> Best,
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu
> |
> www.opensips-solutions.com
> OpenSIPS eBootcamp 5-16 Dec |
> www.opensips.org/training
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221117/b4f55dce/attachment.html>
More information about the Users
mailing list