[OpenSIPS-Users] mid-registrar question

Dominic wallnut.monkeys at gmail.com
Wed Jul 25 09:21:36 EDT 2018


Alexey I basically started over from scratch using your script as a guide
and everything is working fine so far, I wish I could tell what I initially
did wrong, but I had a LOT of strange things in there, being a dev box and
all. Thanks a LOT for the help

On Wed, Jul 25, 2018 at 8:13 AM, Dominic <wallnut.monkeys at gmail.com> wrote:

> 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/Docume
>> ntation/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/fdb5e6e9/attachment.html>


More information about the Users mailing list