<p></p>

<h3 dir="auto">Description</h3>

<p dir="auto">with the following args</p>
<pre class="notranslate"><code class="notranslate">--substdefs=/S_KAM_IP_PUBLIC/$KAM_IP_PUBLIC/ \
--substdefs=/S_KAM_SIP_PORT/$KAM_SIP_PORT/
</code></pre>
<p dir="auto">error logs when start</p>
<pre class="notranslate"><code class="notranslate"> 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/
</code></pre>
<h3 dir="auto">Troubleshooting</h3>
<p dir="auto">the first log was reported with this pr</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1276014619" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/3151" data-hovercard-type="pull_request" data-hovercard-url="/kamailio/kamailio/pull/3151/hovercard" href="https://github.com/kamailio/kamailio/pull/3151">#3151</a></p>
<p dir="auto">so looks like <code class="notranslate">pv_get_buffer_size()</code> returns <code class="notranslate">0</code>, and there looks like nowhere called <code class="notranslate">pv_set_buffer_size()</code>.</p>
<p dir="auto">I can confirm the same args works with the docker image: <code class="notranslate">kamailio/kamailio-ci:5.4.4-alpine</code>.</p>
<p dir="auto">the following config works in <code class="notranslate">kamailio.cfg</code>, so only the command line arg has problem.</p>
<pre class="notranslate"><code class="notranslate">#!substdef "!HOMER_DB_USER!homer_user!g"
#!substdefs "/ID/subst/"
</code></pre>
<h4 dir="auto">Reproduction</h4>

<p dir="auto">add the following arg to command line when kamailio start</p>
<pre class="notranslate"><code class="notranslate">--substdefs=/ID/VALUE/
</code></pre>
<h4 dir="auto">Debugging Data</h4>

<pre class="notranslate"><code class="notranslate">(paste your debugging data here)
</code></pre>
<h4 dir="auto">Log Messages</h4>

<pre class="notranslate"><code class="notranslate">(paste your log messages here)
</code></pre>
<h4 dir="auto">SIP Traffic</h4>

<pre class="notranslate"><code class="notranslate">(paste your sip traffic here)
</code></pre>
<h3 dir="auto">Possible Solutions</h3>

<h3 dir="auto">Additional Information</h3>
<ul dir="auto">
<li><strong>Kamailio Version</strong> - output of <code class="notranslate">kamailio -v</code></li>
</ul>
<pre class="notranslate"><code class="notranslate">(paste your output here)
</code></pre>
<ul dir="auto">
<li><strong>Operating System</strong>:</li>
</ul>

<pre class="notranslate"><code class="notranslate">(paste your output here)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3152">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPVGWSQVS5X376PMLLVP3YNLANCNFSM5ZGE6NMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZKESPLJMTJE5MX3253VP3YNLA5CNFSM5ZGE6NMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TAOO4AQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3152</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3152",
"url": "https://github.com/kamailio/kamailio/issues/3152",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>