<div class="gmail_quote">On Fri, Mar 30, 2012 at 2:21 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></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 => _X.,1,Answer<br>
Exten => _X.,n,Goto(foo,s,1)<br>
[foo[<br>
Exten => s,1,playback(vm-goodbye)<br>
Exten => 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 "s" in the dst field. <br><br>To the OP: have you tried setting a channel variable to "${EXTEN} before your Goto() command, and then in the "h" exten write it back into the cdr? Something like:<br>
<br>[incoming]<br>exten => _X.,1,Verbose(New call coming in - verify routing)<br>exten => _X.,n,Set(finaldst=${EXTEN})<br>exten => _X.,n,Goto(mainmenu,s,1)<br><br>exten => h,1,Verbose(Hanging up)<br>exten => 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>