[SR-Users] function get_user_group: parameter 1 is not constant

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 30 23:45:34 CET 2010



On 12/30/10 11:08 PM, Jijo wrote:
> I'm getting following config error when i use the api from group module.
>
> CSBC-JJ:/srv/www/htdocs/core # /usr/sbin/kamailio -c -f 
> /etc/kamailio/kamailio.cfg
> loading modules under 
> /usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/
>  0(5020) : <core> [cfg.y:3412]: parse error in config file 
> /etc/kamailio/kamailio.cfg, line 455, column 20-36: function 
> get_user_group: parameter 1 is not constant
>
>  0(5020) : <core> [cfg.y:3415]: parse error in config file 
> /etc/kamailio/kamailio.cfg, line 455, column 48: bad command
>  0(5020) INFO: pv [pv_shv.c:61]: locks array size 16
> ERROR: bad config file (2 errors)
>
> I have used the API get_user_group as shown below
>
>
>     $avp(r_contact)=$ru;
>     $avp(temp)=$null;
>     get_user_group($avp(reg_contact),$avp(temp));
enclose the parameters between double quotes.

Cheers,
Daniel

-- 

Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com




More information about the sr-users mailing list