[Freeswitch-users] Getting started with db from php

Alex alex at thewinelake.com
Fri Jul 20 12:40:55 MSD 2012

Trying to do some stuff with the voicemail database from a php script.
Couldn't quickly find the connection runes to the sqlite DB.

Tried the following, but got the error "file is encrypted or is not a 

echo sqlite_libversion();
echo "<br>";

echo phpversion();
$dbhandle = sqlite_open('/usr/local/freeswitch/db/voicemail_default.db', 
0666, $error);
if (!$dbhandle) die ($error);

$sql = "SELECT * from voicemail_prefs";

$result = sqlite_exec($dbhandle, $stm, $error);
while ($row = sqlite_fetch_array($result, SQLITE_ASSOC)) {


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list