[asterisk-users] Issue with (pattern) matching extension

Danny Nicholas danny at debsinc.com
Thu Apr 29 12:09:38 CDT 2010


It's a pattern matching thing;  the asterisk module "knows" how to process
stdexten, but thinks that "n" or "N" is a digit substitution.  When "n" or
"N" is "escaped" ([n] or [N]) the program knows to treat it as a literal and
not a pattern match.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philip
Prindeville
Sent: Thursday, April 29, 2010 11:47 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Issue with (pattern) matching extension

On 4/29/10 4:22 AM, Jim Dickenson wrote:
> I banged my head with a like problem a few days ago.
>
>    
>>> exten =>  _fn-.,1,NoOp(ISN: ${DIALSTATUS})
>>>        
> n does not mean the letter n in a pattern it has a special meaning!
>    

That's capital N, isn't it?

Also, the prefix "_stdexten-." seems to work fine in the [stdexten] 
context, so I'm not sure what's different here.


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




More information about the asterisk-users mailing list