[SR-Users] Decoding HTTP URLs in event_route[xhttp:request]
Peter Dunkley
peter.dunkley at crocodilertc.net
Thu Sep 19 22:36:57 CEST 2013
Hello,
I was wondering if there was an easy way to decode HTTP URLs in
event_route[xhttp:request]?
For example, it would be good to be able to breakdown a URL like:
/sip?apiKey=abcdefg&username=1234567890:alice at example.com
into "path/on/server" ("/sip" in this case) and a set of parameters. For
the parameters something like the {param.value,name} transformation for SIP
header parameters would be ideal (which works perfectly for picking values
out of HTTP Cookie: headers).
I noticed that there is already an {s.urldecode.param} transformation in
the PV module but I couldn't find any documentation for it in the wiki and
looking at the code it doesn't appear to do this anyway.
Regards,
Peter
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130919/b65f2e1c/attachment-0001.html>
More information about the sr-users
mailing list