[asterisk-dev] Dialplan oddities with recent Asterisk ?

Andrew Kohlsmith (Mailing List Account) aklists at mixdown.ca
Tue Feb 9 08:21:41 CST 2010


On February 9, 2010 07:09:10 am Klaus Darilion wrote:
> Indeed interesting. We could fix this by having better pattern. E.g. '.'
> and '!' unfortunately accept all characters. We would need something
> like in regexps, e.g: _+4312345[0-9]*
> 
> Another approach would be a configurable whitelist or blacklist for
> extension characters somewhere in core.

Is '&' ever an acceptable character in a SIP URI? If so, Asterisk needs to 
escape these things. If not, would it not be prudent to have the dialplan 
parser simply not accept invalid characters?

Personally I think '.' and '!' need to be a little smarter, but smarter 
depends on whether '&' (and others? maybe ',' and '|' as well) can cause 
trouble in dialplans.

-A.



More information about the asterisk-dev mailing list