[sr-dev] [kamailio/kamailio] kazoo: wrong BLF when used application/dialog-info+xml (#1489)

sergey-safarov notifications at github.com
Thu May 10 14:33:31 CEST 2018


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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1489#issuecomment-388040183
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180510/4ec26a8f/attachment.html>


More information about the sr-dev mailing list