[SR-Users] string manipulation

Sergiu Pojoga pojogas at gmail.com
Thu Oct 3 15:57:07 CEST 2019


Parsing the $hu within the xhttp:request even route would offer what you
need. Some of the most interesting variable are:

URL=$hu
PATH=$(hu{url.path})
QUERY=$(hu{url.querystring})

Cheers.

On Thu, Oct 3, 2019 at 9:20 AM David Villasmil <
david.villasmil.work at gmail.com> wrote:

> Hello guys,
>
> I'm receiving an http request via xhttp, something like:
>
> http://ip.com/request?value1=123&value2=2313&value3...
>
> Is it possible to get those values somehow?
>
> I also have a suri coming from a ds_select in _dsdst_, I need to get the
> host from that _dsdst_
>
> Any way of doing this?
>
> Thanks all
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191003/c5229d94/attachment.html>


More information about the sr-users mailing list