Found something now! i need first to set the CDR and after make the Dial<br><br>Like this.<br><br>[default]<br>exten=&gt; _X.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>exten=&gt; _X.,2,Dial(SIP/${EXTEN})<br><br>Like this, this would work!!<br>
<br>Now i have a question, if i do not use EXTEN and add an entry for each number like this<br><br>[default]<br>exten=&gt; _600.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>exten=&gt; _600.,2,Dial(SIP/600)<br>exten=&gt; _700.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
exten=&gt; _700.,2,Dial(SIP/700)<br>exten=&gt; _800.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>exten=&gt; _800.,2,Dial(SIP/800)<br><br>I would have to do like this or thre is an easier way to set the CDR for all my calls ?<br>
<br><br><br clear="all">[]&#39;sf.rique <br>
<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 10:47 AM, Henrique Fernandes <span dir="ltr">&lt;<a href="mailto:sf.rique@gmail.com">sf.rique@gmail.com</a>&gt;</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;">
I got something with this line.<br><br>exten=&gt; _X.,2,set(CDR(teste)=${CHANNEL(useragent)})<br><br>But only wen the first cal fail! <br><br>I wil setuo asterisk to show the log in the console.<br><br><br clear="all">[]&#39;sf.rique <br>
<div><div></div><div class="h5">

<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 6:17 AM, Tilghman Lesher <span dir="ltr">&lt;<a href="mailto:tilghman@meg.abyt.es" target="_blank">tilghman@meg.abyt.es</a>&gt;</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>On Wednesday 30 March 2011 14:34:29 Henrique Fernandes wrote:<br>
&gt; exten =&gt; s,1,set(CDR(teste)=${CHANNEL(audioreadformat)})<br>
&gt;<br>
&gt; And is not working, i thought the only diference it i would need the<br>
&gt; colum teste in my cdr table right ?<br>
<br>
</div>Correct.  Did you restart Asterisk after modifying the table?  If you set<br>
core debug to 2 (core set debug 2 cdr_mysql), does it spit out any messages<br>
regarding the MySQL CDR driver?  (Note that you&#39;ll need to have debug lines<br>
going to the console in logger.conf for this to work.)<br>
<br>
--<br>
Tilghman<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>