I could be mistaken, but it looks like you’re trying to use the developer 
functions (C functions) in your kamailio configuration.  I’m guessing you want 
to use save() from the registrar module?

Ben Kaufman

From: sr-users <[email protected]> On Behalf Of hamed r
Sent: Saturday, September 18, 2021 5:25 AM
To: [email protected]
Subject: [SR-Users] Error in ul_insert_ucontact() function of usrloc module

The user is not added using the ul_insert_ucontact() function :

ul_insert_ucontact("sip:[email protected]:1234<http://sip:[email protected]:1234>",
 "<sip:[email protected]:1234<http://sip:[email protected]:1234>>", "303", 
-1, "a2ecd821d4464d75851b73c35442b6ad", 2222, "0", "1", "MicroSIP/3.20.6", 
"udp:192.168.51.106:5060<http://192.168.51.106:5060>");

And the following error is displayed in the syslog:

Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 148: Too many arguments#012
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 148: '('')' expected (function call)
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 148: bad command: missing ';'?
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3683]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 150-152: bad command
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 153: bad command
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3683]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 155-171: bad command
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 172: bad command
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3683]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 174-198: bad command
Sep 18 14:36:48 srv139937 kamailio: CRITICAL: <core> [core/cfg.y:3686]: 
yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, 
line 838, column 199: bad command
Sep 18 14:36:48 srv139937 kamailio: ERROR: <core> [core/cfg.y:3532]: yyparse(): 
function used inside params of another function: is_method

what shoud i do?
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to