[Mod CDR CSV] Adding Timestamp into the CDR
Hi Guys, I would like to write a field into the CSV with the timestamp of the CDR so I can know the writetime. The timestamp should be in this format "2014-12-22 10:32". Is this possible? I digged the wiki but I didn't found any clue regarding this. Thank you Max
${end_stamp} of the call should be pretty close to the write time unless you are holding the call open for some reason. ${strftime()} should give you what you need. Thank You, Matthew Williams IKN Network Operations On Mon, Dec 22, 2014 at 3:41 AM, Massimo Varriale <mvar78@gmail.com> wrote:
Hi Guys, I would like to write a field into the CSV with the timestamp of the CDR so I can know the writetime. The timestamp should be in this format "2014-12-22 10:32". Is this possible? I digged the wiki but I didn't found any clue regarding this.
Thank you Max
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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 Matt! Thank you so much for your solution! I will work on strftime because it's really more similar to the write time of the CDR, and also I already have the field end_stamp. Thank you again and as Christmas is approaching....Merry Christmas to you (and to the User List too!) Cheers Max Il giorno 23/dic/2014, alle ore 21:06, Matt Williams ha scritto:
${end_stamp} of the call should be pretty close to the write time unless you are holding the call open for some reason. ${strftime()} should give you what you need.
Thank You, Matthew Williams IKN Network Operations
On Mon, Dec 22, 2014 at 3:41 AM, Massimo Varriale <mvar78@gmail.com> wrote: Hi Guys, I would like to write a field into the CSV with the timestamp of the CDR so I can know the writetime. The timestamp should be in this format "2014-12-22 10:32". Is this possible? I digged the wiki but I didn't found any clue regarding this.
Thank you Max
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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 (2)
-
Massimo Varriale
-
Matt Williams