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 ```