Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] storing csv file in mysql database


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
preetha.ayyappan at gm...
Guest





PostPosted: Fri Sep 26, 2008 7:28 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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





PostPosted: Fri Sep 26, 2008 8:21 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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:
Quote:
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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
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





PostPosted: Fri Sep 26, 2008 8:24 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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:
Quote:
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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
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





PostPosted: Fri Sep 26, 2008 11:44 pm    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with 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 ?
Back to top
wasim at convergence.pk
Guest





PostPosted: Sat Sep 27, 2008 3:09 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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





PostPosted: Sat Sep 27, 2008 3:28 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with 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?

Thanks.


On 9/26/08, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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:
Quote:
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



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Preetha.A
Back to top
wasim at convergence.pk
Guest





PostPosted: Sat Sep 27, 2008 3:33 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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





PostPosted: Sat Sep 27, 2008 5:47 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

I dont understand.could you please tell me in brief?

On 9/27/08, Wasim Baig <wasim@convergence.pk (wasim@convergence.pk)> wrote:
Quote:
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 ...


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Preetha.A
Back to top
freeswitch at cartisso...
Guest





PostPosted: Mon Sep 29, 2008 10:38 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with 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



preetha Ayyappan wrote:
Quote:
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

------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
Yossi Neiman
President
Cartis Solutions, Inc.
P) 630-259-8100
http://www.cartissolutions.com


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Sep 29, 2008 10:39 am    Post subject: [Freeswitch-users] storing csv file in mysql database Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services