Re: [SR-Users] Replace header value in failure_route

2013-10-03 Thread Grant Bagdasarian
Subject: Re: [SR-Users] Replace header value in failure_route Do you need the regex? Does remove/append_hf work? eg: remove_hf(X-Dispatcher); append_hf(X-Dispatcher: $(avp(dsattrs){param.value,dispatcher})); regards klaus On 02.10.2013 15:55, Grant Bagdasarian wrote: Hello, I'm trying

Re: [SR-Users] Replace header value in failure_route

2013-10-03 Thread Grant Bagdasarian
, 2013 9:11 AM To: Klaus Darilion; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replace header value in failure_route Hello Klaus, No, removing the header doesn't work either. Appending it does, but then I get to X-Dispatcher headers. The second one with the correct value. The regex

Re: [SR-Users] Replace header value in failure_route

2013-10-03 Thread Olle E. Johansson
3 okt 2013 kl. 09:38 skrev Grant Bagdasarian g...@cm.nl: Could someone explain to me what the branch_routes are used for? Does it have to do with forking? Branch routes are executed after you've relayed with tm, like tm_relay() and before we send out on the network, once per branch. The

Re: [SR-Users] Replace header value in failure_route

2013-10-03 Thread Grant Bagdasarian
Of Olle E. Johansson Sent: Thursday, October 3, 2013 9:44 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replace header value in failure_route 3 okt 2013 kl. 09:38 skrev Grant Bagdasarian g...@cm.nl: Could someone explain to me what the branch_routes are used for? Does

[SR-Users] Replace header value in failure_route

2013-10-02 Thread Grant Bagdasarian
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:

Re: [SR-Users] Replace header value in failure_route

2013-10-02 Thread Klaus Darilion
Do you need the regex? Does remove/append_hf work? eg: remove_hf(X-Dispatcher); append_hf(X-Dispatcher: $(avp(dsattrs){param.value,dispatcher})); regards klaus On 02.10.2013 15:55, Grant Bagdasarian wrote: Hello, I’m trying to replace the value of a custom header in the failure_route,