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:al...@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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to