---------- 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 fileYes you should URL encode that. @ would become %40
On Mon, Aug 25, 2014 at 2:02 AM, Snabel Kabiya <snabel@lexifone.com> wrote:
when i removed this parameter:Hi,i tried removing each parameter to see which one is causing the error.
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 fileHi,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 filehow 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