[OpenSIPS-Users] drouting module - dr_gateways table attrs field

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jan 22 16:20:22 CET 2009


Hi Ibrahim,

have you set the attr avp? Something like:
    modparam("drouting", "attrs_avp", '$avp(s:dr_attrs)')

Then after do_routing() or use_next_gw(), do :
   xlog("-----gw attr is $avp(s:dr_attrs)\n");

the value of the attr is whatever you want - the module does not interpret it - it is just reading it from DB and pass it to the AVP when you use the GW. It is your decision what to put there and how to use the value.


Regards,
Bogdan

ibrahim tunali wrote:
> Hello,
>
> I'm playing with the new module drouting on svn trunk and i need to
> get "which gateway is used on last request". I might be able to get it
> with "attrs_avp" and "attrs" field on dr_gateways table, i guess. I
> try some values to attrs but opensips crashed.
>
> Could you give an example to use attrs_avp and what is the value
> format of "attrs" fields.
>
> Regards,
>
> Ibrahim TUNALI
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list