[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-users
Subject:    Re: [asterisk-users] CDR Mysql adaptive Colum
From:       Henrique Fernandes <sf.rique () gmail ! com>
Date:       2011-03-31 21:38:34
Message-ID: AANLkTi=fH_CcrRozLVH=TeCfHLoe8gs9YcvsAxNHx5Ou () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Sorry, just use to click on the same botton.

Thanks, i guess i would figure out something now!!

Thanks a lot!

[]'sf.rique


On Thu, Mar 31, 2011 at 3:37 PM, Tilghman Lesher <tilghman@meg.abyt.es>wrote:

> Do NOT copy me on replies.  I do NOT need two copies of your message.
>
> On Thursday 31 March 2011 12:08:53 Henrique Fernandes wrote:
> > Found something now! i need first to set the CDR and after make the Dial
> >
> > Like this.
> >
> > [default]
> > exten=> _X.,1,set(CDR(teste)=${CHANNEL(useragent)})
> > exten=> _X.,2,Dial(SIP/${EXTEN})
> >
> > Like this, this would work!!
> >
> > Now i have a question, if i do not use EXTEN and add an entry for each
> > number like this
> >
> > [default]
> > exten=> _600.,1,set(CDR(teste)=${CHANNEL(useragent)})
> > exten=> _600.,2,Dial(SIP/600)
> > exten=> _700.,1,set(CDR(teste)=${CHANNEL(useragent)})
> > exten=> _700.,2,Dial(SIP/700)
> > exten=> _800.,1,set(CDR(teste)=${CHANNEL(useragent)})
> > exten=> _800.,2,Dial(SIP/800)
> >
> > I would have to do like this or thre is an easier way to set the CDR for
> > all my calls ?
>
> Simple pattern matching:
>
> exten => _[678]00.,1,set(CDR(teste)=....)
> exten => _600.,2,Dial(...)
> exten => _700.,2,Dial(...)
> exten => _800.,2,Dial(...)
>
> Or, better:
> exten => _[678]00.,1,set(CDR(teste)=....)
> exten => _[678]00.,n,Dial(SIP/${EXTEN:0:3})
>
> --
> Tilghman
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

[Attachment #5 (text/html)]

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">[]&#39;sf.rique <br> \
<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 3:37 PM, Tilghman Lesher \
<span dir="ltr">&lt;<a \
href="mailto:tilghman@meg.abyt.es">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;"> 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>
&gt; Found something now! i need first to set the CDR and after make the Dial<br>
&gt;<br>
&gt; Like this.<br>
&gt;<br>
&gt; [default]<br>
&gt; exten=&gt; _X.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
&gt; exten=&gt; _X.,2,Dial(SIP/${EXTEN})<br>
&gt;<br>
&gt; Like this, this would work!!<br>
&gt;<br>
&gt; Now i have a question, if i do not use EXTEN and add an entry for each<br>
&gt; number like this<br>
&gt;<br>
&gt; [default]<br>
&gt; exten=&gt; _600.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
&gt; exten=&gt; _600.,2,Dial(SIP/600)<br>
&gt; exten=&gt; _700.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
&gt; exten=&gt; _700.,2,Dial(SIP/700)<br>
&gt; exten=&gt; _800.,1,set(CDR(teste)=${CHANNEL(useragent)})<br>
&gt; exten=&gt; _800.,2,Dial(SIP/800)<br>
&gt;<br>
&gt; I would have to do like this or thre is an easier way to set the CDR for<br>
&gt; all my calls ?<br>
<br>
</div><div class="im">Simple pattern matching:<br>
<br>
exten =&gt; _[678]00.,1,set(CDR(teste)=....)<br>
exten =&gt; _600.,2,Dial(...)<br>
exten =&gt; _700.,2,Dial(...)<br>
exten =&gt; _800.,2,Dial(...)<br>
<br>
Or, better:<br>
exten =&gt; _[678]00.,1,set(CDR(teste)=....)<br>
exten =&gt; _[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>



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic