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

Chapman, Steve G. steve.chapman at nz.unisys.com
Fri Feb 12 08:21:12 UTC 2010


Thanks for your reply James.

However I've already tried urlencoding it in extensions.conf and the result is the same. BTW, the example you provide does not actually include a parameter i.e. ? or %3F.

Regards
Steve

________________________________
From: voiceglue-bounces at voiceglue.org [mailto:voiceglue-bounces at voiceglue.org] On Behalf Of James Green
Sent: Friday, 12 February 2010 12:19 a.m.
To: General discussion about voiceglue
Subject: Re: [Voiceglue] VoiceGlue urlencoding '?' as %3F results in HTTP404 response for Vxml page fetch

I think the ? needs urlencoding at the extensions.conf level.

Ours looks like this:

exten => s,n,AGI(agi://localhost/url=http%3A%2F%2Fvoice.server%2Fvxml%2FCallGenerator.vxml.php/${message_id})
The string after url= then gets decoded by the AGI module and fired off. That's my reading of things anyway.


________________________________
From: voiceglue-bounces at voiceglue.org [mailto:voiceglue-bounces at voiceglue.org] On Behalf Of Chapman, Steve G.
Sent: 11 February 2010 11:03
To: voiceglue at voiceglue.org
Subject: [Voiceglue] VoiceGlue urlencoding '?' as %3F results in HTTP 404 response for Vxml page fetch
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


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.435 / Virus Database: 271.1.1/2680 - Release Date: 02/11/10 07:35:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100212/bf04cc58/attachment.html>


More information about the Voiceglue mailing list