Hi Carlo.<br><br>You could use the avp_db_query() in module avpops.<br><br><a href="http://www.opensips.org/html/docs/modules/devel/avpops.html#id2512006">http://www.opensips.org/html/docs/modules/devel/avpops.html#id2512006</a><br>
<br>For the validation you need, you would have to design the query to dbaliases. The function returns the result into an AVP, so you could evaluate it with avp_check().<br><br>Thanks and regards,<br><br>Sergio.<br><br><div class="gmail_quote">
On Fri, Nov 7, 2008 at 9:09 AM, Carlo Dimaggio <span dir="ltr"><<a href="mailto:jaasmailing@gmail.com">jaasmailing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Il giorno 07/nov/08, alle ore 13:05, Sergio Gutierrez ha scritto:<br>
<div class="Ih2E3d"><br>
> Hi Carlo.<br>
><br>
> check_from() is a function from uri_db module which compares From<br>
> Username against Digest when its parameter use_uri_table is 0<br>
> (default behaviour).<br>
><br>
> For your case, I think you would need, beside aliases, to enable<br>
> uri_db module, using uri_table, to define 1000 as an<br>
> "authentication alias" for user1.<br>
<br>
</div>As I understand, I have to replicate some informations from alias_db<br>
and subscriber tables to uri table. This can be a solution but it is<br>
a little tricky to manage (I could have data misalignment for the 3<br>
tables - uri, subscriber and dbaliases).<br>
There is a "general purpose" function in order to make sql operations<br>
directly on db (select in dbaliases)?<br>
<br>
<br>
Thanks<br>
<div><div></div><div class="Wj3C7c"><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>