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@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@nms.co.in>
Hello,

I think here you will find the information that will solve your problem:


- Ashish

On Fri, Apr 5, 2013 at 12:54 PM, Khue Nguyen Minh <khuenm@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@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