<p></p>
<p>Issue reproduced with the minimal config from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="894115015" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/2736" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/2736/hovercard" href="https://github.com/kamailio/kamailio/issues/2736">#2736</a></p>
<pre><code>loadmodule "ipops.so"
loadmodule "pv.so"
loadmodule "textops.so"
loadmodule "textopsx.so"

pv_buffer_slots = 30

#!substdef "!MAJOR!$(version(num){re.subst,/^(([^\.])*\.([^\.])*)\..*/\1/})!g"
#!substdef "!MY_HOSTNAME!$HN(f)!g"
#!substdef "!MY_WEBSOCKET_DOMAIN!$HN(d)!g"
#!substdef "!KAMAILIO_DBMS!$def(KZ_DB_MODULE)!g"

#!substdef "!MY_IP_ADDRESS!$HN(i)!g"
#!substdef "!SANITY_SUBST_CACHE_PERIOD!$def(SANITY_CACHE_PERIOD)!g"

#!substdef "!KZQ_CHECK_MEDIA_SERVER_INSERT!insert into dispatcher (setid, destination) select \$var(SetId), \"\$var(MediaUrl)\" from DUAL where not exists(select * from dispatcher where destination = \"\$var(MediaUrl)\")!g"
#!substdef "!KZQ_COUNT_SUBSCRIBERS!select event, (select count(*) from active_watchers b where presentity_uri = \"\$var(presentity)\" and b.event = a.event) count from event_list a!g"
#!substdef "!KZQ_HANDLE_NEW_SUBSCRIBE_DELETE1!delete from active_watchers where callid = \"\$ci\"!g"
#!substdef "!KZQ_HANDLE_NEW_SUBSCRIBE_DELETE2!delete from active_watchers where watcher_username=\"\$fU\" and presentity_uri=\"\$var(presentity_uri)\" and to_user=\"\$tU\" and watcher_domain=\"\$fd\" and event=\"\$hdr(Event)\"!g"
#!substdef "!KZQ_RESET_PUBLISHER_UPDATE!update active_watchers set expires = \$TS where id in (select * from (select b.id from presentity a inner join active_watchers b on a.username = b.to_user and a.domain = b.to_domain and a.event = b.event where a.sender = \"\$var(MediaUrl)\") AS presentity_temp)!g"
#!substdef "!KZQ_PRESENCE_SEARCH_DETAIL!select * from active_watchers_log where presentity_uri = \"\$var(presentity_uri)\"!g"
#!substdef "!KZQ_PRESENCE_SEARCH_SUMMARY!select * from active_watchers where watcher_domain = \"\$var(Domain)\"!g"
#!substdef "!KZQ_PRESENCE_RESET!delete from presentity where sender = \"\$var(MediaUrl)\"!g"

listen=tcp:127.0.0.1:5090

####### Routing Logic ########
route
{
   $avp(device_id) = $hdr(X-Device-Id);
   $avp(account_db) = $hdr(X-Account-Db);
   $var(text) = $hdr(Contact);
   $var(expires) = $hdr(Expires);
   $var(header) = $hdr(X-KAZOO-Respond-With);
   $var(xxxx) = $hdr(To);
   $var(rr_base) = $hdr(Record-Route);
   $xavp(hf=>X-AUTH-IP) = $hdr(X-AUTH-IP);
   $xavp(hf=>X-AUTH-PORT) = $hdr(X-AUTH-PORT);
   $var(LocalRoute) = $hdr(X-TM-Local);
   $ru = $hdr(X-URN-Service);
   append_hf_value("Call-Info", "$(hdr(X-NenaCallId)[0])");

   if ($hdr(X-KAZOO-INVITE-FORMAT) == "route") {
       $var(referred_by) = $hdr(Referred-By);
   }

   if ($hdr(X-Redirect-Server) != $null) {
      $avp(destination_uri) = $hdr(X-KAZOO-AOR);
   }

}
</code></pre>
<p>Here used only 4 modules</p>
<pre><code>loadmodule "ipops.so"
loadmodule "pv.so"
loadmodule "textops.so"
loadmodule "textopsx.so"
</code></pre>
<p>Will retest with this config <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/c146ef490e1d7d35add7d3ee593f6d3d20e327ad/hovercard" href="https://github.com/kamailio/kamailio/commit/c146ef490e1d7d35add7d3ee593f6d3d20e327ad"><tt>c146ef4</tt></a> and if o, then bisect</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2788#issuecomment-871247533">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOETFWDXUYUSFYGXJLTVLQLNANCNFSM47KPNKGA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPZ7XNXDNOLLXVB56TTVLQLNA5CNFSM47KPNKGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGPXC5LI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2788#issuecomment-871247533",
"url": "https://github.com/kamailio/kamailio/issues/2788#issuecomment-871247533",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>