[OpenSIPS-Users] Opensips 3.0 segfault on opensips-cli -x mi reload_routes

Bogdan-Andrei Iancu bogdan at opensips.org
Sat Jan 4 09:11:16 EST 2020


Hi Kirill,

sorry for the HUGE delay. Using your cfg files, I managed to start the 
latest 3.0, but the "reload_routes" does not crash at all - maybe 
because of this latest fix [1].

Could you grab the latest 3.0 and try again ?

[1] 
https://github.com/OpenSIPS/opensips/commit/fc728f0c5a8c012cb060f7490d9c31ff9e4fc590#diff-af2f1878a25d75ef415163dec6d0e654

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Bootcamp Pre-Registration
   https://opensips.org/training/OpenSIPS_Bootcamp/

On 8/29/19 3:32 PM, Kirill Galinurov wrote:
> Hi Bogdan. I performed additional tests. opensips-cli -x mi 
> reload_routes crashed when i use drouting module like this
> route[to_operator]{
> ####    route(get_groups_from_redis);#######
>            if 
> (!do_routing($avp(groupid),,,$avp(route_number),$avp(gateway_attr),$avp(carrier_attr),"*")){
>                    xlog("do_routing: No rules matching the URI 
> possibly number in rouming\n");
> #                       route(to_carrier);
>                        exit;
>                        } else {
>                            xlog("L_INFO", "do_routing: to operator 
> $avp(route_number) using provider $avp(carrier_id) and gateway 
> $avp(dr_gw_id)\n");
>                            xlog("L_INFO", "get_route: rule_attr - 
> $avp(route_number)\n");
>                            xlog("L_INFO", "get_route: gw_attr   - 
> $avp(gateway_attr)\n");
>                            xlog("L_INFO", "get_route: carr_attr - 
> $avp(carrier_attr)\n");
>                            xlog("L_INFO", "get_route: carrier_id 
> -$avp(carrier_id) \n");
>                            xlog("L_INFO", "get_route: gw_id     - 
> $avp(dr_gw_id)\n");
>                            xlog("L_INFO", "get_route: rule_id   - 
> $avp(dr_rule_id)\n");
>                            xlog("L_INFO", "get_route: socket_id - 
> $avp(dr_socket)\n");
>                            xlog("L_INFO", "get_route: source_ip - 
> $avp(dr_socket){s.select,1,:}\n");
>                            $avp(matched_partition) = 
> $var(matched_partition);
>                            xlog("Matched partition for number ------ 
> $avp(matched_partition) +++++++ rule_id is $avp(dr_rule_id)\n ");
> #                           route(set_carrier_callerid);
>                            exit;
>            }
> exit;
>
> }
>
>
> ср, 28 авг. 2019 г. в 13:19, Kirill Galinurov <k.galinurov at gmail.com 
> <mailto:k.galinurov at gmail.com>>:
>
>     Hi Bogdan. Did you reproduce the problem?
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200104/c1d4bc81/attachment.html>


More information about the Users mailing list