[SR-Users] any easy way to access record-route URIs?

jh at tutpro.com jh at tutpro.com
Fri Sep 21 10:27:30 CEST 2012


> as i read in pv wiki and tested, $(hdr(Record-Route)[index]) returns ALL
>> uris in r-r header number 'index'.  what i tried to achieve, is to get
>> from record-route or route headers uri number 'index' no matter how many
>> uris are on one single header.
> yes, probably you can script it in config file, searching for ',', then
> using {s.select,index,,}.

that is what i did in the first place, but then went and asked if there is
an easy way to achieve the same.

But have you checked the record_route select?
> Isn't giving what you want?

i have not managed to make the select work at all.  for example,

            $var(foo) = @msg.route.[0].nameaddr.uri;

gives me parse errors.

-- juha




More information about the sr-users mailing list