[Freeswitch-users] freeswitch stream remote audio file

Snabel Kabiya snabel at lexifone.com
Mon Aug 25 10:41:52 MSD 2014


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]
<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



On Sun, Aug 24, 2014 at 11:51 PM, <
freeswitch-users-request at lists.freeswitch.org> wrote:

> Send FreeSWITCH-users mailing list submissions to
>         freeswitch-users at lists.freeswitch.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> or, via email, send a message with subject or body 'help' to
>         freeswitch-users-request at lists.freeswitch.org
>
> You can reach the person managing the list at
>         freeswitch-users-owner at lists.freeswitch.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of FreeSWITCH-users digest..."
>
> Today's Topics:
>
>    1. Re: Changing display name in From header ? (Du?an Dragi?)
>    2. Re: freeswitch stream remote audio file (Yosi Taguri)
>    3. Re: Problem Registering Gateway (Ave ebock)
>
>
> ---------- Forwarded message ----------
> From: "Dušan Dragić" <dragic.dusan at gmail.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Date: Sun, 24 Aug 2014 21:48:56 +0200
> Subject: Re: [Freeswitch-users] Changing display name in From header ?
> Try with sip_from_display and sip_invite_from_uri instead of
> sip_from_uri, something like:
> sip_from_display=Anonymous
> sip_invite_from_uri=<sip:anonymous at anonymous.invalid>
> origination_caller_id_name=9094445555
> origination_caller_id_number=9094445555
>
> On 24 August 2014 19:02, Tim Smith <gb10hkzo-fs1 at yahoo.co.uk> wrote:
> > Hi,
> >
> > What magic needs to be done to change the display name in the From
> header ?
> >
> > I've tried outbound_caller_name, effective_caller_id_name and all sorts
> of other combinations under the sun and yet I can't get the Freeswitch to
> comply !!!!
> >
> > Here's what the relevant section of my XML dial plan looks like:
> >
> >
> >    <condition field="${privacy}" expression="yes" break="never">
> >         <action application="export"
> data="outbound_caller_name=Anonymous"/>
> >         <action application="export"
> data="sip_from_uri=<sip:anonymous at anonymous.invalid>"/>
> >         <action application="export" data="sip_cid_type=pid"/>
> >         <action application="export"
> data="origination_caller_id_name=${outbound_caller_id_number}"/>
> >         <action application="export"
> data="origination_caller_id_number=${outbound_caller_id_number}"/>
> >         <anti-action application="set" data="sip_cid_type=none"/>
> >        <anti-action application="set"
> data="effective_caller_id_number=${outbound_caller_id_number}"/>
> >        <anti-action application="set"
> data="effective_caller_id_name=${outbound_caller_id_name}"/>
> >     </condition>
> >
> >
> > Basically, I need the From header to look like :
> > From: "Anonymous" <sip:anonymous at anonymous.invalid>
> >
> > and PID to look like :
> >
> > P-Asserted-Identity: "9094445555" <sip:9094445555 at 1.2.3.4>
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.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
>
>
>
> --
> Dušan Dragić
>
>
>
>
> ---------- Forwarded message ----------
> From: Yosi Taguri <yosi at taguri.com>
> To: FreeSWITCH Users Help <freeswitch-users at 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 at 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]
>> <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
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
>
> --
>
> Yosi Taguri | Founder & CTO | Yalo | http://yaloapp.com
> <http://ahhhpah.com> | Mobile: +972-54-4816020 | Google Voice US Mobile: +1
> (415) 935-1126 | Email: yosi at taguri.com
>
>
>
>
> ---------- Forwarded message ----------
> From: Ave ebock <babyphatt2k at yahoo.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Date: Sun, 24 Aug 2014 13:39:06 -0700
> Subject: Re: [Freeswitch-users] Problem Registering Gateway
> Hi Steven,
> Removed REGISTER, but im still getting the issue.
> The Folks at the Provider Company havent been of any help either
>
> Thank You
>
>
>   On Sunday, August 24, 2014 3:27 PM, Steven Ayre <steveayre at gmail.com>
> wrote:
>
>
> Perhaps they don't have the REGISTER method enabled? In SIP you aren't
> required to register to make outgoing calls, only to tell the server where
> you receive incoming ones.
>
>
> On 24 August 2014 01:18, Ave ebock <babyphatt2k at yahoo.com> wrote:
>
> Hi,
> Please im trying to register a gateway that uses IP Authentication. I've
> added the IP address of my freeswitch to my service provider and i have
> this in my /sip_profiles/external/vb.xml
> <include>
>       <gateway name="vb">
>       <param name="register" value="false"/>
>       <param name="username" value="username"/>
>       <param name="password" value="password"/>
>       <param name="proxy" value="108.59.2.133"/>
>       <param name="realm" value="108.59.2.133"/>
>       <param name="expire-seconds" value="600"/>
>       <param name="retry-seconds" value="30"/>
>       <param name="ping" value="25"/>
>       </gateway>
> </include>
>
> when i do sofia profile external register vb, i get an error
>
> vb Registration Failed with status Method Not Allowed [405]
>
> Please what might i be doing wrong
>
> I have other providers that do not use IP authentication and i've got no
> issue with them.
>
> Thank you
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140825/7653a8ec/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list