[Voiceglue] VoiceGlue urlencoding '?' as %3F results in HTTP 404 response for Vxml page fetch
James Green
james.green at mjog.com
Thu Feb 11 11:19:13 UTC 2010
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%2FCallGener
ator.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/NotificationPl
ayer/voiceapp?notificationInfoURL=http%3A%2F%2F129.223.122.177%3A7001%2F
ns%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/voice
app?notificationInfoURL=http%3A%2F%2F129.223.122.177%3A7001%2Fns%2Fnotif
icationinfo%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.12
2.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/20100211/e37dbf5b/attachment.html>
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.435 / Virus Database: 271.1.1/2681 - Release Date: 02/11/10 07:35:00
More information about the Voiceglue
mailing list