Hi,

I used this encoding:

URLEncoder.encode(url_parameters, "UTF-8"); to encode the URL parameters.

here is the url i got:

URL = http://storage.googleapis.com/myBucket/file.wav?
GoogleAccessId%3D703391026438d3tc85gd1jiu6f32mckumln3b2gc5qhk%40developer.gserviceaccount.com%26
Expires%3D1408970638639%26
Signature%3DF3zM%2Fkr2mKqulgrdp1F6Q9Gdf5rKvy7GHrWOW5GMU
xxxxxxxxxxxXxxxxxxXXXXXXXXjXtFFRBJp4a%2BfhrQJcrs4p%2FZhsSdB
kyet8qVwf%2BRUN8I0ROA%2FNpJ%2B0T0eEBqP2PNFPHzI8GKQWm7wI6mmZDwKtgUT3A%2BVXGV74nUqHrNY%3D

But now i get this exception:

2014-08-25 15:53:35.138408 [ERR] mod_httapi.c:2723 Error checking file cache (check permissions)

that's all i see in the logs...is this related to the file name size? is there a limitation or is it something else?

Thanks,
Snabel 


---------- Forwarded message ----------
From: Brian West <brian@freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Date: Mon, 25 Aug 2014 07:07:57 -0500
Subject: Re: [Freeswitch-users] freeswitch stream remote audio file
Yes you should URL encode that.  @ would become %40


On Mon, Aug 25, 2014 at 2:02 AM, Snabel Kabiya <snabel@lexifone.com> wrote:
Hi,

i tried removing each parameter to see which one is causing the error.
when i removed this parameter:

GoogleAccessId=xxx-xxx@developer.gserviceaccount.com

freeswitch was able do download and play the file. are there characters in this parameter which are causing session:streamFile() failure?
should i escape some characters? if so which and how?

this parameter is mandatory so i can't just remove it from the link. any ideas how to solve this?

Thanks,
Snabel

---------- Forwarded message ----------
From: Snabel Kabiya <snabel@lexifone.com>
To: freeswitch-users@lists.freeswitch.org
Cc: 
Date: Mon, 25 Aug 2014 09:41:52 +0300
Subject: Re: [Freeswitch-users] freeswitch stream remote audio file
Hi,

i generated the link using the instructions here:

 https://developers.google.com/storage/docs/accesscontrol#Signed-URLs
 http://stackoverflow.com/questions/17508285/gae-application-needing-to-create-expiring-signed-urls-to-google-cloud-storage

But the link i generated is valid, I paste the signed URL into a web browser and i downloaded the file.
that's why i think it's maybe a special characters issues. some characters are causing the
session:streamFile() method to return this error.

Thanks,
Snabel

////////////////////////////////////////////////////////////////////////////////////////

Hi,

I'm saving the remote audio files on google cloud storage. i want to play these files in freeswitch.

when i use: mediaLink = "http://storage.googleapis.com/myBucket/file.wav";

session:streamFile(mediaLink);

it works great.

But when i use signed urls

mediaLink = "http://storage.googleapis.com/myBucket/file.wav?GoogleAccessId=xxx-xxx@developer.gserviceaccount.com&Expires=1408903962590&Signature=xxb%2Fx%2FDfGJlrUuz0%2F6kA6ormmReW6oN%2F0xxy3%2BwWxXc%3D"; session:streamFile(mediaLink);

i get this error:

2014-08-24 20:42:48.770818 [ERR] mod_httapi.c:2696 File at url [http://storage.googleapis.com/myBucket/file.wav?GoogleAccessId=xxx-xxx@developer.gserviceaccount.com&Expires=1408903962590&Signature=xxb%2Fx%2FDfGJlrUuz0%2F6kA6ormmReW6oN%2F0xxy3%2BwWxXc%3D] is unreachable!


is there a special characters issue in the link?


Thanks,

Snabel

---------- Forwarded message ----------
From: Yosi Taguri <yosi@taguri.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Date: Sun, 24 Aug 2014 21:29:27 +0300
Subject: Re: [Freeswitch-users] freeswitch stream remote audio file
how did you generate the link?


On Sun, Aug 24, 2014 at 9:00 PM, Snabel Kabiya <snabel@lexifone.com> wrote:

Hi,

I'm saving the remote audio files on google cloud storage. i want to play these files in freeswitch.

when i use: mediaLink = "http://storage.googleapis.com/myBucket/file.wav";

session:streamFile(mediaLink);

it works great.

But when i use signed urls

mediaLink = "http://storage.googleapis.com/myBucket/file.wav?GoogleAccessId=xxx-xxx@developer.gserviceaccount.com&Expires=1408903962590&Signature=xxb%2Fx%2FDfGJlrUuz0%2F6kA6ormmReW6oN%2F0xxy3%2BwWxXc%3D"; session:streamFile(mediaLink);

i get this error:

2014-08-24 20:42:48.770818 [ERR] mod_httapi.c:2696 File at url [http://storage.googleapis.com/myBucket/file.wav?GoogleAccessId=xxx-xxx@developer.gserviceaccount.com&Expires=1408903962590&Signature=xxb%2Fx%2FDfGJlrUuz0%2F6kA6ormmReW6oN%2F0xxy3%2BwWxXc%3D] is unreachable!


is there a special characters issue in the link?


Thanks,

Snabel