[SR-Users] Select last URI from Record-Route
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Mon Mar 19 10:40:01 CET 2018
On 03/19/2018 10:37 AM, Andrew Pogrebennyk wrote:
> On 03/16/2018 05:07 PM, John Petrini wrote:
>> The simple answer to that is it's a last ditch effort to look up an AOR
>> record on a reply but it's part of other logic we use to establish
>> direct media.
>
> try with $(hdr(Record-Route)[-1]).. it works for us (though, with
> another header name).
> Andrew
>
Considering you might have multiple header fields all comma-separated in
one header, to access the last uri you'd have to do something like:
$(hdr(Record-Route)[-1]{s.select,-1,,}{nameaddr.uri});
Andrew
More information about the sr-users
mailing list