I have made an application using the fifo application which behaves as
the Asterisk queue: It rings to the members. I use javascript DB to
access the core database in various scripts, f.in the following script:
//This script is used to disconnect agents being rung from a queue when
abandoned by the customer before answered.
use("CoreDB");
var db = new CoreDB("core");
var sql="select uuid from channels where cid_num='"+argv+"' and
state='CS_EXECUTE';";
db.prepare(sql);
while(db.next()) {
        rec = db.fetch();
        apiExecute("uuid_kill", rec["uuid"]);
}
db.close();

My problem is that I get a message from the CLI: mod_spidermonkey.c:3300
js_api_use() Loading CoreDB, [ERR] mod_spidermonkey_core_db.c:250
db_prepare() Error database is locked.
The error does not occur every time.
I have closed the database in every script using it.
Is the anything I should be aware of to prevent this from happening?

BEGIN:VCARD
VERSION:2.1
N:Bruel;Jon
FN:Jon Bruel
ORG:Consiglia;Udviklingsafdelingen
TITLE:Direktør
TEL;WORK;VOICE:201
TEL;HOME;VOICE:45161001
TEL;CELL;VOICE:26153060
ADR;WORK:;B201
LABEL;WORK:B201
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080627T092557Z
END:VCARD
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to