[OpenSIPS-Users] do_routing not populating variables
Răzvan Crainea
razvan at opensips.org
Mon Jul 27 07:25:44 EST 2020
Hi, John!
According to your snippet, you're logging the attributes when do_routing
fails - well, if do_routing fails, it means that id didn't find any
rule, gateway or carrier that is able to handle the call, therefore it
is normal that all of them are NULL.
Best regards,
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 7/21/20 10:34 PM, John Kiniston wrote:
> Running 2.4
>
> I'm not sure if I'm calling do_routing right, I'm using it in a test.
>
> if(!do_routing("1","","","$avp(rule_attrs_pvar)","$avp(gw_attrs_pvar)","$avp(carrier_attrs_pvar)")){
> I log what I get back but nothing is populated.
> xlog("L_INFO"," return codes $avp(rule_attrs_pvar) $avp(gw_attrs_pvar)
> $avp(carrier_attrs_pvar)");
> --
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders, give
> orders, cooperate, act alone, solve equations, analyze a new problem,
> pitch manure, program a computer, cook a tasty meal, fight efficiently,
> die gallantly. Specialization is for insects.
> ---Heinlein
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list