Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Call accounting - CDR's

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nik.middleton at noble...
Guest





PostPosted: Fri Feb 06, 2009 11:11 am    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Hi Guys

I’m looking for some pointers on how to collect CDR’s and store in mysql. Is there anything built in yet?

I can rate the calls as a batch process, I simply need the call data.

Regards
Back to top
sicfslist at gmail.com
Guest





PostPosted: Fri Feb 06, 2009 11:35 am    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Nik,

There are a bunch of ways to do this ... mod_xml_cdr posts to a url then you can parse and dump ... or you can use mod_cdr_csv which allows you to dictate exactly what you want to collect and then parse the file and dump into mysql.

There are also a couple of examples here --> http://wiki.freeswitch.org/wiki/Mod_cdr for hacking up the cdr_csv.conf and making it do what you want.

SDR
Back to top
freeswitch-users at li...
Guest





PostPosted: Fri Feb 06, 2009 11:37 am    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Use the script in scripts/contrib/wasim/ as a starting point.

Basically, you log to csv files, and then the script periodically picks
them up and loads to your DB. This is using mysql as an example, but
you can do the same with postgres as well.

If you need realtime inserts, then use mod_cdr_xml and have those post
to a script on a webserver that parses the xml and inserts into
appropriate tables. This is what I use along with a rails app.

Remember that if you do real time, you also need to periodically scrape
the error directory and load those (mod_cdr_xml will save to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM, Nik Middleton wrote:
Quote:
Hi Guys



I’m looking for some pointers on how to collect CDR’s and store in
mysql. Is there anything built in yet?



I can rate the calls as a batch process, I simply need the call data.



Regards



_______________________________________________
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
nik.middleton at noble...
Guest





PostPosted: Fri Feb 06, 2009 12:02 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Thanks,

I was confused because I saw that mod cdr had been dropped. Due
anticipated call volumes, batch processing is ideal, it keeps any MySql
load issues away from FS

Regards,

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker (lists)
Sent: 06 February 2009 16:27
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting point.

Basically, you log to csv files, and then the script periodically picks
them up and loads to your DB. This is using mysql as an example, but
you can do the same with postgres as well.

If you need realtime inserts, then use mod_cdr_xml and have those post
to a script on a webserver that parses the xml and inserts into
appropriate tables. This is what I use along with a rails app.

Remember that if you do real time, you also need to periodically scrape
the error directory and load those (mod_cdr_xml will save to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM, Nik Middleton wrote:
Quote:
Hi Guys



I'm looking for some pointers on how to collect CDR's and store in
mysql. Is there anything built in yet?



I can rate the calls as a batch process, I simply need the call data.



Regards



_______________________________________________
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

_______________________________________________
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
ajlong at worldlink.net
Guest





PostPosted: Fri Feb 06, 2009 12:35 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a communication failure how
does this effect load on the system or the call for that matter...
it wouldn’t hold up the progress or delay the turn up of the call or anything would it?

I understand it would write to the error directory (but my thoughts are what is the impact of
this beyond the obvious IO hit)

I guess a good question is what is more load intensive???

1.) mod_cdr_csv (with batch script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on remote host inserting into DB)

I'm thinking about this for a system that would be handling in excess of 200-300 call setups
per second.

-Adam

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting point.

Basically, you log to csv files, and then the script periodically picks
them up and loads to your DB. This is using mysql as an example, but
you can do the same with postgres as well.

If you need realtime inserts, then use mod_cdr_xml and have those post
to a script on a webserver that parses the xml and inserts into
appropriate tables. This is what I use along with a rails app.

Remember that if you do real time, you also need to periodically scrape
the error directory and load those (mod_cdr_xml will save to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM, Nik Middleton wrote:
Quote:
Hi Guys



I’m looking for some pointers on how to collect CDR’s and store in
mysql. Is there anything built in yet?



I can rate the calls as a batch process, I simply need the call data.



Regards



_______________________________________________
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


_______________________________________________
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
krice at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 12:41 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Mod_xml_cdr will drop a file to the file system on failure to post. You can
also leverage this drop a file to the file system and run a CDR processor
locally.

We handle call rates in the 500+ range using the local file system as a
caching mechanism and a simple PHP script to rate the CDRs and load them
into a pgsql db.




Quote:
From: Adam Long <ajlong@worldlink.net>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Fri, 6 Feb 2009 12:30:34 -0500
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a communication
failure how
does this effect load on the system or the call for that
Quote:
matter...
it wouldn¹t hold up the progress or delay the turn up of the call or
Quote:
anything would it?

I understand it would write to the error directory (but my
Quote:
thoughts are what is the impact of
this beyond the obvious IO hit)

I guess a
Quote:
good question is what is more load intensive???

1.) mod_cdr_csv (with batch
Quote:
script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on
Quote:
remote host inserting into DB)

I'm thinking about this for a system that
Quote:
would be handling in excess of 200-300 call setups
per
Quote:
second.

-Adam

-----Original Message-----
From:
Quote:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM
To:
Quote:
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call
Quote:
accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting
Quote:
point.

Basically, you log to csv files, and then the script periodically
Quote:
picks
them up and loads to your DB. This is using mysql as an example,
Quote:
but
you can do the same with postgres as well.

If you need realtime inserts,
Quote:
then use mod_cdr_xml and have those post
to a script on a webserver that
Quote:
parses the xml and inserts into
appropriate tables. This is what I use along
Quote:
with a rails app.

Remember that if you do real time, you also need to
Quote:
periodically scrape
the error directory and load those (mod_cdr_xml will save
Quote:
to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM,
Quote:
Nik Middleton wrote:
Hi Guys



I¹m looking for some pointers on
how to collect CDR¹s and store in
mysql. Is there anything built in yet?




I can rate the calls as a batch process, I simply need the call
data.



Regards




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


____________________________
Quote:
___________________
Freeswitch-users mailing
Quote:
list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman
Quote:
/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opt
Quote:
ions/freeswitch-users
http://www.freeswitch.org




_______________________________________________
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
darren at aleph-com.net
Guest





PostPosted: Fri Feb 06, 2009 3:31 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Nik Middleton wrote:
Quote:

Hi Guys

I’m looking for some pointers on how to collect CDR’s and store in
mysql. Is there anything built in yet?

I can rate the calls as a batch process, I simply need the call data.

Regards

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

_______________________________________________
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

I use mod_cdr_csv and then run a process every minute to import them
into the mysql database. It seems to work well.

--
Darren Wiebe
darren@aleph-com.net

Aleph Communications
www.aleph-com.net


_______________________________________________
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
nik.middleton at noble...
Guest





PostPosted: Fri Feb 06, 2009 3:42 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

What about using a radius server, would that be more resilient?

Regards


-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Adam
Long
Sent: 06 February 2009 17:31
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a
communication failure how
does this effect load on the system or the call for that matter...
it wouldn't hold up the progress or delay the turn up of the call or
anything would it?

I understand it would write to the error directory (but my thoughts are
what is the impact of
this beyond the obvious IO hit)

I guess a good question is what is more load intensive???

1.) mod_cdr_csv (with batch script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on remote host inserting into DB)

I'm thinking about this for a system that would be handling in excess of
200-300 call setups
per second.

-Adam

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting point.

Basically, you log to csv files, and then the script periodically picks
them up and loads to your DB. This is using mysql as an example, but
you can do the same with postgres as well.

If you need realtime inserts, then use mod_cdr_xml and have those post
to a script on a webserver that parses the xml and inserts into
appropriate tables. This is what I use along with a rails app.

Remember that if you do real time, you also need to periodically scrape
the error directory and load those (mod_cdr_xml will save to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM, Nik Middleton wrote:
Quote:
Hi Guys



I'm looking for some pointers on how to collect CDR's and store in
mysql. Is there anything built in yet?



I can rate the calls as a batch process, I simply need the call data.



Regards



_______________________________________________
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


_______________________________________________
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

_______________________________________________
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
nik.middleton at noble...
Guest





PostPosted: Fri Feb 06, 2009 4:14 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

So you're simply posting this file to a web server? How do you find the load on it at this rate of calls?

BTW can anyone point me to resources discussing how to do this? (Using a web server to post data to a db) I've not this sort of thing before, and I'm not too sure what I should be goggling for


Regards,


-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice
Sent: 06 February 2009 17:40
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Mod_xml_cdr will drop a file to the file system on failure to post. You can
also leverage this drop a file to the file system and run a CDR processor
locally.

We handle call rates in the 500+ range using the local file system as a
caching mechanism and a simple PHP script to rate the CDRs and load them
into a pgsql db.




Quote:
From: Adam Long <ajlong@worldlink.net>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Fri, 6 Feb 2009 12:30:34 -0500
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a communication
failure how
does this effect load on the system or the call for that
Quote:
matter...
it wouldn¹t hold up the progress or delay the turn up of the call or
Quote:
anything would it?

I understand it would write to the error directory (but my
Quote:
thoughts are what is the impact of
this beyond the obvious IO hit)

I guess a
Quote:
good question is what is more load intensive???

1.) mod_cdr_csv (with batch
Quote:
script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on
Quote:
remote host inserting into DB)

I'm thinking about this for a system that
Quote:
would be handling in excess of 200-300 call setups
per
Quote:
second.

-Adam

-----Original Message-----
From:
Quote:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM
To:
Quote:
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call
Quote:
accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting
Quote:
point.

Basically, you log to csv files, and then the script periodically
Quote:
picks
them up and loads to your DB. This is using mysql as an example,
Quote:
but
you can do the same with postgres as well.

If you need realtime inserts,
Quote:
then use mod_cdr_xml and have those post
to a script on a webserver that
Quote:
parses the xml and inserts into
appropriate tables. This is what I use along
Quote:
with a rails app.

Remember that if you do real time, you also need to
Quote:
periodically scrape
the error directory and load those (mod_cdr_xml will save
Quote:
to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM,
Quote:
Nik Middleton wrote:
Hi Guys



I¹m looking for some pointers on
how to collect CDR¹s and store in
mysql. Is there anything built in yet?




I can rate the calls as a batch process, I simply need the call
data.



Regards




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


____________________________
Quote:
___________________
Freeswitch-users mailing
Quote:
list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman
Quote:
/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opt
Quote:
ions/freeswitch-users
http://www.freeswitch.org




_______________________________________________
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

_______________________________________________
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
krice at suspicious.org
Guest





PostPosted: Fri Feb 06, 2009 4:20 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

This is built into mod_xml_cdr and should be covered on its wiki page...

I personally don't post the records to a web server as I think that's too
much over head at this load... I use a script to scrape the directory and
process the CDRs...

This gives me the FileSystem as a buffer, and allows me to get a ton of info
out of the xml cdrs like custom channel variables etc

K

Quote:
From: Nik Middleton <nik.middleton@noblesolutions.co.uk>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Fri, 6 Feb 2009 21:07:12 -0000
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Call accounting - CDR's

So you're simply posting this file to a web server? How do you find the load
on it at this rate of calls?

BTW can anyone point me to resources discussing how to do this? (Using a web
server to post data to a db) I've not this sort of thing before, and I'm not
too sure what I should be goggling for


Regards,


-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice
Sent: 06 February 2009 17:40
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Mod_xml_cdr will drop a file to the file system on failure to post. You can
also leverage this drop a file to the file system and run a CDR processor
locally.

We handle call rates in the 500+ range using the local file system as a
caching mechanism and a simple PHP script to rate the CDRs and load them
into a pgsql db.




Quote:
From: Adam Long <ajlong@worldlink.net>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Fri, 6 Feb 2009 12:30:34 -0500
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a communication
failure how
does this effect load on the system or the call for that
Quote:
matter...
it wouldn¹t hold up the progress or delay the turn up of the call or
Quote:
anything would it?

I understand it would write to the error directory (but my
Quote:
thoughts are what is the impact of
this beyond the obvious IO hit)

I guess a
Quote:
good question is what is more load intensive???

1.) mod_cdr_csv (with batch
Quote:
script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on
Quote:
remote host inserting into DB)

I'm thinking about this for a system that
Quote:
would be handling in excess of 200-300 call setups
per
Quote:
second.

-Adam

-----Original Message-----
From:
Quote:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM
To:
Quote:
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call
Quote:
accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting
Quote:
point.

Basically, you log to csv files, and then the script periodically
Quote:
picks
them up and loads to your DB. This is using mysql as an example,
Quote:
but
you can do the same with postgres as well.

If you need realtime inserts,
Quote:
then use mod_cdr_xml and have those post
to a script on a webserver that
Quote:
parses the xml and inserts into
appropriate tables. This is what I use along
Quote:
with a rails app.

Remember that if you do real time, you also need to
Quote:
periodically scrape
the error directory and load those (mod_cdr_xml will save
Quote:
to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM,
Quote:
Nik Middleton wrote:
Hi Guys



I¹m looking for some pointers on
how to collect CDR¹s and store in
mysql. Is there anything built in yet?




I can rate the calls as a batch process, I simply need the call
data.



Regards




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


____________________________
Quote:
___________________
Freeswitch-users mailing
Quote:
list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman
Quote:
/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opt
Quote:
ions/freeswitch-users
http://www.freeswitch.org




_______________________________________________
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

_______________________________________________
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



_______________________________________________
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
freeswitch-users at li...
Guest





PostPosted: Fri Feb 06, 2009 4:25 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

I'm doing this on low volume pbx setup, so posting to the web server is
fine with my load. If you are doing high load, then definitely write to
files and batch process them.

On 2/6/2009 3:07 PM, Nik Middleton wrote:
Quote:
So you're simply posting this file to a web server? How do you find
the load on it at this rate of calls?

BTW can anyone point me to resources discussing how to do this?
(Using a web server to post data to a db) I've not this sort of thing
before, and I'm not too sure what I should be goggling for


Regards,


-----Original Message----- From:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of
Ken Rice Sent: 06 February 2009 17:40 To:
freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users]
Call accounting - CDR's

Mod_xml_cdr will drop a file to the file system on failure to post.
You can also leverage this drop a file to the file system and run a
CDR processor locally.

We handle call rates in the 500+ range using the local file system as
a caching mechanism and a simple PHP script to rate the CDRs and load
them into a pgsql db.




Quote:
From: Adam Long <ajlong@worldlink.net> Reply-To:
<freeswitch-users@lists.freeswitch.org> Date: Fri, 6 Feb 2009
12:30:34 -0500 To: <freeswitch-users@lists.freeswitch.org> Subject:
Re: [Freeswitch-users] Call accounting - CDR's

Is mod_cdr_xml asynchronous ... by that I mean .. if there is a
communication failure how
does this effect load on the system or the call for that
Quote:
matter...
it wouldn¹t hold up the progress or delay the turn up of the call or
Quote:
anything would it?

I understand it would write to the error directory (but my
Quote:
thoughts are what is the impact of
this beyond the obvious IO hit)

I guess a
Quote:
good question is what is more load intensive???

1.) mod_cdr_csv (with batch
Quote:
script that loads into DB somewhere)
2.) mod_cdr_xml (posting to lighttpd on
Quote:
remote host inserting into DB)

I'm thinking about this for a system that
Quote:
would be handling in excess of 200-300 call setups
per
Quote:
second.

-Adam

-----Original Message----- From:
Quote:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of
Rupa Schomaker (lists)
Sent: Friday, February 06, 2009 11:27 AM To:
Quote:
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Call
Quote:
accounting - CDR's

Use the script in scripts/contrib/wasim/ as a starting
Quote:
point.

Basically, you log to csv files, and then the script periodically
Quote:
picks
them up and loads to your DB. This is using mysql as an example,
Quote:
but
you can do the same with postgres as well.

If you need realtime inserts,
Quote:
then use mod_cdr_xml and have those post
to a script on a webserver that
Quote:
parses the xml and inserts into
appropriate tables. This is what I use along
Quote:
with a rails app.

Remember that if you do real time, you also need to
Quote:
periodically scrape
the error directory and load those (mod_cdr_xml will save
Quote:
to error if it
can't successfully post to your script).

On 2/6/2009 10:09 AM,
Quote:
Nik Middleton wrote: Hi Guys



I¹m looking for some pointers on how to collect CDR¹s and store in
mysql. Is there anything built in yet?




I can rate the calls as a batch process, I simply need the call
data.



Regards


_______________________________________________
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
sicfslist at gmail.com
Guest





PostPosted: Fri Feb 06, 2009 4:32 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Just out of curiosity ... You actually set the values in xml_cdr_conf.xml to an invalid value ... and then FS tries it and then dumps it into the err_dir?

Nik,

Just configure the xml_conf_cdr and it will post all of the channel variables to your web server ... you can look at the variables and see what you want.

Or I actually like Ken's suggestion ... that makes a lot of sense ... same benefit of having all of the channel variables ... no overhead.

SDR
Back to top
krice at freeswitch.org
Guest





PostPosted: Fri Feb 06, 2009 4:33 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Nope you comment out that line and it wont even attempt to post and will drop it into the log/xml_cdr directory


From: Shelby Ramsey <sicfslist@gmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Fri, 6 Feb 2009 15:30:13 -0600
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Call accounting - CDR's

Just out of curiosity ... You actually set the values in xml_cdr_conf.xml to an invalid value ... and then FS tries it and then dumps it into the err_dir?

Nik,

Just configure the xml_conf_cdr and it will post all of the channel variables to your web server ... you can look at the variables and see what you want.

Or I actually like Ken's suggestion ... that makes a lot of sense ... same benefit of having all of the channel variables ... no overhead.

SDR

_______________________________________________
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
sicfslist at gmail.com
Guest





PostPosted: Fri Feb 06, 2009 4:41 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Even better ... Thanks Ken!

SDR
Back to top
nik.middleton at noble...
Guest





PostPosted: Fri Feb 06, 2009 5:30 pm    Post subject: [Freeswitch-users] Call accounting - CDR's Reply with quote

Guy’s,

Thanks for all the responses; it’s truly refreshing to get so much valuable input. I’m reading the docs furiously, but I still don’t know what I don’t know yet. But given time I will return the favor to those that come later.

Regards
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
Goto page 1, 2  Next
Page 1 of 2

 
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