[OpenSIPS-Users] Do_Routing problem
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue May 21 19:00:26 CEST 2013
Hello,
You can check what do_routing() set (as GWs to be used) by adding this
in your script (just after do_routing):
xlog("Destinations are: $ru $(avp(dr_ruri)[*]) \n");
xlog("GW IDs are : $(avp(dr_gw)[*]) \n");
xlog("GW ATTRs are : $(avp(dr_gw_attrs)[*]) \n");
xlog("CR IDs are : $(avp(dr_cr)[*]) \n");
xlog("CR ATTRs are : $(avp(dr_cr_attrs)[*]) \n");
xlog("RULE: id=$(avp(dr_rule)[*]),
attrs=$(avp(dr_rule_attrs)[*]), prefix=$(avp(dr_rule_prefix)[*]) \n");
Be sure you have these params set:
modparam("drouting","ruri_avp", "$avp(dr_ruri)")
modparam("drouting","gw_id_avp", "$avp(dr_gw)")
modparam("drouting","gw_attrs_avp", "$avp(dr_gw_attrs)")
modparam("drouting","rule_id_avp", "$avp(dr_rule)")
modparam("drouting","rule_attrs_avp", "$avp(dr_rule_attrs)")
modparam("drouting","rule_prefix_avp", "$avp(dr_rule_prefix)")
modparam("drouting","carrier_id_avp", "$avp(dr_cr)")
modparam("drouting","carrier_attrs_avp", "$avp(dr_cr_attrs)")
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05/21/2013 06:17 PM, M.Khaled W Chehab wrote:
>
> Hi,
>
>
>
> I am using opensips 1.8.3
>
> I set three gateways in carrier route , the call always go to the
> 1st and jump to third gateway and ignores the second
>
>
>
> Moreover I can see in debug level 4 ,
>
> DBG:drouting:push_gw_for_usage: adding gw [gw1] in order 0 adding gw
> [gw2] in order 1 adding gw [gw3] in order 3
>
>
>
> But using wireshark I can just see the invite to the first and the third
>
>
>
> Please advice
>
>
>
>
> _______________________________________________
> 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/20130521/69d4a022/attachment.htm>
More information about the Users
mailing list