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@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/ _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users