[Kamailio-Users] Identifying branch in ONREPLY-ROUTE?

Alex Balashov abalashov at evaristesys.com
Mon Aug 11 13:01:06 CEST 2008


Alex Balashov wrote:
> 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?

Ditto for trying to do anything with $hdr(Via).


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599




More information about the sr-users mailing list