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 !
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 =>
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.
>
>
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
[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
...@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
'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
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
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)
;
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
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
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:
...@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
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),
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
: 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
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
.
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
.
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
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
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
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
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
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,
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
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
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
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
[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
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
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,
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
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.
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
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
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
-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
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
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
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
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
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
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
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
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
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})
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 =
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 =
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 =
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 =
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
: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
: 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
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
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
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
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
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
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
[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 =
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
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
-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
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
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
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 =
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
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]
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
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
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
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
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
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.
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
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
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-
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 =
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
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
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
81 matches
Mail list logo