View previous topic :: View next topic |
Author |
Message |
preetha.ayyappan at gm... Guest
|
Posted: Fri Sep 26, 2008 7:28 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
hi,
I am getting the call records saved in the folder cdr-csv.I need to save this cdr details in mysql database.Is it possible to do?If yes please assist me to do this.
Thanks |
|
Back to top |
|
|
wasim at convergence.pk Guest
|
Posted: Fri Sep 26, 2008 8:21 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
look for cdrload.pl script in /usr/src/freeswitch/scripts/contrib/wasim
use with discretion and fix as needed ...
On Fri, Sep 26, 2008 at 6:27 PM, preetha Ayyappan <preetha.ayyappan@gmail.com (preetha.ayyappan@gmail.com)> wrote:
--
wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | as you scope creep, so shall we reap ... |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Fri Sep 26, 2008 8:24 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
you have 2 options in the category of just doing it simple.
1) write a cron job to kill -HUP `cat /usr/local/freeswitch/logs/freeswitch.pid` then when the cdr file rotates parse and insert it into the db.
2) alter the template in cdr_csv.conf.xml so it directly creates sql statements instead of CSV data and do the same as option 1 but a lot easier.
For anything more advanced than that it would take a lot more understanding on your part and explanation on mine.
On Fri, Sep 26, 2008 at 7:27 AM, preetha Ayyappan <preetha.ayyappan@gmail.com (preetha.ayyappan@gmail.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
preetha.ayyappan at gm... Guest
|
Posted: Fri Sep 26, 2008 11:44 pm Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
Thanks wasim.I have changed the line
my $dbh = DBI->connect("DBI:mysql:database=freeswitchdb;host=localhost","freeswitch","1234") in /usr/src/freeswitch/scripts/contrib/wasim/cdrload.pl .then i called an extension.Now the call details are recorded only in master.csv.I am not getting the details updated in database.Anything i have to do further after changing the above line in cdrload.pl ? |
|
Back to top |
|
|
wasim at convergence.pk Guest
|
Posted: Sat Sep 27, 2008 3:09 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
On Sat, Sep 27, 2008 at 10:43 AM, preetha Ayyappan <preetha.ayyappan@gmail.com (preetha.ayyappan@gmail.com)> wrote:
Quote: | Thanks wasim.I have changed the line
my $dbh = DBI->connect("DBI:mysql:database=freeswitchdb;host=localhost","freeswitch","1234") in /usr/src/freeswitch/scripts/contrib/wasim/cdrload.pl .then i called an extension.Now the call details are recorded only in master.csv.I am not getting the details updated in database.Anything i have to do further after changing the above line in cdrload.pl ?
|
You have to run the perl script ... once it works, then you can put it in cron
--
wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | as you scope creep, so shall we reap ... |
|
Back to top |
|
|
preetha.ayyappan at gm... Guest
|
Posted: Sat Sep 27, 2008 3:28 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
Actually now I can able to save the call detail records in the database through php.But the csv file does not contains the disposition details.How can i get the disposition in csv file?
Thanks.
On 9/26/08, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
--
Preetha.A |
|
Back to top |
|
|
wasim at convergence.pk Guest
|
Posted: Sat Sep 27, 2008 3:33 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
Sat, Sep 27, 2008 at 2:26 PM, preetha Ayyappan <preetha.ayyappan@gmail.com (preetha.ayyappan@gmail.com)> wrote:
Quote: | Actually now I can able to save the call detail records in the database through php.But the csv file does not contains the disposition details.How can i get the disposition in csv file?
|
the variable is known as HANGUP_CAUSE
--
wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | as you scope creep, so shall we reap ... |
|
Back to top |
|
|
preetha.ayyappan at gm... Guest
|
Posted: Sat Sep 27, 2008 5:47 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
I dont understand.could you please tell me in brief?
On 9/27/08, Wasim Baig <wasim@convergence.pk (wasim@convergence.pk)> wrote:
--
Preetha.A |
|
Back to top |
|
|
freeswitch at cartisso... Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Sep 29, 2008 10:39 am Post subject: [Freeswitch-users] storing csv file in mysql database |
|
|
Everyone thank Yossi for his hard work on the Cluecon Videos.
http://files.freeswitch.org/cluecon_2008/
Please check them out.
/b
On Sep 29, 2008, at 10:31 AM, Yossi Neiman wrote:
Quote: | I ended up editing the video footage from Cluecon 2008 instead of
working on coding. I might be able to work up a direct logger (a
revamping of the original mod_cdr) in the near future if all works out
well for me time-wise.
--
Yossi Neiman
Cartis Solutions, Inc.
http://www.cartissolutions.com
|
|
|
Back to top |
|
|
|