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