[sr-dev] [tracker] Comment added: bug in dialplan or core re.c

Daniel-Constantin Mierla miconda at gmail.com
Sat Feb 26 09:51:22 CET 2011


Hello,

On 2/26/11 4:27 AM, Juha Heinanen wrote:
> i found and fixed the bug in processing dialplan replacement
> expressions.  now repl_exps that contain normal chars and back
> references \d (REPLACE_NMATCH) work ok.
>
> i have not tested with REPLACE_CHAR, REPLACE_URI, REPLACE_SPEC repl_exp
> tokens and don't even know how they are written in repl_exp.  however,
> their processing does not include any variables, whose values i modified
> in the code, so if these worked before, they should work also after my
> modifications.
>
> i committed the fix to master, but not to 3.1 yet.  i'll wait a few days
> for comments and if no one objects, i'll cherry pick the commit to 3.1.
thank you for taking care of it.

A variable is written as usual: $name or $name(abc)
The r-uri is afaik: \u
The char should be any other \x than \u and \0 ... \9

Cheers,
DAniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-dev mailing list