Re: [asterisk-users] pattern matching "+"

2019-03-15 Thread Administrator TOOTAI
Le 15/03/2019 à 15:18, sean darcy a écrit : From my provider I get extensions of: +1<10digit number> 1<10 digit number> <10 digit number> seemingly randomly. What I'd like to do is exten=_!1234567890,1,Answer() which would match anything ending in 1234567890. But that doesn't work since !

Re: [asterisk-users] pattern matching "+"

2019-03-15 Thread Antony Stone
On Friday 15 March 2019 at 15:18:04, sean darcy wrote: > From my provider I get extensions of: > > +1<10digit number> > 1<10 digit number> > <10 digit number> > > seemingly randomly. > > What I'd like to do is > > exten=_!1234567890,1,Answer() > Any suggestions? exten =>

Re: [asterisk-users] pattern matching "+"

2019-03-15 Thread Richard Mudgett
On Fri, Mar 15, 2019 at 9:19 AM sean darcy wrote: > From my provider I get extensions of: > > +1<10digit number> > 1<10 digit number> > <10 digit number> > > seemingly randomly. > > What I'd like to do is > > exten=_!1234567890,1,Answer() > > which would match anything ending in 1234567890. > >

[asterisk-users] pattern matching "+"

2019-03-15 Thread sean darcy
From my provider I get extensions of: +1<10digit number> 1<10 digit number> <10 digit number> seemingly randomly. What I'd like to do is exten=_!1234567890,1,Answer() which would match anything ending in 1234567890. But that doesn't work since ! can only be used at the end of a pattern. I

Re: [asterisk-users] Pattern matching repeating digits

2013-03-29 Thread Nathan Anderson
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Eric Wieling Sent: Thursday, March 28, 2013 8:33 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Pattern matching repeating digits You are correct, it is stupid 8-) exten = 233,1,Goto(dial-out

Re: [asterisk-users] Pattern matching repeating digits

2013-03-28 Thread Eric Wieling
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nathan Anderson Sent: Wednesday, March 27, 2013 2:18 AM To: 'asterisk-users@lists.digium.com' Subject: [asterisk-users] Pattern matching repeating digits 'lo, all, Is there some (possibly undocumented?) way that I can

[asterisk-users] Pattern matching repeating digits

2013-03-27 Thread Nathan Anderson
'lo, all, Is there some (possibly undocumented?) way that I can pattern-match on a specified number of repeating digits? (Something similar to regular expressions' {}) Here's an example: let's say I have a string of things that need to be done for both extensions 233 and 255. I can

[asterisk-users] Pattern matching - how to ignore numbers after 10 digits

2010-05-27 Thread Eddie Mikell
All: Yesterday I discovered something interesting. I dialed 1800ANCESTRY from the asterisk system I am testing and got the number doesn't exist message. I then dialed the same number from our old system and it went through. I realized that the Y in ancestry made the number too long, and

Re: [asterisk-users] Pattern matching - how to ignore numbers after 10 digits

2010-05-27 Thread Alyed
I guess it's the !, sometimes it has a funny behaviour. try changing (. instead of ! and an X less) exten = _91XX!,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.netexten%3a1...@ia.ntelos.net) ; long distance to exten = _91X.,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.netexten%3a1...@ia.ntelos.net) ;

Re: [asterisk-users] Pattern matching - how to ignore numbers after 10 digits

2010-05-27 Thread Steve Edwards
On Thu, 27 May 2010, Eddie Mikell wrote: exten = _911,1,DIAL(SIP/${ext...@ia.ntelos.net) ; emergency Unrelated to your question, but 911 doesn't need an underscore. -- Thanks in advance, - Steve Edwards

[asterisk-users] pattern matching

2009-12-26 Thread Thomas Perron
I want to ensure that only this extension is executed. But, I have others that are similar. I want: exten = 34101,1,Answer() exten = 34101,n,Record(34101:gsm) ; 34101 test zip code exten = 34101,n,Playback(34101) exten = 34101,n,Hangup Is this correct or do I need to have each of the four

Re: [asterisk-users] pattern matching

2009-12-26 Thread Doug Lytle
Thomas Perron wrote: exten = 34101,1,Answer() Is this correct or do I need to have each of the four statements lead with an underscore (_) to make an exact match? Without the underscore, an exact match is required. The underscore, denotes a pattern. Doug -- Ben Franklin quote:

Re: [asterisk-users] pattern matching

2009-12-26 Thread Juan E. Rodríguez
...@lists.digium.com Para: asterisk-users@lists.digium.com Responder a: Asterisk Users Mailing List - Non-Commercial Discussion Asunto: [asterisk-users] pattern matching Enviado: 26 Dic, 2009 09:36 I want to ensure that only this extension is executed. But, I have others that are similar. I want: exten = 34101,1

Re: [asterisk-users] pattern matching DID

2009-11-02 Thread Jared Smith
On Sun, 2009-11-01 at 18:50 -0500, Thomas Perron wrote: Where is everyone located? I am in Virginia, USA There are literally thousands of people on this mailing list, so I doubt it's worth having everyone tell you where they're from. That being said, I'm also in Virginia (near Fredericksburg),

[asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
I have two DID numbers. I want callers who dial 1 703 to get placed in a specific part of IVR I want other callers who dial 1 567 to get placed in a different area. How do I do this please? ___ -- Bandwidth and Colocation Provided by

Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Aggio Alberto
: domenica 1 novembre 2009 21.46 To: asterisk-users@lists.digium.com Subject: [asterisk-users] pattern matching DID I have two DID numbers. I want callers who dial 1 703 to get placed in a specific part of IVR I want other callers who dial 1 567 to get placed in a different area. How

Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
To: asterisk-users@lists.digium.com Subject: [asterisk-users] pattern matching DID I have two DID numbers. I want callers who dial 1 703 to get placed in a specific part of IVR I want other callers who dial 1 567 to get placed in a different area. How do I do this please

Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Thomas Perron Sent: domenica 1 novembre 2009 21.46 To: asterisk-users@lists.digium.com Subject: [asterisk-users] pattern matching DID I have two DID numbers. I want callers who dial 1

Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
. Cheers, //Al. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Thomas Perron Sent: domenica 1 novembre 2009 21.46 To: asterisk-users@lists.digium.com Subject: [asterisk-users] pattern matching DID I

[asterisk-users] Pattern Matching

2008-12-23 Thread Brent Davidson
On my asterisk system, if an incoming call only has a number for the caller ID and no name, the system is using the channel name as in the Callerid Name field. I would like to use some sort of pattern match test to test for the presence of Zap/ in the ${CALLERID(name)} variable and if it is

Re: [asterisk-users] Pattern Matching

2008-12-23 Thread Tilghman Lesher
On Tuesday 23 December 2008 11:47:08 Brent Davidson wrote: On my asterisk system, if an incoming call only has a number for the caller ID and no name, the system is using the channel name as in the Callerid Name field. I would like to use some sort of pattern match test to test for the

Re: [asterisk-users] Pattern Matching

2008-12-23 Thread Philipp Kempgen
Brent Davidson schrieb: On my asterisk system, if an incoming call only has a number for the caller ID and no name, the system is using the channel name as in the Callerid Name field. I would like to use some sort of pattern match test to test for the presence of Zap/ in the

Re: [asterisk-users] Pattern Matching

2008-12-23 Thread Brent Davidson
Philipp Kempgen wrote: Brent Davidson schrieb: On my asterisk system, if an incoming call only has a number for the caller ID and no name, the system is using the channel name as in the Callerid Name field. I would like to use some sort of pattern match test to test for the presence of

Re: [asterisk-users] Pattern matching....

2008-02-29 Thread Kevin P. Fleming
Tony Mountifield wrote: In article [EMAIL PROTECTED], Eric Wieling [EMAIL PROTECTED] wrote: No that will not work. You would want three exten = lines, one for each area code. And if you have a lot of common dialplan that you don't want to duplicate between the three extension patterns,

Re: [asterisk-users] Pattern matching....

2008-02-22 Thread Tony Mountifield
In article [EMAIL PROTECTED], Eric Wieling [EMAIL PROTECTED] wrote: No that will not work. You would want three exten = lines, one for each area code. And if you have a lot of common dialplan that you don't want to duplicate between the three extension patterns, put the common stuff up at a

Re: [asterisk-users] Pattern matching....

2008-02-22 Thread Michael Munger
Sent: Thursday, February 21, 2008 1:46 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Pattern matching On Thu, 2008-02-21 at 13:34 -0500, Mike Trest - Personal wrote: [746][704][048] Nope, that's not going to do exactly what you want either

[asterisk-users] Pattern matching....

2008-02-21 Thread Michael Munger
Will this work to match any number from the 770,404, or 678 area codes? _[404|770|678]NXX If this won't work, is there a pattern that will do this? Yours, Michael Munger, dCAP 404-438-2128 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Attachment encrypted? click here

Re: [asterisk-users] Pattern matching....

2008-02-21 Thread Steve Murphy
On Thu, 2008-02-21 at 12:44 -0500, Michael Munger wrote: Will this work to match any number from the 770,404, or 678 area codes? _[404|770|678]NXX If this won’t work, is there a pattern that will do this? No, it won't work, there's no '|' for alternative matches, and

Re: [asterisk-users] Pattern matching....

2008-02-21 Thread Mike Trest - Personal
[746][704][048] [At 01:21 PM 2/21/2008, you wrote: On Thu, 2008-02-21 at 12:44 -0500, Michael Munger wrote: Will this work to match any number from the 770,404, or 678 area codes? _[404|770|678]NXX If this won’t work, is there a pattern that will do this? No, it

Re: [asterisk-users] Pattern matching....

2008-02-21 Thread Jared Smith
On Thu, 2008-02-21 at 13:34 -0500, Mike Trest - Personal wrote: [746][704][048] Nope, that's not going to do exactly what you want either... that pattern would match a lot of area codes besides the ones you're looking for. (For example, you could have 7 as the first digit and 0 as the second

Re: [asterisk-users] Pattern matching....

2008-02-21 Thread Eric Wieling
No that will not work. You would want three exten = lines, one for each area code. Michael Munger wrote: Will this work to match any number from the 770,404, or 678 area codes? _[404|770|678]NXX If this won't work, is there a pattern that will do this? Yours,

Re: [asterisk-users] Pattern matching....

2008-02-21 Thread Eric Wieling
That will match the following as well 770 700 740 400 470 670 600 604 608 etc. You example says: The first digit can be 7 or 4 or 6. The 2nd digit can be 7 or 0 or 4. The 3rd digit can be 0 or 4 or 8. Mike Trest - Personal wrote: [746][704][048] [At 01:21 PM 2/21/2008, you wrote: On

[Asterisk-Users] pattern matching

2006-05-10 Thread René Enskat [Teamware GmbH]
hi all, i want to build a extension that when i call 46-50 that ONE a account is ringing i have this: exten = [46-50],1,Set(LANGUAGE()=de)exten = [46-50],2,CDR(userfield)=INTERNexten = [46-50],3,MusicOnHold(0.5)exten = [46-50],4,SIP/1000144|60|wWexten = [46-50],5,Hangup but it is not working.

Re: [Asterisk-Users] pattern matching

2006-05-10 Thread Alasdair Gow
try exten = [46-50],1,Set(LANGUAGE()=de) exten = [46-50],2,CDR(userfield)=INTERN exten = [46-50],3,Answer exten = [46-50],4,MusicOnHold(0.5) exten = [46-50],5,SIP/1000144|60|wW exten = [46-50],6,Hangup René Enskat [Teamware GmbH] wrote: hi all, i want to build a extension that when i call

Re: [Asterisk-Users] pattern matching

2006-05-10 Thread Christian Gansberger
hi,try thatexten = _[46-50],1,Set(LANGUAGE()=de)exten = _[46-50],2,CDR(userfield)=INTERNexten = _[46-50],3,MusicOnHold(0.5)exten = _[46-50],4,SIP/1000144|60|wWexten = _[46-50],5,HangupChristian GansbergerACCM, Vienna ___ --Bandwidth and Colocation

Re: [Asterisk-Users] pattern matching

2006-05-10 Thread Alasdair Gow
What do you see on the asterisk console? do you see it setting the language etc or does it not match the pattern? try exten = [46-50],1,Set(LANGUAGE()=de) exten = [46-50],2,CDR(userfield)=INTERN exten = [46-50],3,Answer exten = [46-50],4,MusicOnHold(0.5) exten = [46-50],5,SIP/1000144|60|wW

AW: [Asterisk-Users] pattern matching

2006-05-10 Thread René Enskat [Teamware GmbH]
-Commercial Discussion Betreff: Re: [Asterisk-Users] pattern matching What do you see on the asterisk console? do you see it setting the language etc or does it not match the pattern? try exten = [46-50],1,Set(LANGUAGE()=de) exten = [46-50],2,CDR(userfield)=INTERN exten = [46-50],3,Answer

[Asterisk-Users] Pattern matching DISA

2006-05-04 Thread Nicu
I would like to create an variable length extension that when used with DISA ends when i dial the pound sign (#) but i cant figure out how to do it something like exten = _*21*.# ; but this doesn't work, after i dial # it still waits a few seconds

[Asterisk-Users] Pattern matching DISA

2006-05-04 Thread Nicu
I would like to create an variable length extension that when used with DISA ends when i dial the pound sign (#) but i cant figure out how to do it something like exten = _*21*.# ; but this doesn't work, after i dial # it still waits a few seconds

[Asterisk-Users] Pattern matching problem

2006-04-26 Thread hugolivude
I'm running Asterisk 1.2.7.1 on Red hat 9 and have a strange pattern matching problem: I have the following in my dial plan: exten = _NXX,1,NoOp(Number dialed ${EXTEN}) exten = _NXX,n,Dial(Zap/1/${EXTEN}) Unless I'm missing something, I wouldn't expect the pattern above to match a 10

Re: [Asterisk-Users] Pattern matching problem

2006-04-26 Thread Eric \ManxPower\ Wieling
1) Your exten = _1XX,n,Dial(Zap/1/${EXTEN}) does not start with priority 1 so it will never match 2) The 10 digit number you dialed does not start with a 1 so it will never match, even if the priority issue is fixed. Asterisk knows that once you've dialed 7 digits no OTHER pattern

[Asterisk-Users] pattern matching

2006-01-18 Thread René Enskat [Teamware GmbH]
Hi all. I tried to build a pattenrmatching for a numberrange but the asterisk won't hear on it: _49892351207[6-7][0-9] if i make a: _4989235120760 all is fine Somebody has a hint fo rme? ___ --Bandwidth and Colocation provided by Easynews.com

[Asterisk-Users] pattern matching in dialplan problems matching _NNN

2006-01-07 Thread Thomas
Hi, I have a problem with pattern matching N what should digit 2 to 9 in Asterisk 1.2.1. If I dial 220 I did not get an PlayBack of invalid. Asterisk jumps into the context dialout and find there an matching _2. and is using this. If I change _NNN to _XXX everything works fine. If I dial 220

Re: [Asterisk-Users] pattern matching in dialplan problems matching _NNN

2006-01-07 Thread Peter Bowyer
On 07/01/06, Thomas [EMAIL PROTECTED] wrote: Hi, I have a problem with pattern matching N what should digit 2 to 9 in Asterisk 1.2.1. If I dial 220 I did not get an PlayBack of invalid. Asterisk jumps into the context dialout and find there an matching _2. and is using this. If I change

Re: [Asterisk-Users] pattern matching in dialplan problems matching _NNN

2006-01-07 Thread Thomas
thanks... _NXX works for me best regards Thomas On Saturday 07 January 2006 16:37, Peter Bowyer wrote: On 07/01/06, Thomas [EMAIL PROTECTED] wrote: Hi, I have a problem with pattern matching N what should digit 2 to 9 in Asterisk 1.2.1. If I dial 220 I did not get an PlayBack

[Asterisk-Users] Pattern Matching, speed and memory....

2005-12-13 Thread Rushowr
I'm curious about something minor, and haven't seen anything covering it yet: If you want to match an 11 digit US phone number (and know that ONLY proper numbers are being passed to this portion of your dialplan), which is more speed memory efficient: exten = _1.,1,VERBOSE(1|${EXTEN})

Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-02 Thread Dinesh Nair
On 07/02/05 02:15 Matthew Boehm said the following: according to the wiki, I should be able to do this: exten = _9./3003,1,Set(CALLERID(number)=281443) exten = _9./3004,n,Set(CALLERID(number)=281444) exten = _9./3005,n,Set(CALLERID(number)=281445) exten =

Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-02 Thread tim panton
On 2 Jul 2005, at 08:48, Dinesh Nair wrote: On 07/02/05 02:15 Matthew Boehm said the following: according to the wiki, I should be able to do this: exten = _9./3003,1,Set(CALLERID(number)=281443) exten = _9./3004,n,Set(CALLERID(number)=281444) exten =

[Asterisk-Users] pattern matching based on callerid, not working

2005-07-01 Thread Matthew Boehm
according to the wiki, I should be able to do this: exten = _9./3003,1,Set(CALLERID(number)=281443) exten = _9./3004,n,Set(CALLERID(number)=281444) exten = _9./3005,n,Set(CALLERID(number)=281445) exten = _9./3006,n,Set(CALLERID(number)=281446) exten =

Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-01 Thread Christopher Stephens
I'm not sure it's the source of your problem, but I'm sure it could wind up being the source of others: I think that should be: exten = _9./3003,1,Set(CALLERID(number)=281443) exten = _9./3004,1,Set(CALLERID(number)=281444) ; these should exten =

Re: [Asterisk-Users] Pattern Matching

2005-05-01 Thread Mojo Jojo
JojoSent: Saturday, April 30, 2005 3:08 PMTo: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial DiscussionSubject: Re: [Asterisk-Users] Pattern Matching Not sure what you mean exactly... Can you give me a hint? Private Label Wholesale Internet Access! http

RE: [Asterisk-Users] Pattern Matching

2005-05-01 Thread Tim Connolly
:21 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Pattern Matching I do this already with outgoing calls and it works fine as long as I am only using the Dial command. Where I am running into trouble is when doing something like I

Re: [Asterisk-Users] Pattern Matching

2005-04-30 Thread Mojo Jojo
: Friday, April 29, 2005 10:10 PM Subject: Re: [Asterisk-Users] Pattern Matching Hey Mojo, I'm thinking you might try using priorty 's to set some kind routing. just a thought.. Mojo Jojo wrote: We recently had our PRI installed, we currently have 100 toll-free's pointing to it. I have almost

RE: [Asterisk-Users] Pattern Matching

2005-04-30 Thread Tim Connolly
To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Pattern Matching Not sure what you mean exactly... Can you give me a hint? Private Label Wholesale Internet Access! http://www.YourOwnISP.com - Original Message - From: Michael D

[Asterisk-Users] Pattern Matching

2005-04-29 Thread Mojo Jojo
We recently had our PRI installed, we currently have 100 toll-free's pointing to it. I have almost everything working great but.. I have setup the first few numbers we want to use coming in from the PRI and they work great, but.. What I want to do is setup an extension with pattern matching to

Re: [Asterisk-Users] Pattern Matching

2005-04-29 Thread Michael D Schelin
Hey Mojo, I'm thinking you might try using priorty 's to set some kind routing. just a thought.. Mojo Jojo wrote: We recently had our PRI installed, we currently have 100 toll-free's pointing to it. I have almost everything working great but.. I have setup the first few numbers we want to use

[Asterisk-Users] Pattern matching in extensions.conf

2005-03-18 Thread Mickey Binder
Hello fellow * users Hope this isn't a stupid question; I've done my research but could not find a proper answer. I have 8 different destinations which I want to match. The numbers are: ## 00 ## 20 ## 30 ## 40 ## 15 ## 35 ## 12 ## 44 Right now I've solved it by

RE: [Asterisk-Users] Pattern matching in extensions.conf

2005-03-18 Thread Daniel Eboa
What is 00 and other numbers? Are different destinations prefix ?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mickey Binder Sent: vendredi 18 mars 2005 12:39 To: Asterisk maillist (asterisk-users@lists.digium.com) Subject: [Asterisk-Users] Pattern

RE: [Asterisk-Users] Pattern matching in extensions.conf

2005-03-18 Thread Mickey Binder
12:39 To: Asterisk maillist (asterisk-users@lists.digium.com) Subject: [Asterisk-Users] Pattern matching in extensions.conf Hello fellow * users Hope this isn't a stupid question; I've done my research but could not find a proper answer. I have 8 different destinations which I want to match

Re: [Asterisk-Users] Pattern Matching?

2005-03-17 Thread Sean Kennedy
[EMAIL PROTECTED] wrote: I need to deploy some quasi-virtual-PBXes, and I'd like to avoid having to be hands on for each new phone number deployed... so I would like to set up some administrative extensions that can record greetings... lets say: [admin] exten =

[Asterisk-Users] Pattern Matching?

2005-03-16 Thread asterisk
I need to deploy some quasi-virtual-PBXes, and I'd like to avoid having to be hands on for each new phone number deployed... so I would like to set up some administrative extensions that can record greetings... lets say: [admin] exten = 8(NXXNXX),1,Record($1|-greeting.gsm) [incoming] exten

Re: [Asterisk-Users] pattern matching problem

2005-01-17 Thread Jens Vagelpohl
On Jan 17, 2005, at 7:29, Joseph wrote: How do I solve the problem with between patterns: _1800 _1NXX I would like all numbers 1800, 1877 etc to go through iaxtel but all other numbers 1xxx via voipjet When you combine these contexts, e.g. when you include them in your default context, you need

RE: [Asterisk-Users] pattern matching problem

2005-01-17 Thread Robert Jackson
-Original Message- From: Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, January 17, 2005 1:29 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] pattern matching problem How do I solve the problem with between patterns: _1800 _1NXX I

Re: [Asterisk-Users] pattern matching problem

2005-01-17 Thread Joseph
On Mon, 2005-01-17 at 09:02 +0100, Jens Vagelpohl wrote: On Jan 17, 2005, at 7:29, Joseph wrote: How do I solve the problem with between patterns: _1800 _1NXX I would like all numbers 1800, 1877 etc to go through iaxtel but all other numbers 1xxx via voipjet When you combine

RE: [Asterisk-Users] pattern matching problem

2005-01-17 Thread Joseph
How do I solve the problem with between patterns: _1800 _1NXX I would like all numbers 1800, 1877 etc to go through iaxtel but all other numbers 1xxx via voipjet In your default context (i.e. the one specified in sip.conf/iax.conf) include the iaxtel context before the

[Asterisk-Users] pattern matching problem

2005-01-16 Thread Joseph
How do I solve the problem with between patterns: _1800 _1NXX I would like all numbers 1800, 1877 etc to go through iaxtel but all other numbers 1xxx via voipjet Example in my extension.conf I have: [iaxtel] exten = _1700NXX,1,Dial(IAX2/:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten =

[Asterisk-Users] Pattern-matching in the dial-plan

2004-12-12 Thread The Traveller
Hey all, I'm trying to add some logic to a dial-plan to allow the caller to terminate a number with a #, but also accept it without this terminator. While trying this, I noticed that, for example, extension _[*0-9]XXX.# always seems to match, whether the last digit dialled is a # or not. It's

Re: [Asterisk-Users] Pattern-matching in the dial-plan

2004-12-12 Thread Wilson Pickett
dialled is a # or not. It's as if the parser assumes everything after the . will match and doesn't look any further. Is this expected behaviour? Yes, the dot says match ANYTHING from here on AFAIK ___ Asterisk-Users mailing list [EMAIL PROTECTED]

Re: [Asterisk-Users] Pattern-matching in the dial-plan

2004-12-12 Thread Peter Svensson
On Sun, 12 Dec 2004, Wilson Pickett wrote: dialled is a # or not. It's as if the parser assumes everything after the . will match and doesn't look any further. Is this expected behaviour? Yes, the dot says match ANYTHING from here on AFAIK To be precise it will match one or more

[Asterisk-Users] pattern matching problems

2004-08-31 Thread Atif Rasheed
this is from my extensions.conf, the first three patterns are for toll-free numbers, and fourth pattern is for other numbers, where an AGI is called for authentication. now when I dial 011448000664327 if falls into the fourth pattern, where as it should be matched by the first pattern. Any

RE: [Asterisk-Users] pattern matching problems

2004-08-31 Thread Florian Overkamp
Hi, -Original Message- this is from my extensions.conf, the first three patterns are for toll-free numbers, and fourth pattern is for other numbers, where an AGI is called for authentication. now when I dial 011448000664327 if falls into the fourth pattern, where as it should

Re: [Asterisk-Users] pattern matching problems

2004-08-31 Thread Adam Goryachev
On Tue, 2004-08-31 at 21:42, Atif Rasheed wrote: this is from my extensions.conf, the first three patterns are for toll-free numbers, and fourth pattern is for other numbers, where an AGI is called for authentication. now when I dial 011448000664327 if falls into the fourth pattern, where as

RE: [Asterisk-Users] pattern matching w/ Cisco dialplans

2004-05-13 Thread mitchel
To: [EMAIL PROTECTED] Subject: [Asterisk-Users] pattern matching w/ Cisco dialplans I have some Cisco 7940's running SIP image 6.3 and a newphone account. Reguarding my dialplan I'm having a small issue. I'd like to dial 9,2,xxx-xxx- for a LD Nufone calls - however I also need to dial l

Re: [Asterisk-Users] Pattern matching rules for least cost routing

2004-04-21 Thread Mark Elkins
On Wed, 2004-04-21 at 01:03, Fran Boon wrote: On Tue, 2004-04-20 at 23:21, Mark Elkins wrote: No matter what is dialled - I always go out on the 'Default' line. Swapping order makes no difference. If I comment out the 'default' - it does match the 'Cell' pattern - and works.

Re: [Asterisk-Users] Pattern matching rules for least cost routing

2004-04-21 Thread Tilghman Lesher
On 2004 Apr 20, at 17:21, Mark Elkins wrote: I've got two patterns I want to match on making an outgoing call... (one day - to do Least Cost Routing for Cell/Mobile calls) Firstly - I prefer '0' rather than '9' to get an outside line... Either its a call to a mobile No... (072 -or- 082 -or- 083

[Asterisk-Users] Pattern matching rules for least cost routing

2004-04-20 Thread Mark Elkins
I've got two patterns I want to match on making an outgoing call... (one day - to do Least Cost Routing for Cell/Mobile calls) Firstly - I prefer '0' rather than '9' to get an outside line... Either its a call to a mobile No... (072 -or- 082 -or- 083 -or- 084) or its just another number to

Re: [Asterisk-Users] Pattern matching rules for least cost routing

2004-04-20 Thread John Todd
At 12:21 AM +0200 on 4/21/04, Mark Elkins wrote: I've got two patterns I want to match on making an outgoing call... (one day - to do Least Cost Routing for Cell/Mobile calls) Firstly - I prefer '0' rather than '9' to get an outside line... Either its a call to a mobile No... (072 -or- 082 -or-

Re: [Asterisk-Users] Pattern matching rules for least cost routing

2004-04-20 Thread Fran Boon
On Tue, 2004-04-20 at 23:21, Mark Elkins wrote: -SNIP- ;Cell Phone call exten = _00[78][234].,1,Playback(posix-cellphone) exten = _00[78][234].,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}}) ;Default catch all - just dial it exten = _0.,1,Playback(posix-defaultroute) exten =

[Asterisk-Users] pattern matching problem when dialing

2003-10-14 Thread Dan Fernandez
I am having problems with early dialing and chan_phone. In extensions.conf Ihave: exten = _41.,1,Dial,IAX If I dialvia a SIP or ZAP channels it works fine.With chan_phone it start dialing right after the 3rd number. If tried different combinations like (41., ... or _41X., ) and still

[Asterisk-Users] Pattern matching: least-to-most specific PITA

2003-06-25 Thread John Todd
My synapses are rather fried after a long few days of debugging other problems, so perhaps I'm being lazy in sending this to the general list, but I can't think straight about it. Forgive me if there is an overly obvious solution to this. I have a list of phone numbers that are SIP

Re: [Asterisk-Users] Pattern matching: least-to-most specific PITA

2003-06-25 Thread Martin Pycko
I think that if you put exten = _X.,1,DIal,Zap it'll improve the matching dramatically Martin On Wed, 25 Jun 2003, John Todd wrote: My synapses are rather fried after a long few days of debugging other problems, so perhaps I'm being lazy in sending this to the general list, but I can't