[Voiceglue] VoiceGlue urlencoding '?' as %3F results in HTTP 404 response for Vxml page fetch

Chapman, Steve G. steve.chapman at nz.unisys.com
Thu Feb 11 11:03:07 UTC 2010


I have a problem getting voiceglue to fetch a vxml page from a web app (deployed on a remote server under JBOSS/Tomcat).

I have voiceglue 0.11 on RHEL5.

It seems no matter how I provide the vxml url to voiceglue it always urlencodes the parameter code '?' in the URL which results in a HTTP 404 response.

e.g. in asterisk extensions.conf :

exten => dialog,n,Agi(agi://localhost/url=${vxmlurlContext}?${vxmlurlParam})

The asterisk log shows a correctly formatted url with parameter part encoded:

[Feb 11 17:13:35] VERBOSE[28945] logger.c:     -- Executing [dialog at from-sip:6] [1;36;40mAGI[0;37;40m("[1;35;40mSIP/2002-00000015[0;37;40m", "[1;35;40magi://localhost/url=http://129.223.122.177:7001/NotificationPlayer/voiceapp?notificationInfoURL=http%3A%2F%2F129.223.122.177%3A7001%2Fns%2Fnotificationinfo%3FSSID%3D2293Flow2296[0;37;40m") in new stack
[Feb 11 17:13:35] VERBOSE[28945] logger.c:     -- Playing 'voiceglue/tts/A_serious_error_has_occured___Exiting_' (escape_digits=0123456789*#) (sample_offset 0)
[Feb 11 17:13:38] VERBOSE[28945] logger.c:     -- <SIP/2002-00000015>AGI Script agi://localhost/url=http://129.223.122.177:7001/NotificationPlayer/voiceapp?notificationInfoURL=http%3A%2F%2F129.223.122.177%3A7001%2Fns%2Fnotificationinfo%3FSSID%3D2293Flow2296 completed, returning 0

Yet a tcpdump on the target server shows the url in the http request to be fully urlencoded except for the '/''s which actually decoded in the parameter portion even though they were provided encoded:

GET /NotificationPlayer/voiceapp%3FnotificationInfoURL%3Dhttp%3A//129.223.122.177%3A7001/ns/notificationinfo?SSID=2293Flow2296

Can anyone point me at a solution or even the component in voiceglue that does the encodeing and vxml page fetch?

Thanks
Steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100211/a9954e2d/attachment.html>


More information about the Voiceglue mailing list