As hot fix on kamailio hosts is created script

#!/bin/sh

DB_FILE=/etc/kazoo/kazoo-configs-kamailio/kamailio/db/kazoo.db

clean_dialogs() {
	local TIMESTAMP=$1
	sqlite3 $DB_FILE "update presentity SET expires=(received_time+900) where expires=0 and event='dialog' and instr(body, 'direction=\"recipient\"><state>early</state><local><identity display') > 0;"
}

TIMESTAMP=$(date +%s)
clean_dialogs "$TIMESTAMP"
exit 0

And added to /etc/crontab this record

0,15,30,45  *  *  *  * kamailio /usr/local/bin/clean_blf.sh


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.