<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In default configuration, all DB is located in FS/db/. It's sqlite DB, so if you have sqlite installed</div><div><br></div><div><div># apt-get install sqlite3</div><div>$ cd /usr/local/freeswitch/db</div><div>$ sqlite3 core.db </div><div>SQLite version 3.4.2</div><div>Enter ".help" for instructions</div><div>sqlite> .help</div><div>.bail ON|OFF Stop after hitting an error. Default OFF</div><div>.databases List names and files of attached databases</div><div>.dump ?TABLE? ... Dump the database in an SQL text format</div><div>.echo ON|OFF Turn command echo on or off</div><div>.exit Exit this program</div><div>.explain ON|OFF Turn output mode suitable for EXPLAIN on or off.</div><div>.header(s) ON|OFF Turn display of headers on or off</div><div>.help Show this message</div><div>.import FILE TABLE Import data from FILE into TABLE</div><div>.indices TABLE Show names of all indices on TABLE</div><div>.load FILE ?ENTRY? Load an extension library</div><div>.mode MODE ?TABLE? Set output mode where MODE is one of:</div><div> csv Comma-separated values</div><div> column Left-aligned columns. (See .width)</div><div> html HTML <table> code</div><div> insert SQL insert statements for TABLE</div><div> line One value per line</div><div> list Values delimited by .separator string</div><div> tabs Tab-separated values</div><div> tcl TCL list elements</div><div>.nullvalue STRING Print STRING in place of NULL values</div><div>.output FILENAME Send output to FILENAME</div><div>.output stdout Send output to the screen</div><div>.prompt MAIN CONTINUE Replace the standard prompts</div><div>.quit Exit this program</div><div>.read FILENAME Execute SQL in FILENAME</div><div>.schema ?TABLE? Show the CREATE statements</div><div>.separator STRING Change separator used by output mode and .import</div><div>.show Show the current values for various settings</div><div>.tables ?PATTERN? List names of tables matching a LIKE pattern</div><div>.timeout MS Try opening locked tables for MS milliseconds</div><div>.width NUM NUM ... Set column widths for "column" mode</div><div>sqlite> .tables</div><div>aliases calls channels complete interfaces tasks </div><div>sqlite> .schema channels</div><div>CREATE TABLE channels (</div><div> uuid VARCHAR(255),</div><div> created VARCHAR(255),</div><div> created_epoch INTEGER,</div><div> name VARCHAR(255),</div><div> state VARCHAR(255),</div><div> cid_name VARCHAR(255),</div><div> cid_num VARCHAR(255),</div><div> ip_addr VARCHAR(255),</div><div> dest VARCHAR(255),</div><div> application VARCHAR(255),</div><div> application_data VARCHAR(255),</div><div> dialplan VARCHAR(255),</div><div> context VARCHAR(255),</div><div> read_codec VARCHAR(255),</div><div> read_rate VARCHAR(255),</div><div> write_codec VARCHAR(255),</div><div> write_rate VARCHAR(255)</div><div>);</div><div>CREATE INDEX uuindex on channels (uuid);</div><div>sqlite> select * from channels</div><div> ...> ;</div><div>sqlite> </div></div><br><div><html>On Mar 17, 2009, at 12:46 AM, Ali Al-Rubaie wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><br>Actually, I'm trying to explore what data is stored in the DB and how can we retrieve it, if it is posible. You may write some scripts to retrieve the data and use it in other supporting application.<br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><pre><br>Message: 7<br>Date: Mon, 16 Mar 2009 12:24:34 -0400<br>From: Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>><br>Subject: Re: [Freeswitch-users] FS Database<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Message-ID: <<a href="mailto:1BF9A176-1CE8-4D53-894B-E456DA8897A0@jerris.com">1BF9A176-1CE8-4D53-894B-E456DA8897A0@jerris.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>Which data?<br><br>On Mar 16, 2009, at 11:58 AM, Ali Al-Rubaie wrote:<br><br>> Hi,<br>><br>> Is it possible to access FS DB to retrieve data? Where can i find <br>> details about that?<br>-------------- next part
--------------<br>An HTML attachment was scrubbed...<br>URL:<br><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090316/d0d0a1b0/attachment.html">http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090316/d0d0a1b0/attachment.html</a><br><br><br>------------------------------<br><br>_______________________________________________<br>Freeswitch-users mailing list<br>Freeswitch-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br><br><br>End of Freeswitch-users Digest, Vol 33, Issue 67<br>************************************************<br></pre></blockquote></td></tr></tbody></table><br> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></body></html>