[SR-Users] Select last URI from Record-Route
Alex Balashov
abalashov at evaristesys.com
Fri Mar 16 16:43:02 CET 2018
I do have to wonder: what do you need to do that for? What are you
trying to accomplish?
On Fri, Mar 16, 2018 at 11:40:01AM -0400, John Petrini wrote:
> 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
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
More information about the sr-users
mailing list