[asterisk-dev] ast_config and character escaping

st41ker st41ker at st41ker.net
Tue Sep 7 01:30:02 CDT 2010


Hello,

I'm using ast_variable_browse to retrieve variables from some text 
config file.
I need to load variables containing regexp values, but it seems like 
something is breaking them.

Sample variable from config file:

^1(.*)=(.*)/09\&

In the output ast_variable I'm getting escaped ('\\&') value.

When I use:

^1(.*)=(.*)/09\1

everything is fine.

I've looked almost everywhere in the related code and found nothing that 
can help in resolving the issue.
Please, could someone direct me in the right way?

Thank you,
Alexander.



More information about the asterisk-dev mailing list