<div dir="auto">Maybe it’s a copy paste error...</div><div dir="auto"><br></div><div dir="auto">Try removing the spaces in the modparam “profiles_with_value” setting</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 5, 2020 at 00:51 Gertjan Wolzak <<a href="mailto:gertjan.wolzak@upcmail.nl">gertjan.wolzak@upcmail.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>Thanks again Sergiu,</p>
<pre style="white-space:pre-wrap;color:rgb(0,0,0);font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><i>Hmmm... if dialog params are wrapped in a ifdef condition, then do you have
something like #!define WITH_DIALOG at the top?</i></pre>
<p> </p>
But the #!define WITH_DIALOG is to choose between loading module
parameters or not loading module parameters...
<p>When you do not add #!ifdef WITH_XXX before the parameters and
#!endif after, then those parameters will be loaded when starting
Kamailio.</p>
<p>So, I still have the issue that the profile is not being loaded.</p>
<p>I have tried renaming the profiles, in the route and the
parameters, but that does not make a difference..</p>
<p><br>
</p>
<p># ---- Dialog params -------------<br>
modparam("dialog", "default_timeout", 7200)<br>
modparam("dialog", "db_mode", 0)<br>
modparam("dialog", "dlg_flag", DLG_FLAG)<br>
modparam("dialog", "hash_size", 4096)<br>
#modparam("dialog", "detect_spirals", 1)<br>
modparam("dialog", "profiles_with_value", "inbound ; outbound")<br>
<br>
</p>
<p>route[CONCURRENT_IN]<br>
{<br>
#Add call to customer profile<br>
#Check if customer has not reached inbound call limit<br>
<br>
#Get max concurrent calls<br>
sql_query("cc", "select max_calls_in from calllimit where
cust_id='$avp(custid)'", "ra");<br>
$avp(maxcalls)=$dbr(ra=>[0,0]);<br>
sql_result_free("ra");<br>
$avp(concurrent) = 0;<br>
get_profile_size("inbound", "$avp(custid)",
"$avp(concurrent)");<br>
if( $avp(concurrent) >= $var(max) )<br>
{<br>
xlog("L_INFO"," Call limit reached for customer
$avp(custid)\r\n ");<br>
sl_send_reply("503", "No Lines Available");<br>
exit;<br>
}<br>
set_dlg_profile("inbound", "$avp(custid)");<br>
<br>
return;<br>
}<br>
<br>
</p>
<p>But this still results in:</p>
<p><br>
</p>
<p>Dec 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]:
CRITICAL: dialog [dialog.c:391]: fixup_profile(): profile
<inbound> not defined<br>
Dec 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]: ERROR:
<core> [core/route.c:1166]: fix_actions(): fixing failed
(code=-6) at cfg:/usr/local/etc/kamailio/kamailio.cfg:1578</p>
<p> </p>
<p><br>
</p>
<pre style="white-space:pre-wrap;color:rgb(0,0,0);font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"></pre>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>