[sr-dev] [kamailio/kamailio] redis_cmd with more than 3 %s insertions causes parse error (#2457)

Daniel-Constantin Mierla notifications at github.com
Wed Aug 26 07:37:50 CEST 2020


```
 0(30690) CRITICAL: <core> [core/cfg.y:3517]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 433, column 83: Too many arguments
```

Kamailio module functions support up to 6 parameters, this is by its current design of config interpreter. If someone wants to extend, has to make a PR.

The rest of error messages are printed because the interpreter tries to parse further to detect more errors.

Also the `redis_cmd()` is defined with only up to 6 parameters -- it is explicitly written in its docs:

  * https://www.kamailio.org/docs/modules/stable/modules/ndb_redis.html#ndb_redis.f.redis_cmd

```
Total number of arguments cannot exceed six.
```

If you need more parameters, try to use an embedded scripting language like Lua (app_lua) or Python (app_python3), they have their own redis client libraries that you can use.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2457#issuecomment-680667006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200825/65e95ec7/attachment.htm>


More information about the sr-dev mailing list