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"><<a href="mailto:larclap@yahoo.com">larclap@yahoo.com</a>></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: "Times New Roman","serif";">I have
defined the following template in autoload_config/cdr_csv.conf.xml:</span></p>
<p><span style="font-family: "Times New Roman","serif";"> </span></p>
<p style=""><span style="background: teal none repeat scroll 0% 0%; font-size: 10pt; font-family: "Lucida Console"; color: rgb(0, 187, 187); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><</span><span style="font-size: 10pt; font-family: "Lucida Console"; color: rgb(0, 187, 187);">template </span><span style="font-size: 10pt; font-family: "Lucida Console"; color: rgb(0, 187, 0);">name</span><span style="font-size: 10pt; font-family: "Lucida Console";">=<span style="color: rgb(187, 0, 0);">"sql"</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;">></span>"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}",</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Lucida Console";">"${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}",</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Lucida Console";">"${channel_name}","${bridge_channel}","${direction}"<span style="color: rgb(0, 187, 187);"></template></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: "Lucida Console"; color: rgb(85, 85, 85);"> </span></p>
<p><span style="font-size: 10pt; font-family: "Lucida Console"; color: rgb(85, 85, 85);"> </span></p>
<p><span style="font-family: "Times New Roman","serif";">The
resultant Master.csv in logs/1000.csv:</span></p>
<p><span style="font-family: "Times New Roman","serif";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Lucida Console";">"+19495551212","+19495551212","1000","default","2009-06-18
09:59:59","2009-06-18 10:00:06","2009-06-18
10:01:16","77","70","NORMAL_CLEARING","7551138e-5c29-11de-80e6-1b59605a543b","75574754-5c29-11de-80e6-1b59605a543b","","PCMU","PCMU","sofia/external/+<a href="mailto:19495551212@66.53.188.187" target="_blank">19495551212@66.53.188.187</a>","sofia/internal/<a href="mailto:sip%3A1001@192.168.10.101" target="_blank">sip:1001@192.168.10.101</a>",""</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Lucida Console";"> </span></p>
<p><span style="font-family: "Times New Roman","serif";">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: "Times New Roman","serif";"> </span></p>
<p><span style="font-family: "Times New Roman","serif";">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>