[SR-Users] Select last URI from Record-Route
John Petrini
jpetrini at coredial.com
Fri Mar 16 16:40:01 CET 2018
Hello list,
Does anyone how I can extract the last URI from a compact Record-Route
header?
I've tried using a negative index in the parameter of my select but it
returns the first URI in the header instead of the last.
$var(rr_last_uri) = @record_route.uri[-1];
Maybe there's another way instead of using selects?
Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180316/fcace180/attachment.html>
More information about the sr-users
mailing list