[Freeswitch-users] CDR

Steven Ayre steveayre at gmail.com
Fri Apr 5 13:22:04 MSD 2013


The simple answer is from from dialplan you don't. Not all calls might hit
dialplan, and if the caller hangs up it might not reach the end of the
dialplan. CDRs generated from the dialplan would not be reliable. There is
a specific reporting call stage that exists specifically for CDRs.

mod_cdr_csv (as with the other CDR modules) install a hook into the
reporting stage and automatically record a CDR if loaded. You don't need to
call anything from the dialplan.

If you want to set information in the CDR from your dialplan, set a
variable on the channel (set application) and then add that variable to the
list of fields logged by mod_cdr_csv.

-Steve


On 5 April 2013 09:09, Khue Nguyen Minh <khuenm at vega.com.vn> wrote:

> I see that in this link is guide about all parameters can export to cdr
> file. But, I don't see how I can create cdr file from dialplan xml.
> example, I have a javascript, from dialplan I can execute it: <action
> application="javascript" data="hello.js"/>.
> If I write <action application="cdr_csv" data="/tmp/cdr.csv"/>
> from fs_cli I receive error: Invalid Application cdr_csv
>
>
> 2013/4/5 Ashish gautam <ashish at nms.co.in>
>
>> Hello,
>>
>> I think here you will find the information that will solve your problem:
>>
>> http://wiki.freeswitch.org/wiki/Mod_cdr_csv#Default_configuration
>>
>> - Ashish
>>
>> On Fri, Apr 5, 2013 at 12:54 PM, Khue Nguyen Minh <khuenm at vega.com.vn>wrote:
>>
>>> Hi all,
>>>
>>> I want create cdr (filetype: csv) file in freeswitch. But, I don't known
>>> how I can do it from xml dialplan. Please guide me.
>>>
>>> Thanks & Best regards,
>>> Khue.
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130405/e2cd4b3d/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list