[SR-Users] Replace header value in failure_route
Grant Bagdasarian
GB at cm.nl
Wed Oct 2 15:55:43 CEST 2013
Hello,
I'm trying to replace the value of a custom header in the failure_route, using the subst function.
subst('/^X-Dispatcher:(.+)$/"X-Dispatcher: \$(avp(dsattrs){param.value,dispatcher})"/i');
I also tried it with the subst_hf, but that didn't work either.
I'm getting the following message:
5(19536) DEBUG: <core> [re.c:454]: subst_run(): subst_run: running. r=1
5(19536) DEBUG: textops [textops.c:681]: subst_f(): lst was (nil)
Does anyone have an idea what I'm doing wrong here? I'm not a regex expert, so I'm guessing there is an error in the pattern.
Regards,
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131002/e9c3663b/attachment.html>
More information about the sr-users
mailing list