<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Their already exists a default on cdr.conf.xml that shows you the exact ones that map as close as possible.<div><br></div><div><template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"</template></div><div><br></div><div><br></div><div>Its already in cdr_csv.conf.xml</div><div><br></div><div>/b</div><div><br><div><div>On Apr 14, 2010, at 7:32 PM, Frank Church wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I am trying to work out the most appropriate mapping between the Asterisk CDR and Freeswitch xml_cdr as an app of mine is based on the Asterisk CDR.<br><br>The xml cdr is quite large and some of the values are repeated in the different sections.<br>
This is the nearest I have come to, I have omitted the full paths to the values, but would like to use the right paths if they are the most meaningful.<br><br>The example displays t a call from extension 1001 to an external number 08451234567<br>
<br><br> calldate <start_stamp>2010-04-14%2023%3A08%3A10</start_stamp> or <start_epoch>1271282890</start_epoch> or <created_time>1271282890796875</created_time><br> clid <caller_id_name>Booth1</caller_id_name> + <caller_id_number>1001</caller_id_number><br>
src <ani>1001</ani> or <username>1001</username><br> dst <destination_number>08451234567</destination_number><br> dcontext <context>default</context><br> channel <bridge_channel>sofia/internal/1001%40192.168.1.133</bridge_channel> or<chan_name>sofia/internal/<a href="mailto:1001@192.168.1.133">1001@192.168.1.133</a></chan_name> <br>
dstchannel <chan_name>sofia/external/08451234567</chan_name><br> lastapp <application app_name="bridge" app_data="sofia/gateway/<a href="http://provider.co.uk/08451234567">provider.co.uk/08451234567</a>"></application><br>
lastdata <chan_name>sofia/external/08451234567</chan_name><br> duration <duration>46</duration><br> billsec <billsec>18</billsec><br> disposition <endpoint_disposition>ANSWER</endpoint_disposition>?<br>
amaflags bigint,<br> accountcode - <accountcode>1001</accountcode><br> uniqueid character uuid=ce234b00-157a-456f-97be-62d15a53b0c9<br> <br>Is there some guide to which values are more appropriate? I checked the templates for cdr_csv but the look rather simple to me, being as ever a sucker for complexity.<br>
<br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com/">http://devblog.brahmancreations.com</a><br>
_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>