<div class="gmail_quote">On Fri, Mar 30, 2012 at 2:21 PM, Danny Nicholas <span dir="ltr">&lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So you have a situation like so:<br>
[default]<br>
Exten =&gt; _X.,1,Answer<br>
Exten =&gt; _X.,n,Goto(foo,s,1)<br>
[foo[<br>
Exten =&gt; s,1,playback(vm-goodbye)<br>
Exten =&gt; s,n,hangup()<br>
<br>
And you get two CDR records, 1 with default and 1 with foo?<br></blockquote></div><br>No, he should be getting 1 record with &quot;s&quot; in the dst field.  <br><br>To the OP: have you tried setting a channel variable to &quot;${EXTEN} before your Goto() command, and then in the &quot;h&quot; exten write it back into the cdr?  Something like:<br>
<br>[incoming]<br>exten =&gt; _X.,1,Verbose(New call coming in - verify routing)<br>exten =&gt; _X.,n,Set(finaldst=${EXTEN})<br>exten =&gt; _X.,n,Goto(mainmenu,s,1)<br><br>exten =&gt; h,1,Verbose(Hanging up)<br>exten =&gt; h,n,Set(CDR(dst)=${finaldst})<br clear="all">
<br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br><br>