Hello,
Thanks for reply.
Yeah i did it by asking db for..
avp_db_query("SELECT groupid FROM dr_groups WHERE domain =
'$fd'","$avp(i:600)");
and then using exactly the same avp for do_routing.
It works, but i am still wondering how to match domain different way (
do_routing())
Thanks.
2014-02-25 18:52 GMT+01:00 <[email protected]>:
> Hello,
>
> > I have the same problem on 1.9 rel.
> > | id | username | domain | groupid | description |
> > | 4 | .* | 10.10.10.5 | 0 | TEST
>
> If you don't need to match on username why not pass directly the groupid
> to `do_routing` ?
>
> do_routing("0");
>
> If you need to dynamically map between a domain and a groupid, use e.g.
>
> do_routing("$avp(10)");
>
> and an AVP table which maps from domains to groupid.
> S.
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users