[OpenSIPS-Users] Segfault in mid_register module upon attempted save of OK

Liviu Chircu liviu at opensips.org
Wed Oct 25 08:49:30 EDT 2017


Hi Jim,

Thank you for the nice report - just pushed a fix [1] for it on "master" 
and "2.3"!

Best regards,

[1]: https://github.com/OpenSIPS/opensips/commit/fc5762694201eb

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 24.10.2017 22:42, Jim DeVito wrote:
> Hi All,
>
> Getting into he mid_register module so I could very well be doing 
> something wrong. Please take a look at the below pasted info.
>
> https://pastebin.com/BeLktVpL
>
> Seems like it is crashing while parsing the OK back from the primary 
> registrar. For now I am using the scripting right out of your tutorial
>
> Please let me know if you notice something I am doing wrong or need 
> more info.
>
> Opensips 2.3.2 built from source. (same as yum)
>
> Thanks!!
>
> if (is_method("REGISTER")) {
>                 mid_registrar_save("location");
>                 switch ($retcode) {
>                         case 1:
>                                 xlog("forwarding REGISTER to main 
> registrar ($$ci=$ci)\n");
>                                 $ru = "sip:sip-core01.n2net.net:5060 
> <http://sip-core01.n2net.net:5060>";
>                                 t_relay();
>                                 break;
>                         case 2:
>                                 xlog("absorbing REGISTER! ($$ci=$ci)\n");
>                                 break;
>                         default:
>                                 xlog("failed to save registration! 
> ($$ci=$ci)\n");
>         }
>
>
> -------------
> Jim DeVito
>
>
> _______________________________________________
> 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/20171025/f0079f52/attachment.html>


More information about the Users mailing list