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@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 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:

http://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@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@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900