[Freeswitch-users] mod_httapi problem when trying to play an audio hosted in S3 amazon cloud

Anthony Minessale anthony.minessale at gmail.com
Fri Oct 5 21:33:07 MSD 2012


Not on the version you have but if you update to latest GIT HEAD you could
try a patch that adds a nohead=true param you can set in the same place you
set ua and ext that should skip over the head check.

Really its a bug for amazon that they don't let you do cache-control
properly.


On Fri, Oct 5, 2012 at 11:35 AM, Leonardo N. S. Pereira <
leonardo at daitangroup.com> wrote:

>  Well, I think I found the problem, but I still don't know how to fix it.
> The problem is that the HTTP request to Amazon is going with the method
> HEAD instead of GET.
> Is there a way to force mod_httapi to use GET?
>
>
>
> On 10/05/2012 11:06 AM, Leonardo N. S. Pereira wrote:
>
> I had no lucky trying to set the "ext" and/or "ua" :-(
> This is one of the command I tried via socket interface:
>
>  api uuid_broadcast e75e6d4e-732f-4385-962a-0e4b9038d940
> http://(ext=mp3,ua='AppleWebKit/537.13')catapult-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349446514&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=3qc1pHwXqB71b0E4YOVJW62tvS8%3D<http://%28ext=mp3,ua=%27AppleWebKit/537.13%27%29catapult-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349446514&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=3qc1pHwXqB71b0E4YOVJW62tvS8%3D>both
>
>
> This is the log:
>
>  2012-10-05 14:03:43.953669 [DEBUG] switch_event.c:1477 Parsing variable
> [ext]=[mp3]
> 2012-10-05 14:03:43.953669 [DEBUG] switch_event.c:1477 Parsing variable
> [ua]=[AppleWebKit/537.13]
> 2012-10-05 14:03:43.953669 [ERR] mod_httapi.c:2545 File at url [
> http://catapult-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349446514&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=3qc1pHwXqB71b0E4YOVJW62tvS8%3D]
> is unreachable!
>
> The URL should be reachable now, in case you want to give it a try.
> Thanks in advance again,
> Leonardo
>
>
> On 10/04/2012 05:34 PM, Leonardo N. S. Pereira wrote:
>
> Hi.
> I'm having problem when trying to play an audio hosted in S3 Amazon cloud
> The MP3 URL is:
> *
> *
>
> *h**ttp://
> test-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349381157&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=bnJgjbnxqlgsdYIcKIbYUa9gqao%3D
> *
>
> The result is:
>
> 2012-10-04 20:27:28.891298 [DEBUG] switch_ivr.c:605
> sofia/external/+15752222222 at 67.231.8.195 Command Execute playback(
> http://test-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349383281&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=bLsres02Vy%2FH9zdwfFDeYyaRNxE%3D
> )
> EXECUTE sofia/external/+15752222222 at 67.231.8.195 playback(
> http://test-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349383281&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=bLsres02Vy%2FH9zdwfFDeYyaRNxE%3D
> )
> 2012-10-04 20:27:28.903180 [ERR] mod_httapi.c:2545 File at url [
> http://test-media-dev.s3.amazonaws.com/u-asevyeard22pl6sc2z4knzi%2Fblind_willie.mp3?Expires=1349383281&AWSAccessKeyId=AKIAJKQT6QPSI3BXJJ4A&Signature=bLsres02Vy%2FH9zdwfFDeYyaRNxE%3D]
> is unreachable!
>
>
> If I use the Browser with same URL, I'm able to listen to the sample audio.
>
> Any idea about what is wrong?
>
> Thanks in advance,
> Leonardo
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121005/0b5db152/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list