[OpenSIPS-Users] mid-registrar question

Dominic wallnut.monkeys at gmail.com
Wed Jul 25 08:13:24 EDT 2018


Thanks Alexey, I will give it another shot first thing this morning.

On Wed, Jul 25, 2018 at 1:05 AM, Alexey Kazantsev via Users <
users at lists.opensips.org> wrote:

> ... and yes, route[RELAY] is like this:
>
>
> route[RELAY] {
>     if ( !t_relay() ) {
>         send_reply("500","Internal Error");
>     }
>     exit;
> }
>
>
> or you may simply do:
>
>         # REGISTER processing
>         if ( is_method("REGISTER") ) {
>                 mid_registrar_save("location");
>                 switch ($retcode) {
>                         case 1:
>                                 $ru = "sip:10.223.15.21:5070";
>                                 t_relay();
>                                 break;
>                         case 2:
>                                 break;
>                         default:
>                                 xlog("L_ERROR", "failed to save
> registration! ($$ci=$ci)\n");
>                 }
>                 exit;
>         }
>
>
> Here's the tutorial http://www.opensips.org/Documentation/Tutorials-
> MidRegistrar
> But keep in mind that it is for OpenSIPS 2.3, as 2.4 does not have
> 'insertion_mode'
> option described there.
>
>
> -----------------------------------------------
> BR, Alexey
> http://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/20180725/5bdfea64/attachment-0001.html>


More information about the Users mailing list