[asterisk-users] CDR Mysql adaptive Colum

Henrique Fernandes sf.rique at gmail.com
Thu Mar 31 16:38:34 CDT 2011


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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110331/3eb981a2/attachment.htm>


More information about the asterisk-users mailing list