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


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

2006-01-07 Thread Thomas
Hi,

I have a problem with pattern matching N what should digit 2 to 9
in Asterisk 1.2.1.

If I dial 220 I did not get an PlayBack of invalid. Asterisk jumps into the 
context dialout and find there an matching _2. and is using this. 

If I change _NNN to _XXX everything works fine. If I dial 220 I hear playtones 
invalid. It seemed to be that pattern matching with N is not working as 
designed.



Any ideas?

best regards
Thomas



extensions.conf
-
[internal]
#include "/etc/asterisk/x_internal.conf"


x_internal.conf
-

exten => 210,1,Macro(internalsqldial_stand,${EXTEN})

exten => _NNN,1,NoOp(wrong number dialed)
exten => _NNN,n,PlayBack(invalid)
exten => _NNN,n,Hangup()

include => dialout



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