[asterisk-users] How to encode plus sign in REGEX function in dialplan?
Olivier
oza.4h07 at gmail.com
Mon Nov 9 08:54:37 CST 2015
2015-11-09 15:06 GMT+01:00 Recursive <lists at binarus.de>:
> On 06.11.2015 14:06, Rusty Newton wrote:
> >
> > It should be able to handle typical regular expression. I don't see
> > anything wrong with what you are doing. Please file a bug at
> > issues.asterisk.org/jira. Do include a debug log on the issue
> > captured when Asterisk attempts to execute these extensions.
> >
> > https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information
> >
>
> Thanks to your above hint, I have reviewed my dialplan again and have
> found a bug in it. After correcting my dialplan, it turned out that you are
> right (of course): REGEX now behaves like expected.
>
How would you then recommand to deal with + sign in REGEX ?
Something like 1) ?
1) same => n(A1), GotoIf($[${REGEX("^\\+49.*" ${EXTEN})}]?:A2)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151109/07425a66/attachment.html>
More information about the asterisk-users
mailing list