Do you have any way to ensure that those variables are populated? Can you manually set those in the dialplan? Also, are you doing a leg only or b leg only or both?<br>-MC<br><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 2:54 PM, Lars Zeb <span dir="ltr">&lt;<a href="mailto:larclap@yahoo.com">larclap@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">I have
defined the following template in autoload_config/cdr_csv.conf.xml:</span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> </span></p>

<p style=""><span style="background: teal none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Lucida Console&quot;; color: rgb(0, 187, 187); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">&lt;</span><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;; color: rgb(0, 187, 187);">template </span><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;; color: rgb(0, 187, 0);">name</span><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;;">=<span style="color: rgb(187, 0, 0);">&quot;sql&quot;</span><span style="background: teal none repeat scroll 0% 0%; color: rgb(0, 187, 187); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">&gt;</span>&quot;${caller_id_name}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;;">&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${uuid}&quot;,&quot;${bleg_uuid}&quot;,&quot;${accountcode}&quot;,&quot;${read_codec}&quot;,&quot;${write_codec}&quot;,</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;;">&quot;${channel_name}&quot;,&quot;${bridge_channel}&quot;,&quot;${direction}&quot;<span style="color: rgb(0, 187, 187);">&lt;/template&gt;</span><span style="background: black none repeat scroll 0% 0%; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"></span></span></p>


<p><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;; color: rgb(85, 85, 85);"> </span></p>

<p><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;; color: rgb(85, 85, 85);"> </span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">The
resultant Master.csv in logs/1000.csv:</span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> </span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;;">&quot;+19495551212&quot;,&quot;+19495551212&quot;,&quot;1000&quot;,&quot;default&quot;,&quot;2009-06-18
09:59:59&quot;,&quot;2009-06-18 10:00:06&quot;,&quot;2009-06-18
10:01:16&quot;,&quot;77&quot;,&quot;70&quot;,&quot;NORMAL_CLEARING&quot;,&quot;7551138e-5c29-11de-80e6-1b59605a543b&quot;,&quot;75574754-5c29-11de-80e6-1b59605a543b&quot;,&quot;&quot;,&quot;PCMU&quot;,&quot;PCMU&quot;,&quot;sofia/external/+<a href="mailto:19495551212@66.53.188.187" target="_blank">19495551212@66.53.188.187</a>&quot;,&quot;sofia/internal/<a href="mailto:sip%3A1001@192.168.10.101" target="_blank">sip:1001@192.168.10.101</a>&quot;,&quot;&quot;</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Lucida Console&quot;;"> </span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Both
${direction} and ${accountcode} do not have any data in the cdr file. Am I
using the wrong variable names? I do see Caller-Direction with a valid value
([inbound]) in freeswitch.log, but nothing like accountcode. The wiki at <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx</a>
says that both these variables exist. </span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> </span></p>

<p><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Thanks
for any help, Lars</span></p>

</div>

</div>


<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>