Issue reproduced with the minimal config from #2736
```
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);
}
}
```
Here used only 4 modules
```
loadmodule "ipops.so"
loadmodule "pv.so"
loadmodule "textops.so"
loadmodule "textopsx.so"
```
Will retest with this config c146ef490e1d7d35add7d3ee593f6d3d20e327ad and if o, then
bisect
--
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/2788#issuecomment-871247533