You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a redis_cmd() call with more than two %s insertions. Kamailio throws parse errors at startup. See below for example and log messages.
Troubleshooting
This line works fine: redis_cmd("kam_redis", "SET %s %s-bar, "test_key", "foo" "r");
This one does not: redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");
Reproduction
Add a line like this: redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");
Log Messages
2020-08-13T16:39:05.468806+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: Too many arguments
2020-08-13T16:39:05.472800+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: '('')' expected (function call)
2020-08-13T16:39:05.473289+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 424, column 117: bad command: missing ';'?
2020-08-13T16:39:05.473927+00:00,vagrant-ubuntu-xenial-64: ERROR: <core> [core/cfg.y:3363]: yyparse(): function used inside params of another function: xlog
2020-08-13T16:39:05.475417+00:00,vagrant-ubuntu-xenial-64: CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 426, column 9: use of function execution inside params not allowed`
You have syntax errors because of missing ending " (quotes) after the 2nd and the 5th parameters. Should still be a problem, reopen with new log messages -- for me worked to pass over the syntax errors.
Description
Add a redis_cmd() call with more than two %s insertions. Kamailio throws parse errors at startup. See below for example and log messages.
Troubleshooting
This line works fine:
redis_cmd("kam_redis", "SET %s %s-bar, "test_key", "foo" "r");
This one does not:
redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");
Reproduction
Add a line like this:
redis_cmd("kam_redis", "SET %s %s-%s, "test_key", "foo", "bar, "r");
Log Messages
Additional Information
kamailio -v
I have confirmed the issue with the available later version packages as well.
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: