Daniel-Constantin Mierla wrote:
you found a good solution and with transformations should be easy to get. honestly I had no need so far and I think the right approach is to ma $T_branch_index return the branch of the processed reply.
The problem is that $T_branch_idx has no validity outside of a BRANCH-ROUTE.
Also, as far as transformations, I can't seem to get the following to work with textops:
if(search("^Via:.*branch=([a-zA-Z0-9.-_]+)")) { xlog("L_INFO", " Via: \1 \n"); }
It matches, but, how do I display the matched regex atom? \1 works in substitutions, but not here evidently?