[asterisk-dev] i extension does not match on initial context - bug or not?

Leif Madsen leif.madsen at asteriskdocs.org
Thu Jan 8 18:00:37 CST 2009

I would tend to agree here. Plus the fact the functionality to create a 
catch-all already exists in current dialplan.

Although I will correct the example below (_[0-9*+].) with the following:


The ! means match on 0 or more additional characters, which would mean a 
single character could match. With the period (.), you would need at 
least 2 characters.

Leif Madsen.

Nir Simionovich wrote:
> Hmmmm....
> IMHO, I don't believe that a catch all extension is something that 
> Asterisk should have, as it is a possible breach of security. Same as 
> applies to the ever dreaded _. combo.
> If you need something that really goes about and requires you to match
> the special characters in the front, then you can do something like this:
> _[0-9*+]. this way, you have a true catch all phrase. However, it is the 
> programmers responsibility to verify that the catch all is implemented 
> correctly in the dialplan. I would rather have the dialplan exit with a 
> disconnect, than to have a default catch all that may introduce a 
> security issue.
> I know this sounds a little purist, but hey, we do need to cover our 
> rear somehow.

More information about the asterisk-dev mailing list