<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Looks nice, was also my first idea, but field dst is read only. I can't overwrite this and get an error like this</div><div><br></div><div>ERROR[2474]: cdr.c:345 ast_cdr_setvar: Attempt to set the 'dst' read-only variable!.</div><div><br></div><br><div><div>Am 30.03.2012 um 22:00 schrieb Warren Selby:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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 "s" in the dst field.&nbsp; <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?&nbsp; 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>
--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>