Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-18 Thread Peter Dunkley
Hello, There should be no '' around the delimiter. That's why the documentation says "single character". The '' in the documentation are there because the convention in the documentation is to surround literal examples in '' - you can see this throughout that wiki-page. I neither expected comma

Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-18 Thread Seudin Kasumovic
Hi Peter, I tried transformation {pram.value,name['delimiter']} for 4.1.0-pre0: $(*avp*(my_var){param.value, a, ';'}) and got parsing error: 0(32237) ERROR: pv [pv_trans.c:2386]: tr_parse_paramlist(): invalid separator in transformation: value,a,';'} 0(32237) ERROR: [pvapi.c:1586]: tr_lookup()

Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-18 Thread Seudin Kasumovic
Hi Daniel, It works, many thanks. Seudin On Thu, Oct 17, 2013 at 5:37 PM, Daniel-Constantin Mierla wrote: > Hello, > > iirc, the parser beneath is the one used for headers and I think the > parser stops because comma is separator for headers. > > Can you try with parameter values in between

Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-18 Thread Seudin Kasumovic
Hello, will try this feature... thank you Peter. On Thu, Oct 17, 2013 at 5:36 PM, Peter Dunkley < peter.dunk...@crocodilertc.net> wrote: > Hello, > > Parameters to SIP headers are ';' separated. ',' is used to concatenate > multiple headers onto a single line. The {param...} transformation i

Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-17 Thread Daniel-Constantin Mierla
Hello, iirc, the parser beneath is the one used for headers and I think the parser stops because comma is separator for headers. Can you try with parameter values in between quotes? Cheers, Daniel On 10/17/13 5:04 PM, Seudin Kasumovic wrote: Hi, Transformation {param.value, param_name} ret

Re: [SR-Users] Parameters list transformations comma and semi column conflict

2013-10-17 Thread Peter Dunkley
Hello, Parameters to SIP headers are ';' separated. ',' is used to concatenate multiple headers onto a single line. The {param...} transformation is intended to process SIP header parameters. However, there is a new feature in Kamailio 4.1 (currently in a pre-release/testing phase) that allows

[SR-Users] Parameters list transformations comma and semi column conflict

2013-10-17 Thread Seudin Kasumovic
Hi, Transformation {param.value, param_name} returns incomplete or empty values when parameter value contains comma (,). See next example: *$avp*(my_var)="a=val_a1,val_a2,val_a3;b=val_b"; in next transformations: $(*avp*(my_var){param.value, a}) returns 'val_a1' $(*avp*(my_var){param.value, b}