Description

with the following args

--substdefs=/S_KAM_IP_PUBLIC/$KAM_IP_PUBLIC/ \
--substdefs=/S_KAM_SIP_PORT/$KAM_SIP_PORT/

error logs when start

 0(24400) ERROR: <core> [core/ppcfg.c:57]: pp_def_qvalue(): defined value is too large 0 < 15
 0(24400) ERROR: <core> [core/ppcfg.c:192]: pp_substdef_add(): failed to enclose in quotes the value
 0(24400) ERROR: <core> [main.c:2371]: main(): failed to add substdefs expression: /S_KAM_IP_PUBLIC/192.168.7.8/

Troubleshooting

the first log was reported with this pr

#3151

so looks like pv_get_buffer_size() returns 0, and there looks like nowhere called pv_set_buffer_size().

I can confirm the same args works with the docker image: kamailio/kamailio-ci:5.4.4-alpine.

the following config works in kamailio.cfg, so only the command line arg has problem.

#!substdef "!HOMER_DB_USER!homer_user!g"
#!substdefs "/ID/subst/"

Reproduction

add the following arg to command line when kamailio start

--substdefs=/ID/VALUE/

Debugging Data

(paste your debugging data here)

Log Messages

(paste your log messages here)

SIP Traffic

(paste your sip traffic here)

Possible Solutions

Additional Information

(paste your output here)
(paste your output here)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3152@github.com>