[Voiceglue] Fwd: Propagating HTTP session to <audio> tag requests

Archie Cobbs archie at dellroad.org
Fri Feb 6 14:28:54 EST 2009


Resending due to previous email delivery problems...

-Archie

---------- Forwarded message ----------
From: Archie Cobbs <archie at dellroad.org>
Date: Thu, Feb 5, 2009 at 11:10 AM
Subject: Propagating HTTP session to <audio> tag requests
To: General discussion about voiceglue <voiceglue at voiceglue.org>


When voiceglue downloads an audio file on behalf of an <audio> tag, which is
done via wget, it does not propagate any cookies associated with the
containing VXML document's HTTP session.

With wget, cookies can be configured easily using the --load-cookies command
line flag. So one half of solving this problem is easy. However, I haven't
looked into how to extract the cookies from whatever "web browser" voiceglue
is using to download the VXML files.

This matters to us because we are dynamically generating audio files at
runtime (pulling them from a a database), and we need to associate these
requests with the same HTTP session that is getting the VXML documents for
security reasons.

Because of the lack of cookie propagation, we are using URL-rewriting so end
up with tags like this in our VXML:

   <audio src="/ivr/audio.jsp;jsessionid=KjJDSJjdj2Jd?msgid=123456">

This almost works :-) The problem now is that when wget saves the file, the
name of the file has the jsessionid part stripped out (in the above example,
the filename ends up being "audio.jsp?msgid=123456"). I assume this is a
"feature" of wget. But the result is that voiceglue cannot find the file
because of the name change, so the audio doesn't play.

So consider this a two-part bug report:

   1. (Short term) A workaround is needed for wget's stripping of the
   jsessionid from the audio URL
   2. (Long term) Propagate cookies associated with the session to wget when
   downloading audio files

Thanks,
-Archie

-- 
Archie L. Cobbs




-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090206/31c12aba/attachment.html 


More information about the Voiceglue mailing list