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