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