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 ! can only be used at the end of a pattern.

I tried

[+\ ][1\ ]1234567890

which didn't work, probably because "\ " means  space, not nothing.

Any suggestions?


exten = _+.,1,Goto(${EXTEN:-10})
exten = _X.,1,Goto(${EXTEN:-10})
...

Daniel

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

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 => _+1XX,Goto(${EXTEN:2})
exten => _1XX,Goto(${EXTEN:1})
exten => _XX,Rest of your dialplan


Antony.

-- 
What makes you think I know what I'm talking about?
I just have more O'Reilly books than most people.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

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.
>
> But that doesn't work since ! can only be used at the end of a pattern.
>
> I tried
>
> [+\ ][1\ ]1234567890
>
> which didn't work, probably because "\ " means  space, not nothing.
>
> Any suggestions?
>

You must have multiple patterns to match the various starting sequences you
receive.
One that begins with +
One that begins with 1
One that is for a 10 digit number

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Pattern matching repeating digits

2013-03-29 Thread Nathan Anderson
Eric,

Thanks; of course, this is also an option.  However, setting up a separate 
context for this type of thing with several identical Goto statements also 
strikes me as inelegant, even if it is less so. 

-- Nathan

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[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,${EXTEN},1)
exten => 255,1,Goto(dial-out,${EXTEN},1)

[dial-out]

exten => _XXX,1,DoStuff()
exten => _XXX,n,AndMoreStuff()
exten => _XXX,n,Dial(something)
exten => _XXX,n,Hangup

-Original Message-
From: asterisk-users-boun...@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 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 either...

A) Repeat the exact same code for both extensions, like so:

exten => 233,1,DoStuff()
exten => 233,n,AndMoreStuff()
exten => 233,n,Dial(something)

exten => 255,1,DoStuff()
exten => 255,n,AndMoreStuff()
exten => 255,n,Dial(something)

...which is stupid, or...

B) I can attempt code reuse for similar cases (a Good Thing[tm]), and make as 
specific of a match as possible, like so:

exten => _2[35][35],1,DoStuff()
exten => _2[35][35],n,AndMoreStuff()
exten => _2[35][35],n,Dial(something)

...but this will not only match 233 and 255, but 235 and 253 as well.

It'd be nice if there was a substitute character that meant "a character that 
is exactly the same as the preceding one"; for example, if R was meant to 
represent such a concept, then this would do what I want:

exten => _2[35]R,1,DoStuff()
exten => _2[35]R,n,AndMoreStuff()
exten => _2[35]R,n,Dial(something)

You could even do crazy things like chain them together (this would match 2 
and 2 and nothing else);

exten => _2[35]RRR,1,DoStuff()
exten => _2[35]RRR,n,AndMoreStuff()
exten => _2[35]RRR,n,Dial(something)

Am I missing something or does this really not exist?

Thanks,

--
Nathan Anderson
First Step Internet, LLC
nath...@fsr.com

--
_
-- 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

--
_
-- 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

--
_
-- 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


Re: [asterisk-users] Pattern matching repeating digits

2013-03-28 Thread Eric Wieling
You are correct, it is stupid 8-)  

exten => 233,1,Goto(dial-out,${EXTEN},1)
exten => 255,1,Goto(dial-out,${EXTEN},1)

[dial-out]

exten => _XXX,1,DoStuff()
exten => _XXX,n,AndMoreStuff()
exten => _XXX,n,Dial(something)
exten => _XXX,n,Hangup

-Original Message-
From: asterisk-users-boun...@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 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 either...

A) Repeat the exact same code for both extensions, like so:

exten => 233,1,DoStuff()
exten => 233,n,AndMoreStuff()
exten => 233,n,Dial(something)

exten => 255,1,DoStuff()
exten => 255,n,AndMoreStuff()
exten => 255,n,Dial(something)

...which is stupid, or...

B) I can attempt code reuse for similar cases (a Good Thing[tm]), and make as 
specific of a match as possible, like so:

exten => _2[35][35],1,DoStuff()
exten => _2[35][35],n,AndMoreStuff()
exten => _2[35][35],n,Dial(something)

...but this will not only match 233 and 255, but 235 and 253 as well.

It'd be nice if there was a substitute character that meant "a character that 
is exactly the same as the preceding one"; for example, if R was meant to 
represent such a concept, then this would do what I want:

exten => _2[35]R,1,DoStuff()
exten => _2[35]R,n,AndMoreStuff()
exten => _2[35]R,n,Dial(something)

You could even do crazy things like chain them together (this would match 2 
and 2 and nothing else);

exten => _2[35]RRR,1,DoStuff()
exten => _2[35]RRR,n,AndMoreStuff()
exten => _2[35]RRR,n,Dial(something)

Am I missing something or does this really not exist?

Thanks,

--
Nathan Anderson
First Step Internet, LLC
nath...@fsr.com

--
_
-- 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

--
_
-- 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


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   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

-- 
_
-- 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


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.net)
; long distance
to
exten => 
_91X.,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.net)
; long distance


I always use "." and never had a problem.

Alyed


2010/5/27 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 went
> back to my dialplan.
>
> How do I ignore numbers that are too long?  Obviously, I've done
> something wrong in my pattern matching.
>
> outgoing part of extensions.conf
>
> exten => 
> _91XX!,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.net)
> ; long distance
> exten => 
> _9765XXX,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.net)
> ; local
> exten => 
> _9XXX,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.net)
> ; local
> exten => 
> _9011XXX!,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.net)
> ; international
> exten => _911,1,DIAL(SIP/${ext...@ia.ntelos.net )
> ; emergency
>
> Thanks!
>
> Eddie Mikell
>
>
>
>
>
> --
> _
> -- 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
>
-- 
_
-- 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

Re: [asterisk-users] pattern matching

2009-12-26 Thread Juan E. Rodríguez
You do not need to use pattern matching if you know the extension you are going 
to receive.

Check the spelling on the dialplan if it does not work. You can start at the 
duplicated comma of the 34102.

--Mensaje original--
De: Thomas Perron
Remitente: asterisk-users-boun...@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,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 statements lead
with an underscore (_) to make an exact match?

Other code looks similar so I don't want the 102 to connect when I am
dialing 101

exten => 34102,1,Answer()
exten => 34102,,n,Record(34102:gsm)  ;   34102 test zip code
exten => 34102,n,Playback(34102)
exten => 34102,n,Hangup

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


Saludos,
Juan E. Rodríguez
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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:

"Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety."


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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), and there's enough
interest in the area that we might start up a local Asterisk users group
in the area.  What part of Virginia are you from?



-- 
Jared Smith
Training Manager
Digium, Inc.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
Does anyone know of a low price SIP termination service to Nepal?  For
VoIP calling card solutIon

On 11/1/09, Aggio Alberto  wrote:
> Hi,
> it's quite straightforward: you can do your dialplan like this (default is
> the default context answered when inbound calls happen) - remember the
> underscores! -
>
>
> [default]
>
> exten => _1703,1,Goto(place-IVR,s,1)
>
> exten => _1567 ,1,Goto(place-other,s,1)
>
>
>
> [place-IVR]
>
> exten => s,1,Answer
>
> exten => s,2,Background(menu-file)
>
> exten => 1,1,Goto(submenu,1)
>
> exten => 2,1,Goto(submenu,2)
>
>  (...)
>
>
>
>
>
> [place-other]
>
> exten => s,1,Answer
>
> exten => s,n,...
>
> (...)
>
> exten => s,n,Hangup
>
> If you want to jump into a specific part of context, you should put a label
> near the 'n' priority where you want to jump to (eg. exten =>
> s,n(jumphere),) then specify that label into Goto()
> application.
>
> 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 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 http://www.api-digital.com --

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


Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
Where is everyone located?  I am in Virginia, USA

On 11/1/09, Aggio Alberto  wrote:
> Hi,
> it's quite straightforward: you can do your dialplan like this (default is
> the default context answered when inbound calls happen) - remember the
> underscores! -
>
>
> [default]
>
> exten => _1703,1,Goto(place-IVR,s,1)
>
> exten => _1567 ,1,Goto(place-other,s,1)
>
>
>
> [place-IVR]
>
> exten => s,1,Answer
>
> exten => s,2,Background(menu-file)
>
> exten => 1,1,Goto(submenu,1)
>
> exten => 2,1,Goto(submenu,2)
>
>  (...)
>
>
>
>
>
> [place-other]
>
> exten => s,1,Answer
>
> exten => s,n,...
>
> (...)
>
> exten => s,n,Hangup
>
> If you want to jump into a specific part of context, you should put a label
> near the 'n' priority where you want to jump to (eg. exten =>
> s,n(jumphere),) then specify that label into Goto()
> application.
>
> 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 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 http://www.api-digital.com --

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


Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Thomas Perron
Thank you.
I am trying it shortly.  This is a lot of fun.  I am trying to find
places where I can get customers with IVR or anything relating to
Asterisk.  Any ideas?
Cheers
Tom

On 11/1/09, Aggio Alberto  wrote:
> Hi,
> it's quite straightforward: you can do your dialplan like this (default is
> the default context answered when inbound calls happen) - remember the
> underscores! -
>
>
> [default]
>
> exten => _1703,1,Goto(place-IVR,s,1)
>
> exten => _1567 ,1,Goto(place-other,s,1)
>
>
>
> [place-IVR]
>
> exten => s,1,Answer
>
> exten => s,2,Background(menu-file)
>
> exten => 1,1,Goto(submenu,1)
>
> exten => 2,1,Goto(submenu,2)
>
>  (...)
>
>
>
>
>
> [place-other]
>
> exten => s,1,Answer
>
> exten => s,n,...
>
> (...)
>
> exten => s,n,Hangup
>
> If you want to jump into a specific part of context, you should put a label
> near the 'n' priority where you want to jump to (eg. exten =>
> s,n(jumphere),) then specify that label into Goto()
> application.
>
> 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 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 http://www.api-digital.com --

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


Re: [asterisk-users] pattern matching DID

2009-11-01 Thread Aggio Alberto
Hi,
it's quite straightforward: you can do your dialplan like this (default is the 
default context answered when inbound calls happen) - remember the underscores! 
-


[default]

exten => _1703,1,Goto(place-IVR,s,1)

exten => _1567 ,1,Goto(place-other,s,1)



[place-IVR]

exten => s,1,Answer

exten => s,2,Background(menu-file)

exten => 1,1,Goto(submenu,1)

exten => 2,1,Goto(submenu,2)

 (...)





[place-other]

exten => s,1,Answer

exten => s,n,...

(...)

exten => s,n,Hangup

If you want to jump into a specific part of context, you should put a label 
near the 'n' priority where you want to jump to (eg. exten => 
s,n(jumphere),) then specify that label into Goto() 
application.

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 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 http://www.api-digital.com --

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

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 "Zap/" in the ${CALLERID(name)} 
variable and if it is present, replace it with "Unknown".  I'm using the 
ael format for my dialplan and have been looking for a way to do this, 
but haven't found anything yet.  Is there a way to do this inside the 
dialplan



if ("${CALLERID(name):0:4}" = "Zap/") {
Set(CALLERID(name)=Unknown);
}

Not sure why you would want to put the channel name into the
caller ID name in the first place.


   Philipp Kempgen

  


Thanks all.  As far as why the channel name is in the caller ID, I don't 
know.  I'm certainly not doing it intentionally.  I don't have any code 
in the dialplan that even touches the CallerID, so I guess Asterisk is 
doing somehow when the Name part of the CallerID is unknown...  Either 
that or my Snom 300 phones are picking the wrong info to use for CallerID.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

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 ${CALLERID(name)} 
> variable and if it is present, replace it with "Unknown".  I'm using the 
> ael format for my dialplan and have been looking for a way to do this, 
> but haven't found anything yet.  Is there a way to do this inside the 
> dialplan

if ("${CALLERID(name):0:4}" = "Zap/") {
Set(CALLERID(name)=Unknown);
}

Not sure why you would want to put the channel name into the
caller ID name in the first place.


   Philipp Kempgen

-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 presence of "Zap/" in the ${CALLERID(name)}
> variable and if it is present, replace it with "Unknown".  I'm using the
> ael format for my dialplan and have been looking for a way to do this,
> but haven't found anything yet.  Is there a way to do this inside the
> dialplan or do I have to pass it out to an AGI script?

Set(CALLERID(name)=${IF($[${CUT(CALLERID(name),/,1)}=Zap]?Unknown:
${CALLERID(name)})})


-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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, put the common stuff up at a higher
> priority and use Goto to get there:
> 
> exten => _404NXX,1,Goto(200)
> exten => _770NXX,1,Goto(200)
> exten => _678NXX,1,Goto(200)
> 
> exten => _NXXNXX,200,NoOp(Start of common instructions)
> exten => _NXXNXX,n,etc

Actually you can do this a lot more simply without using Goto (which
might mess with your CDR):

exten => _404NXX,1,NoOp
exten => _770NXX,1,NoOp
exten => _678NXX,1,NoOp

exten => _NXXNXX,2,NoOp(Start of common instructions)
exten => _NXXNXX,n,etc

Since there is an implicit 'Goto' from priority 1 to priority 2 anyway,
you might as well take advantage of it :-)

-- 
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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

2008-02-22 Thread Michael Munger
That's what I figured, and the way I've always done it. I was just
*hoping* someone knew of a better way that I didn't know about.

Yours,

Michael Munger, dCAP
404-438-2128
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jared
Smith
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... 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 digit and 0 as the third digit.)

You really need to have three separate patters; one for each area code.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 higher
priority and use Goto to get there:

exten => _404NXX,1,Goto(200)
exten => _770NXX,1,Goto(200)
exten => _678NXX,1,Goto(200)

exten => _NXXNXX,200,NoOp(Start of common instructions)
exten => _NXXNXX,n,etc

Cheers
Tony

> 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,
> > 
> > Michael Munger, dCAP
> > 
> > 404-438-2128
> > 
> > [EMAIL PROTECTED]  
> > 
> >  
> > 
> > Attachment encrypted? click here
> >  .
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > ___
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > 
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> -- 
> Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
> T-1, PRI, Frame Relay, Linux, and network design.  Based near 
> Birmingham, AL.  Now accepting clients worldwide.
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 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 no parens
>> available for grouping, either. And your usage of char sets is off.
>> Try something like this:
>>
>> _404NXX
>>
>> _770NXX
>>
>> _678NXX
>>
>>
>> as three separate extensions.
>>
>> If you REALLY want to keep that as one extension, then you could:
>>
>> _NXXNXX  =>  {
>> Set(areacode=${EXTEN:0:3})
>> if ('${areacode}' = '404') {
>> 
>> } else if ('${areacode}' = '770') {
>> 
>> } else if ('${areacode}' = '678') {
>> 
>> }
>>
>>
>> OR, you could do it this way, also:
>>
>> _NXXNXX  =>  {
>> Set(areacode=${EXTEN:0:3})
>> switch(${areacode})
>> {
>> case 404:
>> 
>> break;
>> case 770:
>> 
>> break;
>> case 678:
>> 
>> break;
>> }
>>
>> This is, of course AEL code, and this stuff would be inside a context
>> construct...
>>
>> murf
>>
>>
>>
>>
>>
>>
>>>
>>> Yours,
>>>
>>> Michael Munger, dCAP
>>>
>>> 404-438-2128
>>>
>>> [EMAIL PROTECTED]
>>>
>>>
>>>
>>> Attachment encrypted? click here.
>>>
>>>
>>>
>>>
>>> ___
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>http://lists.digium.com/mailman/listinfo/asterisk-users
>> --
>> Steve Murphy
>> Software Developer
>> Digium
>>
>>
>> ___
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 

-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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,
> 
> Michael Munger, dCAP
> 
> 404-438-2128
> 
> [EMAIL PROTECTED]  
> 
>  
> 
> Attachment encrypted? click here
>  .
> 
>  
> 
> 
> 
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 digit and 0 as the third digit.)

You really need to have three separate patters; one for each area code.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 won't work, there's no '|' for alternative matches, and no parens
>available for grouping, either. And your usage of char sets is off.
>Try something like this:
>
>_404NXX
>
>_770NXX
>
>_678NXX
>
>
>as three separate extensions.
>
>If you REALLY want to keep that as one extension, then you could:
>
>_NXXNXX  =>  {
> Set(areacode=${EXTEN:0:3})
> if ('${areacode}' = '404') {
> 
> } else if ('${areacode}' = '770') {
> 
> } else if ('${areacode}' = '678') {
> 
> }
>
>
>OR, you could do it this way, also:
>
>_NXXNXX  =>  {
> Set(areacode=${EXTEN:0:3})
> switch(${areacode})
> {
> case 404:
> 
> break;
> case 770:
> 
> break;
> case 678:
> 
> break;
> }
>
>This is, of course AEL code, and this stuff would be inside a context
>construct...
>
>murf
>
>
>
>
>
>
> >
> >
> > Yours,
> >
> > Michael Munger, dCAP
> >
> > 404-438-2128
> >
> > [EMAIL PROTECTED]
> >
> >
> >
> > Attachment encrypted? click here.
> >
> >
> >
> >
> > ___
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >http://lists.digium.com/mailman/listinfo/asterisk-users
>--
>Steve Murphy
>Software Developer
>Digium
>
>
>___
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


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 no parens
available for grouping, either. And your usage of char sets is off.
Try something like this:

_404NXX

_770NXX

_678NXX


as three separate extensions.

If you REALLY want to keep that as one extension, then you could:

_NXXNXX  =>  {
Set(areacode=${EXTEN:0:3})
if ('${areacode}' = '404') {

} else if ('${areacode}' = '770') {

} else if ('${areacode}' = '678') {

}


OR, you could do it this way, also:

_NXXNXX  =>  {
Set(areacode=${EXTEN:0:3})
switch(${areacode})
{
case 404:

break;
case 770:

break;
case 678:

break;
}

This is, of course AEL code, and this stuff would be inside a context
construct...

murf






> 
> 
> Yours,
> 
> Michael Munger, dCAP
> 
> 404-438-2128
> 
> [EMAIL PROTECTED]
> 
>  
> 
> Attachment encrypted? click here.
> 
>  
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steve Murphy
Software Developer
Digium


smime.p7s
Description: S/MIME cryptographic signature
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

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
exten => [46-50],6,Hangup

René Enskat [Teamware GmbH] wrote:

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)=INTERN
exten => [46-50],3,MusicOnHold(0.5)
exten => [46-50],4,SIP/1000144|60|wW
exten => [46-50],5,Hangup
but it is not working.


___
--Bandwidth and Colocation provided by Easynews.com --

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






--
Regards,
Alasdair Gow BSc (Hons)
Support Specialist
Colloquium Internet Support


___
--Bandwidth and Colocation provided by Easynews.com --

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


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 provided by Easynews.com --

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


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 46-50 that ONE a account 
is ringing i have this:
 
exten => [46-50],1,Set(LANGUAGE()=de)

exten => [46-50],2,CDR(userfield)=INTERN
exten => [46-50],3,MusicOnHold(0.5)
exten => [46-50],4,SIP/1000144|60|wW
exten => [46-50],5,Hangup
but it is not working.


___
--Bandwidth and Colocation provided by Easynews.com --

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



--
Regards,
Alasdair Gow BSc (Hons)
Support Specialist
Colloquium Internet Support


___
--Bandwidth and Colocation provided by Easynews.com --

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


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 can 
match what you are dialing and so it matches the 7 digits you dialed.


For the most part exten => i is only run during IVR (WaitExten, 
Background, etc) and not when dialing from a phone.


BTW, this works just like the Telco.  You can dial as many extra digits 
as you want, and the telco will ignore the extra ones, which is why you 
can dial 1-800-PROGRESSIVE it will work (assuming such a number exists).


hugolivude wrote:

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 digit number, but when I dial 6137451576, I see the
following in the CLI:

-- Executing NoOp("Zap/1-1", "Number dialed 6137451") in new stack
-- Executing Dial("Zap/1-1", "Zap/1/6137451") in new stack

As you can see, the last 3 digits are truncated in the dial cmd.

This is odd behaviour isn't it?   _NXX shouldn't be a match for a
10 digit number!

The other patterns I have are:


exten => _1XX,n,Dial(Zap/1/${EXTEN})
exten => _011.,n,Dial(Zap/1/${EXTEN})

so in fact I would have expected 6137451576 to fall thru to here:

exten => i,1,AbsoluteTimeout(15)

exten => i,n,Playtones(congestion)   

exten => i,n,Congestion

exten => i,n,Hangup




--
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.

___
--Bandwidth and Colocation provided by Easynews.com --

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


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 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 I hear
> > playtones invalid. It seemed to be that pattern matching with N is not
> > working as designed.
>
> 220 isn't supposed to match _NNN - N is digits 2-9, not 0.
>
> http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns
>
> Peter
>
> --
> Peter Bowyer
> Email: [EMAIL PROTECTED]
> Tel: +44 1296 768003
> VoIP: sip:[EMAIL PROTECTED]
> VoIP: [EMAIL PROTECTED]
> FWD: **275*5048707000
> VoipTalk: **473*5048707000
> ___
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

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


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 _NNN to _XXX everything works fine. If I dial 220 I hear playtones
> invalid. It seemed to be that pattern matching with N is not working as
> designed.

220 isn't supposed to match _NNN - N is digits 2-9, not 0.

http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns

Peter

--
Peter Bowyer
Email: [EMAIL PROTECTED]
Tel: +44 1296 768003
VoIP: sip:[EMAIL PROTECTED]
VoIP: [EMAIL PROTECTED]
FWD: **275*5048707000
VoipTalk: **473*5048707000
___
--Bandwidth and Colocation provided by Easynews.com --

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


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 => _9./3005,n,Set(CALLERID(number)=281445)
exten => _9./3006,n,Set(CALLERID(number)=281446)



i believe these four should be on the same priority. asterisk  
dialplans will bork if the next priority doesnt match.




Or better yet, fold them into a single line - like:

exten => _9./300[3456],1,Set(CallerID(number)=28144${CALLERIDNUM}:1)

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


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 => _9./3006,n,Set(CALLERID(number)=281446)


i believe these four should be on the same priority. asterisk dialplans 
will bork if the next priority doesnt match.


--
Regards,   /\_/\   "All dogs go to heaven."
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done  |
+=+
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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 => _9./3005,1,Set(CALLERID(number)=281445) ; all be priority
exten => _9./3006,1,Set(CALLERID(number)=281446) ; 1, not n
exten => _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)

On Fri, 01 Jul 2005 13:15:08 -0500, "Matthew Boehm"
<[EMAIL PROTECTED]> said:
> 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 => _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)
> 
> and have the correct calleridnum's set for each extension based on their 
> current calleridnum.
> 
> Basically, priority 1 will execute only if callerid is currently 3003. 
> pri2 will only execute if callerid is 3004, etc..
> 
> however, attempts to do this all fail with auto-fallthru BUSY.
> 
> Im using most recent CVS-HEAD.
> 
> Any ideas?
> 
> -Matthew
> 
> ___
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

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 => _9./3005,1,Set(CALLERID(number)=281445) ; all be priority
exten => _9./3006,1,Set(CALLERID(number)=281446) ; 1, not n
exten => _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Pattern Matching

2005-05-01 Thread Tim Connolly








Hmm.. The only reason it *should* do that is if it runs out of
priorities on the more significant match, it will then drop back to the next
priority on the next less significant match. Send me your real contexts
offline, maybe we’re both missing something in the translation to the
list. The ‘incoming’ extensions are 100% match, right??? There’s
no 9 or 1 prepended on the inbound call? The reason I ask is usually Vonage and
BV send you 1+.. rather than just the 10 digit dnis.

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mojo Jojo
Sent: Sunday, May 01, 2005 11: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 have created below. I know the syntax is not 100% correct, just using it as a
quicky example.





 





What happens here is if the DNIS matches one of the first
two exact numbers, it plays the background, sets the timeouts then goes on and
plays the sound in the include and hangs up.





 





What I want it to do is execute the stuff in the include
ONLY if none of the exact matches ocurr. I would think this is the way it
should work but I can't seem to make it happen.





 





[incoming]

Exten => 2145550001,1,Answer

Exten => 2145550001,2,Wait(1)

Exten => 2145550001,3,Background(MyGreeting)

Exten => 2145550001,4,Timeout(30)   

Exten => 2145550001,5,DigitTimeout(3)

 

Exten => 2145550002,1,Answer

Exten => 2145550002,2,Wait(1)

Exten => 2145550002,3,Background(MyGreeting)

Exten => 2145550002,4,Timeout(30)   

Exten => 2145550002,5,DigitTimeout(3)

 

 

Include => Pattern-Include

 

[Pattern-Include]

 

Exten => _8XXNXX,1,Answer

Exten => _8XXNXX,2,Wait(1)

Exten => _8XXNXX,3,Playback(NumNotConfigured)

Exten => _8XXNXX,4,Hangup

 

 





 





 





Private Label Wholesale Internet Access!
http://www.YourOwnISP.com







- Original Message - 





From: Tim Connolly 





To: 'Asterisk Users Mailing List -
Non-Commercial Discussion' ; [EMAIL PROTECTED] 





Sent: Saturday, April
30, 2005 4:21 PM





Subject: RE:
[Asterisk-Users] Pattern Matching





 



Like this:

 

[dids]

Exten => 2145550001,1,dial(SIP/6001)

Exten => 2145550002,1,dial(SIP/6002)

Exten => 2145550003,1,dial(SIP/6003)

Include => default-did

 

[default-did]

Exten => _.,1,dial(SIP/6000)

 

 

Seems pretty simple. I used this method of least/highest cost routing
to choose my LD carrier. Should work the same though.

 

 

http://www.voip-info.org/tiki-index.php?page=Asterisk%20least%20cost%20routing%20using%20broadvoice

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mojo Jojo
Sent: Saturday, April 30, 2005 3:08 PM
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 Schelin" <[EMAIL PROTECTED]>

To: "Asterisk Users Mailing List -
 Non-Commercial Discussion" 



Sent: 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 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 answer 

>> for any numbers called that are pointed to our system and PRI
but not yet 

>> in use/configured.

>> 

>> I have been successful at setting up pattern matching as a
catch all for 

>> 98 or so numbers not in use yet and I have been successful
setting up the 

>> 2 numbers I want to make use of for now.

>> 

>> Problem is, I can't use both at the same time!

>> 

>> If I turn on the pattern matching then my greeting plays for
the 

>> configured number, then the message plays for the invalid
number 

>> (basically executing the extension with the pattern matching).

>> 

>> I have read about sorting with pattern matching by using an
include, I 

>> did this but it's not really helping.

>> 

>> I have set a response timeout after the first extension plays

Re: [Asterisk-Users] Pattern Matching

2005-05-01 Thread Mojo Jojo



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 have created below. I know the syntax is not 100% correct, just 
using it as a quicky example.
 
What happens here is if the DNIS matches one of the 
first two exact numbers, it plays the background, sets the timeouts then goes on 
and plays the sound in the include and hangs up.
 
What I want it to do is execute the stuff in the 
include ONLY if none of the exact matches ocurr. I would think this is the way 
it should work but I can't seem to make it happen.
 

[incoming]
Exten => 
2145550001,1,Answer
Exten => 
2145550001,2,Wait(1)
Exten => 
2145550001,3,Background(MyGreeting)
Exten => 
2145550001,4,Timeout(30)   
Exten => 
2145550001,5,DigitTimeout(3)
 
Exten => 
2145550002,1,Answer
Exten => 
2145550002,2,Wait(1)
Exten => 
2145550002,3,Background(MyGreeting)
Exten => 
2145550002,4,Timeout(30)   
Exten => 
2145550002,5,DigitTimeout(3)
 

Include => 
Pattern-Include
 
[Pattern-Include]
 
Exten => 
_8XXNXX,1,Answer
Exten => 
_8XXNXX,2,Wait(1)
Exten => 
_8XXNXX,3,Playback(NumNotConfigured)
Exten => 
_8XXNXX,4,Hangup
 
 
 
 
Private Label Wholesale Internet Access!http://www.YourOwnISP.com

  - Original Message - 
  From: 
  Tim Connolly 
  To: 'Asterisk Users Mailing List - 
  Non-Commercial Discussion' ; [EMAIL PROTECTED] 
  Sent: Saturday, April 30, 2005 4:21 
  PM
  Subject: RE: [Asterisk-Users] Pattern 
  Matching
  
  
  Like this:
   
  [dids]
  Exten => 
  2145550001,1,dial(SIP/6001)
  Exten => 
  2145550002,1,dial(SIP/6002)
  Exten => 
  2145550003,1,dial(SIP/6003)
  Include => default-did
   
  [default-did]
  Exten => 
  _.,1,dial(SIP/6000)
   
   
  Seems pretty simple. I used this method of 
  least/highest cost routing to choose my LD carrier. Should work the same 
  though.
   
   
  http://www.voip-info.org/tiki-index.php?page=Asterisk%20least%20cost%20routing%20using%20broadvoice
   
   
   
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Mojo 
  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://www.YourOwnISP.com
   
  - Original Message - 
  
  From: "Michael D Schelin" 
  <[EMAIL PROTECTED]>
  To: "Asterisk Users Mailing List - Non-Commercial 
  Discussion" 
  
  Sent: 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 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 answer 
  >> for any numbers called that are pointed to 
  our system and PRI but not yet 
  >> in 
  use/configured.
  >> 
  >> I have been successful at setting up pattern 
  matching as a catch all for 
  >> 98 or so numbers not in use yet and I have 
  been successful setting up the 
  >> 2 numbers I want to make use of for 
  now.
  >> 
  >> Problem is, I can't use both at the same 
  time!
  >> 
  >> If I turn on the pattern matching then my 
  greeting plays for the 
  >> configured number, then the message plays for 
  the invalid number 
  >> (basically executing the extension with the 
  pattern matching).
  >> 
  >> I have read about sorting with pattern 
  matching by using an include, I 
  >> did this but it's not really 
  helping.
  >> 
  >> I have set a response timeout after the first 
  extension plays it's 
  >> greeting, I would think it should wait until 
  it times out but it doesn't, 
  >> it just immediately moves to the pattern 
  matched extension.
  >> 
  >> I must be missing something big 
  here..
  >> 
  >> Any help is 
  appreciated..
  >> 
  >> 
  >> -- 
  >> Private Label Wholesale Internet 
  Access!
  >> 
  http://www.YourOwnISP.com
  >> 
  >> 
  ___
  >> Asterisk-Users mailing 
  list
  >> 
  Asterisk-Users@lists.digium.com
  >> 
  http://lists.di

RE: [Asterisk-Users] Pattern Matching

2005-04-30 Thread Tim Connolly








Like this:

 

[dids]

Exten => 2145550001,1,dial(SIP/6001)

Exten => 2145550002,1,dial(SIP/6002)

Exten => 2145550003,1,dial(SIP/6003)

Include => default-did

 

[default-did]

Exten => _.,1,dial(SIP/6000)

 

 

Seems pretty simple. I used this method of least/highest cost routing
to choose my LD carrier. Should work the same though.

 

 

http://www.voip-info.org/tiki-index.php?page=Asterisk%20least%20cost%20routing%20using%20broadvoice

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mojo Jojo
Sent: Saturday, April 30, 2005 3:08 PM
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 Schelin" <[EMAIL PROTECTED]>

To: "Asterisk Users Mailing List - Non-Commercial Discussion"




Sent: 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 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 answer 

>> for any numbers called that are pointed to our system and PRI
but not yet 

>> in use/configured.

>> 

>> I have been successful at setting up pattern matching as a
catch all for 

>> 98 or so numbers not in use yet and I have been successful
setting up the 

>> 2 numbers I want to make use of for now.

>> 

>> Problem is, I can't use both at the same time!

>> 

>> If I turn on the pattern matching then my greeting plays for
the 

>> configured number, then the message plays for the invalid
number 

>> (basically executing the extension with the pattern matching).

>> 

>> I have read about sorting with pattern matching by using an
include, I 

>> did this but it's not really helping.

>> 

>> I have set a response timeout after the first extension plays
it's 

>> greeting, I would think it should wait until it times out but
it doesn't, 

>> it just immediately moves to the pattern matched extension.

>> 

>> I must be missing something big here..

>> 

>> Any help is appreciated..

>> 

>> 

>> -- 

>> Private Label Wholesale Internet Access!

>> http://www.YourOwnISP.com

>> 

>> ___

>> Asterisk-Users mailing list

>> Asterisk-Users@lists.digium.com

>> http://lists.digium.com/mailman/listinfo/asterisk-users

>> To UNSUBSCRIBE or update options visit:

>>  
http://lists.digium.com/mailman/listinfo/asterisk-users

>> 

>> 

> 

> ___

> Asterisk-Users mailing list

> Asterisk-Users@lists.digium.com

> http://lists.digium.com/mailman/listinfo/asterisk-users

> To UNSUBSCRIBE or update options visit:

>  
http://lists.digium.com/mailman/listinfo/asterisk-users

> 

 

 

___

Asterisk-Users mailing list

Asterisk-Users@lists.digium.com

http://lists.digium.com/mailman/listinfo/asterisk-users

To UNSUBSCRIBE or update options visit:

   http://lists.digium.com/mailman/listinfo/asterisk-users






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

Re: [Asterisk-Users] Pattern Matching

2005-04-30 Thread Mojo Jojo
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 Schelin" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: 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 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 answer 
for any numbers called that are pointed to our system and PRI but not yet 
in use/configured.

I have been successful at setting up pattern matching as a catch all for 
98 or so numbers not in use yet and I have been successful setting up the 
2 numbers I want to make use of for now.

Problem is, I can't use both at the same time!
If I turn on the pattern matching then my greeting plays for the 
configured number, then the message plays for the invalid number 
(basically executing the extension with the pattern matching).

I have read about sorting with pattern matching by using an include, I 
did this but it's not really helping.

I have set a response timeout after the first extension plays it's 
greeting, I would think it should wait until it times out but it doesn't, 
it just immediately moves to the pattern matched extension.

I must be missing something big here..
Any help is appreciated..
--
Private Label Wholesale Internet Access!
http://www.YourOwnISP.com
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

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

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


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 coming in from the 
PRI and they work great, but..

What I want to do is setup an extension with pattern matching to 
answer for any numbers called that are pointed to our system and PRI 
but not yet in use/configured.

I have been successful at setting up pattern matching as a catch all 
for 98 or so numbers not in use yet and I have been successful setting 
up the 2 numbers I want to make use of for now.

Problem is, I can't use both at the same time!
If I turn on the pattern matching then my greeting plays for the 
configured number, then the message plays for the invalid number 
(basically executing the extension with the pattern matching).

I have read about sorting with pattern matching by using an include, I 
did this but it's not really helping.

I have set a response timeout after the first extension plays it's 
greeting, I would think it should wait until it times out but it 
doesn't, it just immediately moves to the pattern matched extension.

I must be missing something big here..
Any help is appreciated..
--
Private Label Wholesale Internet Access!
http://www.YourOwnISP.com
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

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


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

2005-03-18 Thread Mickey Binder
>>What is 00 and other numbers? Are different destinations prefix ??

Nope, it's just the last 2 digits of some 8 digit numbers that isn't
supposed to be reachable.



-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 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. The numbers are:

## 00 
## 20
## 30
## 40
## 15
## 35
## 12
## 44

Right now I've solved it by doing this:

exten => _##[0234]0,1,HangUp
exten => _##[13]5,1,HangUp
exten => ##12,1,HangUp
exten => ##44,1,HangUp

The ## symbolises a fixed number, it's just censored away (and not
important anyway)

I was just wondering if there was a more intelligent approach, so this
could
be combined into one extension.

Best regards,
Mickey Binder


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


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


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 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. The numbers are:

## 00 
## 20
## 30
## 40
## 15
## 35
## 12
## 44

Right now I've solved it by doing this:

exten => _##[0234]0,1,HangUp
exten => _##[13]5,1,HangUp
exten => ##12,1,HangUp
exten => ##44,1,HangUp

The ## symbolises a fixed number, it's just censored away (and not
important anyway)

I was just wondering if there was a more intelligent approach, so this
could
be combined into one extension.

Best regards,
Mickey Binder


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


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


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 => 8(NXXNXX),1,Record($1|-greeting.gsm)
[incoming]
exten => _(NXXNXX),1,Playback($1|-greeting)
exten => _(NXXNXX),2,Goto($1,1000)
exten => _(NXXNXX),102,Playback(generic-greeting)
[21]
exten => 1000,VoiceMail(2)
[310333]
exten => 1000,VoiceMail(3)
The concept here is like the capture buffer in a Perl regex.
So that if "admin" dialed 821, it would give them the chance to
record the greeting, which would be put in the 21222-greeting.gsm
file.
If someone called 21, it would play the 21-greeting.gsm
file, if it existed, otherwise if it failed, it would play
generic-greeting.gsm.  Then it would change context based in the called
number.
Granted, I'm asking for alot here, but is there any way to approximate
this kind of an advanced configuration with Asterisk?
	Steve
 

Not that difficult.  A few things you will need:
${EXTEN} is the current extension dialed
goto statement
You can trim crap off your vars using the ${EXTEN:1} notations. In my 
example, I am trimming the front digit off the exten var.  If I wanted 
to be fancy, I could trim x off the front, and only read for n digits 
like this: ${EXTEN:x:n}. 

At least, I think I could.  Perhaps someone with more recent working 
knowledge could confirm that? 

It's all the in the wiki.  When it's up that is.  :)
Sean
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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 outgoing-voipjet context.  The 
> system should stop at the first match.
> 
> Good luck,
> 
> Robert Jackson

Thank you!
I was under impression that the order in extension.conf is important but
actually it is iax/sip.conf file.

-- 
#Joseph
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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 these contexts, e.g. when you include them in your 
> default context, you need to make sure that the more specific 
> expression (in this case the iaxtel expression) appears *before* the 
> less specific expression (outgoing-voipjet). First match wins.
> 
> jens

Yes, I recall reading about it in they way they are sorted.
So I include them in Internal context. 

[internal]
include => iaxtel
include => outgoing-voipjet

[iaxtel]
exten => _1700NXX,1,Dial(IAX2/xxx:[EMAIL PROTECTED]/[EMAIL PROTECTED])
exten => _1888NXX,1,Dial(IAX2/xxx:[EMAIL PROTECTED]/[EMAIL PROTECTED])

[outgoing-voipjet]
exten => _1NXXNXX,1,SetCallerID(7475451055)
exten => _1NXXNXX,2,Dial,IAX2/[EMAIL PROTECTED]/${EXTEN}

Though what you are saying I should combine these two.

-- 
#Joseph
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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 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 outgoing-voipjet context.  The 
system should stop at the first match.

Good luck,

Robert Jackson
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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 to make sure that the more specific 
expression (in this case the iaxtel expression) appears *before* the 
less specific expression (outgoing-voipjet). First match wins.

jens
---
Jens Vagelpohl  [EMAIL PROTECTED]
Software Engineer   +49-(0)441-36 18 14 38
Zetwork GmbHhttp://www.zetwork.com/
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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 digits, ognoring the rest of the
pattern as well. There is no match zero-or-more wildcard and no wildcard
that tries to continue to read the pattern after the wildcard.

The former can easily be implemented, we had to do it to handle some cases 
of overlap dialing. We'll clean it up and submit it later.

The latter case could probably be implemented in the 
  ast_extension_match
  ast_extension_close
  EXTENSION_MATCH_CORE
functions in pbx.c. Alternativly a regular or extended regexp could be 
added as a an extension switch, similar to pbx_loopback.c. Yet another 
option would be to integrate it with the res_perl in asterisk-addons.

Peter


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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 it should be matched by the first pattern. Any suggestions
> 
> 1 - exten => _01144800XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 2 - exten => _01144808XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 3 - exten => _01144500XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 
> 4 - exten => _011.,1,AGI(iax.agi)
> 4 - exten => _011.,2,Dial(${MAG}/${EXTEN:3},45,tT)
> 4 - exten => _011.,103,playback(no-service)

This is because asterisk is 'lazy'. It will not take the "first"
matching extension, nor will it take the most specific matching
extension, instead, it will take the least specific extension. This
means, regardless of the number, if it matches 011* then it will always
take that option. The only way to acheive what you want (AFAIK) is like
this:

[blah]
include => foo
include => bar
[foo]
exten => _01144800XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
exten => _01144808XXX,1,Dial(${MAG/${EXTEN:3},45,tT)
exten => _01144500XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
[bar]
exten => _011.,1,AGI(iax.agi)
exten => _011.,2,Dial(${MAG}/${EXTEN:3},45,tT)
exten => _011.,103,playback(no-service)

This will force asterisk to look/match extensions in foo before it
attempts to look/match extensions in bar.

Hope this helps (and it is actually correct, try it and see)

Regards,
Adam

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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 be matched by the first pattern. Any suggestions
> 
> 1 - exten => _01144800XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 2 - exten => _01144808XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 3 - exten => _01144500XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
> 
> 4 - exten => _011.,1,AGI(iax.agi)
> 4 - exten => _011.,2,Dial(${MAG}/${EXTEN:3},45,tT)
> 4 - exten => _011.,103,playback(no-service)

Better to do it like this:

[mycontext]
Include = numberedcases
Include = othercases

[numberedcases]
exten => _01144800XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
exten => _01144808XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)
exten => _01144500XXX,1,Dial(${MAG}/${EXTEN:3},45,tT)

[othercases]
exten => _011.,1,AGI(iax.agi)
exten => _011.,2,Dial(${MAG}/${EXTEN:3},45,tT)
exten => _011.,103,playback(no-service)

Included contexts are matched sequentially.

Florian

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-05-13 Thread mitchel
I don't know specifically about your question, however you can do a MATCH="*" for all matches that don't match anything (no pun intended).
 
Mitchel
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger
Sent: Thursday, May 13, 2004 4:38 PM
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 local phone numbers ie
 
9,2xx-
 
Currently my dialplan looks like so
 
 
 
 
 
This DOES work - I can call LD using NuPhone and call local numbers that 
start w/ a 2 - however when I dial local numbers that start w/ a 2 I 
have to wait 10 seconds for the call to be initiated.. ie pressing 
9xxx-, pause 10 seconds, initiate call.
 
Looking over the SIPDefault.cnf I'm not finding a value that I can enter 
that would shorten this time.  I'd like to have a pattern match in say 5 
seconds as opposed to 10.
 
Any ideas on how I can accomplish this?
 
 
-- 
Rock River Internet  Roger Grunkemeyer
202 W. State St, 8th Floor[EMAIL PROTECTED]
Rockford, IL 61101   815-968-9888 x102
 
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 
		Do you Yahoo!?Yahoo! Movies - Buy advance tickets for 'Shrek 2' 

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 -or- 084)
or its just another number to dial...
I added the following... the playback just advises me which 'route' is
being taken  In 'extentions.conf' I have...
;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 => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})
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.
Shouldn't the number I dial match the longest match - not the shortest
match as it seems to be doing? Is there a way to change that logic??
Yes, and there's a way without using multiple contexts:  just make all
extensions the same length, prior to the .:
exten => _0XX.,1,Playback(posix-defaultroute)

-Tilghman

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-04-20 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.
> 
> Pattern-matching within a context is not done based on order at all.

> include => cell
> include => default
> 
> [cell]
> exten => _00[78][234].,1,Playback(posix-cellphone)
> exten => _00[78][234].,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})
> 
> [default]
> exten => _0.,1,Playback(posix-defaultroute)
> exten => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})

Thanks (to the three replies).
Ended up leaving the cell pattern matching where it was and putting just
the default [def-out] in its own context and 'including' that to the end
of the pattern matching with...
include=> def-out

Little by little - I get to shape asterisk to the way I want it to
work..

-- 
  .  . ___. .__  Posix Systems - Sth Africa
 /| /|   / /__   [EMAIL PROTECTED]  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496



signature.asc
Description: This is a digitally signed message part


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 => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})
> 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.

Pattern-matching within a context is not done based on order at all.

To achieve the effect you want:

include => cell
include => default

[cell]
exten => _00[78][234].,1,Playback(posix-cellphone)
exten => _00[78][234].,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})

[default]
exten => _0.,1,Playback(posix-defaultroute)
exten => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})


F

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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- 083 -or- 084)
or its just another number to dial...
I added the following... the playback just advises me which 'route' is
being taken  In 'extentions.conf' I have...
;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 => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})
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.
Shouldn't the number I dial match the longest match - not the shortest
match as it seems to be doing? Is there a way to change that logic??
[snip]

Here's a quick instruction on how to get matching working more 
clearly with use of the "include" statement:

http://lists.digium.com/pipermail/asterisk-users/2003-November/027148.html

Now, to do more extensive "least call routing", you should look at 
Tholo's LCR database application, which clearly is for the advanced 
Asterisk weenie with many many routes or service providers.

JT
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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 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 extensions.  I'd like to
> dial them via SIP if ${EXTEN} is equal to one of those numbers.  If
> ${EXTEN} is not equal to one of those numbers, I'd like to send the
> call out to a PRI group, regardless of dialed sequence length or
> pattern.
>
> It seems I cannot do this with *'s pattern matching, due to the order
> in which extensions are parsed, which seems to be least-specific to
> most-specific.  This causes all kinds of headaches when trying to use
> wildcards, since wildcards are super-least-specific.
>
> My desire would be to have the more specific matches done first, so
> that if ${EXTEN} would be matched in an order that makes sense.  I
> understand why matching goes from least-to-most specific for analog
> equipment, but it makes certain tasks impossible from a dialplan
> point of view when I have the full number and I'm not waiting on a
> user to finish typing the digits.
>
> If presented with 12123669751 I would expect the match to happen and
> the SIP extension to be dialed.  It doesn't.  It dials the Zap
> extension.
>
> [foo]
> ;
> exten => _1212366975X,1,Dial(SIP/${EXTEN})
> exten => _181772721[8-9]X,1,Dial(SIP/${EXTEN})
> exten => _191481287[4-7]X,1,Dial(SIP/${EXTEN})
> exten => _141550926[0-2]X,1,Dial(SIP/${EXTEN})
> ;
> exten => _.,1,Dial(Zap/g1/${EXTEN})
> ;
>
>
> How do I invert this match examination to make it go most- to
> least-specific execution?
>
> JT
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users