Hello,
On 9/20/12 6:26 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
$(hdr(Record-Route)[index]{nameaddr.uri}) - this
is a form of getting it
via PV.
daniel,
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,,}. But have you checked the record_route select?
Isn't giving what you want?
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -
http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
http://asipto.com/u/katu