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.

The reason why I even have thought of REGEX not behaving like expected: The 
other day I have read some tutorials / articles about variables and strings in 
Asterisk dialplans. One of them (I really can't remember which one) claimed 
that there were problems with special characters in strings, for example with 
the dollar character ($). They recommended to do something like the following 
*if* such problems would show:

Set(DOLLAR=$)
... head_of_string${DOLLAR}tail_of_string

They also claimed that there were other problematic characters which could be 
handled the same way. That seemed logic to me and lead me into thinking that 
the pattern string in the REGEX call could be affected by this; hence my 
initial post.

I am apologizing that I haven't found the bug in my dialplan at an earlier time.

Best regards,

Recursive

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

Reply via email to