<div class="gmail_quote">On Fri, Mar 30, 2012 at 4:51 PM, Daniel Knoll <span dir="ltr">&lt;<a href="mailto:daniel@danielknoll.de">daniel@danielknoll.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Looks nice, was also my first idea, but field dst is read only. I can&#39;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 &#39;dst&#39; read-only variable!.</div>
<div><br></div><br></div></blockquote></div><br>I was afraid of that.  Does it absolutely have to be dst that you store this information in?  You can create custom cdr fields that are both readable and writeable.  Something like: <br>
<br>[incoming]<br>exten =&gt; _X.,1,Verbose(New call coming in)<br>exten =&gt; _X.,n,Set(CDR(original_dst)=${EXTEN})<br>exten =&gt; _X.,n,Goto(mainmenu,s,1)<br><br><br><br><br><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br>
<a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br><br>