[SR-Users] avp_db_load() & fetch attribute ....

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 28 10:29:09 CEST 2014


Hello,

have you set use_domain parameter?

http://kamailio.org/docs/modules/stable/modules/avpops.html#avpops.p.use_domain

Then you can use the '/uri' flag for first parameter of avp_db_load().

Cheers,
Daniel

On 28/04/14 00:12, arun Jayaprakash wrote:
> Can someone let me know how I can fetch an attribute depending on the 
> value of two columns. For eg, in my usr_preference table I have 3 
> columns;
>
> username, domain, attribute.
>
> I need to fetch the attribute if the username = $ru and domain= $rd. 
> Can someone let me know how this can be done, thanks.
>
> Arun
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140428/9951caa9/attachment.html>


More information about the sr-users mailing list