Sorry, just use to click on the same botton.<br><br>Thanks, i guess i would figure out something now!!<br><br>Thanks a lot!<br><br clear="all">[]'sf.rique <br>
<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 3:37 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@meg.abyt.es">tilghman@meg.abyt.es</a>></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;">
Do NOT copy me on replies. I do NOT need two copies of your message.<br>
<div class="im"><br>
On Thursday 31 March 2011 12:08:53 Henrique Fernandes wrote:<br>
> Found something now! i need first to set the CDR and after make the Dial<br>
><br>
> Like this.<br>
><br>
> [default]<br>
> exten=> _X.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
> exten=> _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<br>
> number like this<br>
><br>
> [default]<br>
> exten=> _600.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
> exten=> _600.,2,Dial(SIP/600)<br>
> exten=> _700.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
> exten=> _700.,2,Dial(SIP/700)<br>
> exten=> _800.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
> exten=> _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<br>
> all my calls ?<br>
<br>
</div><div class="im">Simple pattern matching:<br>
<br>
exten => _[678]00.,1,set(CDR(teste)=....)<br>
exten => _600.,2,Dial(...)<br>
exten => _700.,2,Dial(...)<br>
exten => _800.,2,Dial(...)<br>
<br>
Or, better:<br>
exten => _[678]00.,1,set(CDR(teste)=....)<br>
exten => _[678]00.,n,Dial(SIP/${EXTEN:0:3})<br>
<br>
--<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>