Re: [SR-Users] Modifying $pU

2010-09-22 Thread dotnetdub
On 21 September 2010 23:53, Daniel-Constantin Mierla wrote: > > > On 9/22/10 12:49 AM, Alex Balashov wrote: > >> On 09/21/2010 04:47 PM, dotnetdub wrote: >> >> I also looked at using re.subst on $pU but can't get it to work. >>> >>> What is the best way to achieve what I'm trying to do? >>> >> >>

Re: [SR-Users] Modifying $pU

2010-09-21 Thread Daniel-Constantin Mierla
On 9/22/10 12:55 AM, Iñaki Baz Castillo wrote: 2010/9/21 dotnetdub: This substitution works fine but when I read $pU it still has the leading 0 Yes, the change is just applied when the message leaves the proxy. ... and if one needs the change to be visible in the config before sending to net

Re: [SR-Users] Modifying $pU

2010-09-21 Thread Iñaki Baz Castillo
2010/9/21 dotnetdub : > This substitution works fine but when I read $pU it still has the leading 0 Yes, the change is just applied when the message leaves the proxy. > What is the best way to achieve what I'm trying to do? I recommedn you to first delete the PPI header with hf_remove("P-Prefer

Re: [SR-Users] Modifying $pU

2010-09-21 Thread Daniel-Constantin Mierla
On 9/22/10 12:49 AM, Alex Balashov wrote: On 09/21/2010 04:47 PM, dotnetdub wrote: I also looked at using re.subst on $pU but can't get it to work. What is the best way to achieve what I'm trying to do? I would extract a substring based on length. Intermediate (first) variable 'pu_len' i

Re: [SR-Users] Modifying $pU

2010-09-21 Thread Alex Balashov
On 09/21/2010 04:47 PM, dotnetdub wrote: I also looked at using re.subst on $pU but can't get it to work. What is the best way to achieve what I'm trying to do? I would extract a substring based on length. Intermediate (first) variable 'pu_len' is required because transformations cannot be