[OpenSIPS-Users] registration status using mid_registrar

Andrei G. andreigrav at gmail.com
Mon Mar 21 19:03:35 UTC 2022


Perfect

Thank you
Andrei

On Mon, Mar 21, 2022 at 8:43 PM Alexey Kazantsev via Users <
users at lists.opensips.org> wrote:

> Hi,
>
> what if to try to use some custom t_on_reply route ?
> Something like this:
>
>
> if (is__method("REGISTER")) {
>     xlog("L_INFO", "forwarding REGISTER to main registrar...\n");
>     $ru = "sip:10.0.0.3:5070";
>     t_on_reply("main_reg_replies");
>
>     if (!t_relay()) {
>         send_reply(500, "Server Internal Error 1");
>     }
>
>> }
>
>>
> onreply_route[main_reg_replies] {
>     xlog("reply status: $rs\n");
> }
>
> -----------------------------------------------
> BR, Alexey
> https://alexeyka.zantsev.com/
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220321/fcc58639/attachment.html>


More information about the Users mailing list