<div dir="ltr">Hello,<div><br></div><div>Thanks for reply.</div><div>Yeah i did it by asking db for..</div><div>avp_db_query("SELECT groupid FROM dr_groups WHERE domain = '$fd'","$avp(i:600)");<br>
</div><div>and then using exactly the same avp for do_routing.</div><div>It works, but i am still wondering how to match domain different way (<span style="font-family:arial,sans-serif;font-size:13.333333015441895px">do_routing())</span></div>
<div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-25 18:52 GMT+01:00 <span dir="ltr"><<a href="mailto:stephane@shimaore.net" target="_blank">stephane@shimaore.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Hello,<br>
<br>
> I have the same problem on 1.9 rel.<br>
</div><div class="">> | id | username | domain | groupid | description |<br>
</div><div class="">> | 4 | .* | 10.10.10.5 | 0 | TEST<br>
<br>
</div>If you don't need to match on username why not pass directly the groupid<br>
to `do_routing` ?<br>
<br>
do_routing("0");<br>
<br>
If you need to dynamically map between a domain and a groupid, use e.g.<br>
<br>
do_routing("$avp(10)");<br>
<br>
and an AVP table which maps from domains to groupid.<br>
<div class="HOEnZb"><div class="h5">S.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>