Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Peter Dunkley
Hello, I have added a transformation to the xhttp module that breaks a URL into a path and a querystring - {url.path} - {url.querystring} I have also added an optional delimiter parameter to the {param.} transformations. Regards, Peter On 22 September 2013 14:55, Ovidiu Sas

Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Ovidiu Sas
Great! Now don't forget to update the wiki: - http://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations and create the new entry for url transformations: - http://www.kamailio.org/wiki/cookbooks/devel/transformations#url_transformations Regards, Ovidiu Sas

Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Peter Dunkley
Of course I'll update the wiki. I always do when I make a change like that :-) On 25 September 2013 16:22, Ovidiu Sas o...@voipembedded.com wrote: Great! Now don't forget to update the wiki: - http://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations

Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-22 Thread Peter Dunkley
Hello, Does anyone have any ideas about this? If not it's something I want to try and do before the freeze (any suggestions as to how would be appreciated) as it will be a nice finishing touch to the WebSocket/outbound/stun/auth_ephemeral stuff I've worked on over the last couple of releases.

Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-22 Thread Ovidiu Sas
You can use {s.select,index,separator} to extract the path and the parameters into two different variables. Or here you could create a new url transformation to break it in two: - {url.path} - {url.searchpath} After that, the existing code for param transformation may be reused (by making the

[SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-19 Thread Peter Dunkley
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=abcdefgusername=1234567890:al...@example.com into path/on/server (/sip in this case) and a set of parameters. For