hi all , Please help me for creating CDR in Free-switch SIP Server, i don't want to use XML-CDR or any other build in Module . any idea , thanks for sharing with me your experience . -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
Write one in C by making a new module and registering a global state handler and catching the on_reporting state for every channel, then pull the data off the session and do whatever you want. On Thu, Jun 20, 2013 at 12:40 AM, Abdullah <abdullah@smonte.com> wrote:
hi all ,
Please help me for creating CDR in Free-switch SIP Server, i don't want to use XML-CDR or any other build in Module .
any idea ,
thanks for sharing with me your experience .
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
thanks Anthony Minessale, can you give example ?? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hi Abdullah You can start by using the skeleton of the mod cdr csv What exactly are you trying to achieve ? is it the formatting ? or is it the rollout frequency ? On Thu, Jun 20, 2013 at 12:03 PM, Abdullah <abdullah@smonte.com> wrote:
thanks Anthony Minessale,
can you give example ??
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Ashwin Kumar Rath
Hi Abdullah,
From my personal experience, XML CDR is the ultimate format you can ask for.
Understanding XML files does need some work in the start, but the way it stores the call flow is priceless, and helps address many scenarios. Perhaps you can be more specific as to why you don't want to use XML CDR? Regards HASSAN On Jun 20, 2013 12:57 PM, "Ashwin Rath" <ashwinrath@gmail.com> wrote:
Hi Abdullah
You can start by using the skeleton of the mod cdr csv
What exactly are you trying to achieve ? is it the formatting ? or is it the rollout frequency ?
On Thu, Jun 20, 2013 at 12:03 PM, Abdullah <abdullah@smonte.com> wrote:
thanks Anthony Minessale,
can you give example ??
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Ashwin Kumar Rath
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
hi , basically i want to store data of Call on A-Leg, like following Field , caller-id ,context ,channel ,trunk information , duration , status (answer,hangup etc) ,Extension append with any international code if call come from USA DID number to my FS like 444XXXXX. i want to store caller_id with 1444xxxxx . ANY IDEA ?? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
The requirement looks pretty basic. I would personally do as follows: 1. Choose XML CDR 2. Write a script (my choice would be in PHP) that would: a) get list of files in XML CDR folder b) parse each of the XML files to extract the fields you mentioned c) add 1444 in front of caller-id d) write to database e) move the XML file to a backup folder Regards HASSAN On Jun 20, 2013 1:32 PM, "Abdullah" <abdullah@smonte.com> wrote:
hi ,
basically i want to store data of Call on A-Leg, like following Field , caller-id ,context ,channel ,trunk information , duration , status (answer,hangup etc) ,Extension append with any international code if call come from USA DID number to my FS like 444XXXXX. i want to store caller_id with 1444xxxxx .
ANY IDEA ??
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
We have lots of ideas. However, most of this information is readily available on the wiki or in the FreeSWITCH books. Please give those a try. If you run into an issue then you can ask a specific question. If you want someone to just do it for you, that's always available for a price: email consulting@FreeSWITCH.org for a quote or post to the biz list. -Avi On Jun 20, 2013 10:27 AM, "Abdullah" <abdullah@smonte.com> wrote:
hi ,
basically i want to store data of Call on A-Leg, like following Field , caller-id ,context ,channel ,trunk information , duration , status (answer,hangup etc) ,Extension append with any international code if call come from USA DID number to my FS like 444XXXXX. i want to store caller_id with 1444xxxxx .
ANY IDEA ??
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Are you sure you don't just want a CSV file with the information about the call? http://wiki.freeswitch.org/wiki/Mod_cdr_csv And for examples of how to build CDR reporting modules, check the code for mod_cdr_csv and the other CDR modules. -Avi On Thu, Jun 20, 2013 at 8:40 AM, Abdullah <abdullah@smonte.com> wrote:
hi all ,
Please help me for creating CDR in Free-switch SIP Server, i don't want to use XML-CDR or any other build in Module .
any idea ,
thanks for sharing with me your experience .
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
HI ALL, I have used *"XML-CDR"* in free-switch . I have successfully created Cdr IN TABLE OF cdr with default pattern . I want to change that field name and data with append some digit on its caller_id . any Idea, THANKS -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
Which method of output in XML_CDR did you implement? There are two: 1. Writing to a file on disk and then parsing the file 2. Writing to HTTP / HTTPS via POST and handle the parsing on the web server side As in the earlier suggested solution from myself, I prefer #1. An added advantage of this is, I can see the content of the XML file in a simple text file reader, and modify my parsing script accordingly. Usually the "sip_from_user" variable carries the "caller id". If that is true for your case, then in PHP it would be something like (assuming $sip_from_user is initiated with the corresponding XML value): $sip_from_user = "1444" . $sip_from_user; Regards HASSAN On Thu, Jun 20, 2013 at 8:20 PM, Abdullah <abdullah@smonte.com> wrote:
HI ALL,
I have used *"XML-CDR"* in free-switch .
I have successfully created Cdr IN TABLE OF cdr with default pattern .
I want to change that field name and data with append some digit on its caller_id .
any Idea,
THANKS
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
THANKS HASSAN, i have write my own Perl script for CDR purpose . so tell me how i can call this script on call hangup of free-switch . i asterisk we can call that script on h extension . but in free-switch i am little bit confused ?? Thanks again . regards Abdullah -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
If you drop xml_cdr's to the file system, and have your script stat the filesystem every so often it can pick them up and process them, or you can have mod_xml_cdr post them automattically on hangup to a webservice to trigger the cdr processing On 6/21/13 12:59 AM, "Abdullah" <abdullah@smonte.com> wrote:
THANKS HASSAN,
i have write my own Perl script for CDR purpose . so tell me how i can call this script on call hangup of free-switch .
i asterisk we can call that script on h extension . but in free-switch i am little bit confused ??
Thanks again .
regards
Abdullah
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... -Switch-tp7591980p7592028.html Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
You're welcome Abdullah! I do not trigger my PHP script from within FreeSWITCH. I run it every minute from Linuxx cron through a bash wrapper. The wrapper serves an important purpose --- finding out if there is already an instance of the script running. This method does result in a delay (max 1 min) from the time the CDR file was created, to when it was posted in the DB. But, we accept this delay for our use case, as it provides other benefits related to reliability, load distribution, etc. Regards HASSAN On Fri, Jun 21, 2013 at 11:59 AM, Abdullah <abdullah@smonte.com> wrote:
THANKS HASSAN,
i have write my own Perl script for CDR purpose . so tell me how i can call this script on call hangup of free-switch .
i asterisk we can call that script on h extension . but in free-switch i am little bit confused ??
Thanks again .
regards
Abdullah
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
hi , thanks again ,, can you provide me the example . ?? regards. Abdullah -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
What I use is this: === start of file === #!/bin/sh FILETORUN="/data/fs/cdr.php" if ps -ef | grep -v grep | grep ${FILETORUN} ; then exit 0 fi /usr/bin/php ${FILETORUN} === end of file === Regards HASSAN On Fri, Jun 21, 2013 at 12:27 PM, Abdullah <abdullah@smonte.com> wrote:
hi ,
thanks again ,,
can you provide me the example . ??
regards.
Abdullah
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Lock files would be a better way of preventing multiple copies running. http://php.net/manual/en/function.flock.php On 21 June 2013 07:49, Nyamul Hassan <nyamul@gmail.com> wrote:
What I use is this:
=== start of file === #!/bin/sh FILETORUN="/data/fs/cdr.php" if ps -ef | grep -v grep | grep ${FILETORUN} ; then exit 0 fi /usr/bin/php ${FILETORUN} === end of file ===
Regards HASSAN
On Fri, Jun 21, 2013 at 12:27 PM, Abdullah <abdullah@smonte.com> wrote:
hi ,
thanks again ,,
can you provide me the example . ??
regards.
Abdullah
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Thanks Steve! Looks like a better option!! Regards HASSAN On Jun 21, 2013 1:53 PM, "Steven Ayre" <steveayre@gmail.com> wrote:
Lock files would be a better way of preventing multiple copies running.
http://php.net/manual/en/function.flock.php
On 21 June 2013 07:49, Nyamul Hassan <nyamul@gmail.com> wrote:
What I use is this:
=== start of file === #!/bin/sh FILETORUN="/data/fs/cdr.php" if ps -ef | grep -v grep | grep ${FILETORUN} ; then exit 0 fi /usr/bin/php ${FILETORUN} === end of file ===
Regards HASSAN
On Fri, Jun 21, 2013 at 12:27 PM, Abdullah <abdullah@smonte.com> wrote:
hi ,
thanks again ,,
can you provide me the example . ??
regards.
Abdullah
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-create-customize-CDR-in-fr... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
participants (8)
-
Abdullah
-
Anthony Minessale
-
Ashwin Rath
-
Avi Marcus
-
Ken Rice
-
Michael Jerris
-
Nyamul Hassan
-
Steven Ayre