o Juha Heinanen on 09/25/2013 06:54 AM:
> Andreas Granig writes:
> 
>>> i tried to load sbc regex mapping file that had line
>>>
>>> ^sip:(+*)$=>P-Asserted-Identity: <sip:\1>
>>
>> You probably want something like "^sip:(.*)$" in the matching part.
> 
> yes, but by reading the code, it turned out that variables cannot be
> used on the right hand side.
> 
> i once implemented pcre version of kamailio dialplan module regex code
> and that does support variable substitution.  would it be ok to use pcre
> also in sems?
regex(3) (regcomp, regexec, ...) supports substring match as well,
it's just not enabled in the code. in AmUtils
read_regex_mapping/run_regex_mapping remove REG_NOSUB from the cflags,
run regexec with nmatch and pmatch, and use the results to replace \n
in result.

Stefan

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to