I have set in my dialplan <action application="set" data="accountcode=custom"/>
in my dialplan fs set:
2012-03-07 13:47:11.179122 [NOTICE] switch_core_session.c:2365 Execute set(accountcode=custom) EXECUTE sofia/internal/018108500.fs_kabelvoip1@fs_kabelvoip1.fs1.softnet.si set(accountcode=custom)
In my cdr.conf.xml file:
<template name="custom">"","${caller_id_name}","${caller_id_number}","${destination_prvi}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}"</template>
Must I comment this: <param name="default-template" value="example"/>
Because for default template is stil executed?
Hmm, no, don't comment it out - if you want the "custom"-template to be used, set <param name="default-template" value="custom"/> The accountcode-variable on the other hand does not define which template is used, but it is a variable used in the cdr-files. In your "custom"-template it's the variable you defined between "${bleg_uuid}" and "${read_codec}" Regards, Christain