[OpenSIPS-Users] Use_next-$avp(gw_id) parameter

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 23 11:29:51 CEST 2013


Hi Khaled,

Check the return code of the use_next_gw() - if there is no other GW to
be used (all used), the function will return false and, of course, no
gw_id or rule_attrs will be available.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/22/2013 09:41 PM, M.Khaled W Chehab wrote:
>
> Dears
>
>  
>
> I am using opensips 1.8.3 with do_routing module
>
> From documentation:
>
> The name of the avp for storing the id of the current selected
> gateway/destination - once a new destination is selected (via the
> use_next_gw() function), the AVP will be updated with the ID of the
> new selected gateway/destination.
>
>  
>
>                             xlog("----------------after issue 2 gw:
> $avp(gw_id) ... and attrs : $avp(rule_attrs) ----------------------");
>
>                             use_next_gw();
>
>                            xlog("----------------before issue 2 gw:
> $avp(gw_id) .. and attrs : $avp(rule_attrs) ----------------------");
>
> debug
>
> ----------------after issue 2 gw: Snell_93 ... and attrs : 1
> ----------------------
>
> ----------------before issue 2 gw: <null> .. and attrs : <null>
> ----------------------
>
> How to force do_routing function to store the : $avp(gw_id)after
> use_next_gw();
>
>  
>
>  
>
> Regards
>
>  
>
>  
>
>
> _______________________________________________
> 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/20130523/e781688e/attachment.htm>


More information about the Users mailing list