Menu

#27 drouting: non-standard do_routing() parameter

trunk
closed-fixed
modules (454)
5
2008-10-24
2008-10-16
No

Trying to set the group id as follows:

do_routing("$avp(s:GW_GROUP)")

This fails with a syntax error. The current format is:

do_routing("s:GW_GROUP")

It would be a good idea to change do_routing to accept $avp(s:GW_GROUP) format.

In addition, it appears that string avp's are not supported. The current method to make this work is to use something like the following:

$avp(i:32) = 0;
do_routing("i:32");

I would recommend that both of the above restrictions be lifted.

Discussion

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
    • status: open --> open-accepted
     
  • Bogdan-Andrei Iancu

    • status: open-accepted --> closed-fixed
     
  • Bogdan-Andrei Iancu

    Hi Norman,

    do_routing() accepts now parameter as "1" (for static values) or $avp() (for dynamic values).

    Also, I updated the ruri_avp module paramter to accept a proper AVP spec.

    Thanks and regards,
    Bogdan

     

Log in to post a comment.