[OpenSIPS-Users] Segfault in mid_register module upon attempted save of OK
Jim DeVito
jim at devito.cc
Wed Oct 25 11:45:26 EDT 2017
Hi Liviu,
Confirmed fixed. Thanks for the good / quick work!
On Wed, Oct 25, 2017 at 8:49 AM, Liviu Chircu <liviu at opensips.org> wrote:
> 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 Developerhttp://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";
> 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 listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
-------------
Jim DeVito
Mobile 216.507.9497
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171025/2b3bdb1d/attachment-0001.html>
More information about the Users
mailing list