[Freeswitch-users] Most appropriate mapping between Asterisk CDR and XML CDR
Frank Church
vfclists at googlemail.com
Wed Apr 14 17:32:36 PDT 2010
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.
The xml cdr is quite large and some of the values are repeated in the
different sections.
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.
The example displays t a call from extension 1001 to an external number
08451234567
calldate <start_stamp>2010-04-14%2023%3A08%3A10</start_stamp> or
<start_epoch>1271282890</start_epoch> or
<created_time>1271282890796875</created_time>
clid <caller_id_name>Booth1</caller_id_name> +
<caller_id_number>1001</caller_id_number>
src <ani>1001</ani> or <username>1001</username>
dst <destination_number>08451234567</destination_number>
dcontext <context>default</context>
channel
<bridge_channel>sofia/internal/1001%40192.168.1.133</bridge_channel>
or<chan_name>sofia/internal/1001 at 192.168.1.133</chan_name>
dstchannel <chan_name>sofia/external/08451234567</chan_name>
lastapp <application app_name="bridge" app_data="sofia/gateway/
provider.co.uk/08451234567"></application>
lastdata <chan_name>sofia/external/08451234567</chan_name>
duration <duration>46</duration>
billsec <billsec>18</billsec>
disposition <endpoint_disposition>ANSWER</endpoint_disposition>?
amaflags bigint,
accountcode - <accountcode>1001</accountcode>
uniqueid character uuid=ce234b00-157a-456f-97be-62d15a53b0c9
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.
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100415/f4ae1258/attachment.html
More information about the FreeSWITCH-users
mailing list