Can i add some metadata .e.g campaign id or other things to my CDR with FS? One bad solution is to bank uuids and assign all of them to .e.g one campaign id and extract its own CDRs from big and untidy cdr file... any good idea?!
You can use an accountcode - set it in the channel and export it, and make sure to include it in your template for CDRs. mod_cdr_csv has an option for a separate file for each accountcode. -Avi Marcus BestFone On Tue, Mar 19, 2013 at 9:07 PM, Sayyed Mohammad Emami Razavi < emamirazavi@gmail.com> wrote:
Can i add some metadata .e.g campaign id or other things to my CDR with FS? One bad solution is to bank uuids and assign all of them to .e.g one campaign id and extract its own CDRs from big and untidy cdr file... any good idea?!
_________________________________________________________________________ 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
On 19/03/13 19:07, Sayyed Mohammad Emami Razavi wrote:
Can i add some metadata .e.g campaign id or other things to my CDR with FS? One bad solution is to bank uuids and assign all of them to .e.g one campaign id and extract its own CDRs from big and untidy cdr file... any good idea?!
Yes, you can do something like: <action application="export" data="custom_campaignid=543"/> in your dialplan and the data will be saved in the XML CDR (and in the ESL CDR) for you to extract when you process the CDRs. Regards,
If you just use mod_xml_cdr it logs all the channel vars to the CDR, then you can process the CDRs 1 file at a time in near real time toss it into a database with the fields you want, then slice and dice the data any way you want it On 3/19/13 1:07 PM, "Sayyed Mohammad Emami Razavi" <emamirazavi@gmail.com> wrote:
Can i add some metadata .e.g campaign id or other things to my CDR with FS? One bad solution is to bank uuids and assign all of them to .e.g one campaign id and extract its own CDRs from big and untidy cdr file... any good idea?!
_________________________________________________________________________ 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
participants (4)
-
Avi Marcus
-
Ken Rice
-
Paul Cupis
-
Sayyed Mohammad Emami Razavi