Hi Arun,
The parameter should be:
modparam("avpops","use_domain",1)
(no brackets around the 1)
Kind regards,
Carsten
2014-04-28 20:55 GMT+02:00 arun Jayaprakash <jayaprakasharun(a)yahoo.com>om>:
Hello Daniel,
When I set the use_domain parameter
modparam("avpops","domain_column","domain")
modparam("avpops","use_domain","1")
I get the following error:
ERROR: <core> [modparam.c:152]: set_mod_param_regex(): set_mod_param_regex:
parameter <use_domain> of type <1> not found in module <avpops>
Apr 28 18:45:48 ip-172-10-30-4 kamailio: : <core> [cfg.y:3570]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 510, column 35: Can't set module
parameter
Can you let me know what needs to be done, thank you.
Arun
________________________________
From: Daniel-Constantin Mierla <miconda(a)gmail.com>
To: arun Jayaprakash <jayaprakasharun(a)yahoo.com>om>; Kamailio (SER) - Users
Mailing List <sr-users(a)lists.sip-router.org>
Sent: Monday, April 28, 2014 3:29 AM
Subject: Re: [SR-Users] avp_db_load() & fetch attribute ....
Hello,
have you set use_domain parameter?
http://kamailio.org/docs/modules/stable/modules/avpops.html#avpops.p.use_do…
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(a)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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Carsten Bock
CEO (Geschäftsführer)
ng-voice GmbH
Schomburgstr. 80
D-22767 Hamburg / Germany
http://www.ng-voice.com
mailto:carsten@ng-voice.com
Office +49 40 34927219
Fax +49 40 34927220
Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/