[OpenSIPS-Users] Check_from and dbaliases
Sergio Gutierrez
saguti at gmail.com
Fri Nov 7 15:17:44 CET 2008
Hi Carlo.
You could use the avp_db_query() in module avpops.
http://www.opensips.org/html/docs/modules/devel/avpops.html#id2512006
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().
Thanks and regards,
Sergio.
On Fri, Nov 7, 2008 at 9:09 AM, Carlo Dimaggio <jaasmailing at gmail.com>wrote:
>
> Il giorno 07/nov/08, alle ore 13:05, Sergio Gutierrez ha scritto:
>
> > Hi Carlo.
> >
> > check_from() is a function from uri_db module which compares From
> > Username against Digest when its parameter use_uri_table is 0
> > (default behaviour).
> >
> > For your case, I think you would need, beside aliases, to enable
> > uri_db module, using uri_table, to define 1000 as an
> > "authentication alias" for user1.
>
> As I understand, I have to replicate some informations from alias_db
> and subscriber tables to uri table. This can be a solution but it is
> a little tricky to manage (I could have data misalignment for the 3
> tables - uri, subscriber and dbaliases).
> There is a "general purpose" function in order to make sql operations
> directly on db (select in dbaliases)?
>
>
> Thanks
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081107/a9fc30ca/attachment.htm
More information about the Users
mailing list