Get recorded file from callcenter via API.
Hello. How to retrieve a recorded audio file by callcenter using API call to FS? Or by other meaning except using direct file access. -- Mimiko desu.
You could use an API call to make an outgoing call to a telephone, and then play the file. If you need to get the actual file, you wil need do make something on your own (as far as I know), if you don't want to do direct file access. /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Mimiko [vbvbrj@gmail.com] Skickat: den 3 februari 2013 19:24 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] Get recorded file from callcenter via API. Hello. How to retrieve a recorded audio file by callcenter using API call to FS? Or by other meaning except using direct file access. -- Mimiko desu. _________________________________________________________________________ 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 !DSPAM:510ea8bd32766001739750!
On 03.02.2013 21:49, Peter Olsson wrote:
You could use an API call to make an outgoing call to a telephone, and then play the file.
If you need to get the actual file, you wil need do make something on your own (as far as I know), if you don't want to do direct file access.
/Peter
Oh, may be starting a lua script from API CLI to get that file. :) But I am not usre if this is possible. -- Mimiko desu.
You need to be more specific... What exactly do you want to do? Play the file as audio inside a call, or grab the actual file from server? /Peter 4 feb 2013 kl. 07:06 skrev "Mimiko" <vbvbrj@gmail.com>:
On 03.02.2013 21:49, Peter Olsson wrote:
You could use an API call to make an outgoing call to a telephone, and then play the file.
If you need to get the actual file, you wil need do make something on your own (as far as I know), if you don't want to do direct file access.
/Peter
Oh, may be starting a lua script from API CLI to get that file. :)
But I am not usre if this is possible.
-- Mimiko desu.
_________________________________________________________________________ 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
!DSPAM:510f4b4f32762028220902!
On 04.02.2013 08:49, Peter Olsson wrote:
You need to be more specific... What exactly do you want to do? Play the file as audio inside a call, or grab the actual file from server?
Get the file from the recordings directory storage to play inline on a web page for listening what was recorded. For now I use direct file access from PHP sending file to client. But this breaks the security to record storage directory where both, httpd' user and FS' user have access to same directory. -- Mimiko desu.
Load mod_httapi and make the file accessible via Web server. Then you can play the file with playback using this basic syntax: <action application="playback" data="http://x.x.x.x/path/to/file.wav"/> -MC On Sun, Feb 3, 2013 at 11:35 PM, Mimiko <vbvbrj@gmail.com> wrote:
On 04.02.2013 08:49, Peter Olsson wrote:
You need to be more specific... What exactly do you want to do? Play the file as audio inside a call, or grab the actual file from server?
Get the file from the recordings directory storage to play inline on a web page for listening what was recorded.
For now I use direct file access from PHP sending file to client. But this breaks the security to record storage directory where both, httpd' user and FS' user have access to same directory.
-- Mimiko desu.
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
On 05.02.2013 18:59, Michael Collins wrote:
Load mod_httapi and make the file accessible via Web server. Then you can play the file with playback using this basic syntax:
<action application="playback" data="http://x.x.x.x/path/to/file.wav"/>
-MC
Oh? you've got the wrong idea. I don't want to playback a file from remote site to the channel. I want to download a prerecorded file by mod_callcente from FS using remote connection, maybe lua or event socket. May be there is some methods. As I know, there is an incorporated web server in FS to send commands and get status. How to use this to get files? -- Mimiko desu.
If you simply want to download the file then why not just put it into a location that can be accessed with wget? -MC On Tue, Feb 5, 2013 at 9:33 AM, Mimiko <vbvbrj@gmail.com> wrote:
On 05.02.2013 18:59, Michael Collins wrote:
Load mod_httapi and make the file accessible via Web server. Then you can play the file with playback using this basic syntax:
<action application="playback" data="http://x.x.x.x/path/to/file.wav"/>
-MC
Oh? you've got the wrong idea. I don't want to playback a file from remote site to the channel. I want to download a prerecorded file by mod_callcente from FS using remote connection, maybe lua or event socket. May be there is some methods. As I know, there is an incorporated web server in FS to send commands and get status. How to use this to get files?
-- Mimiko desu.
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
On 05.02.2013 20:27, Michael Collins wrote:
If you simply want to download the file then why not just put it into a location that can be accessed with wget? -MC
That is. That location would have to have security permission read access for other users than FS, ie the user under which web server or ftp server or samba will run. Ok. Is a command in CLI which will read a file at given path (assuming it has permission) and type it in window? -- Mimiko desu.
On Tue, Feb 5, 2013 at 11:00 AM, Mimiko <vbvbrj@gmail.com> wrote:
On 05.02.2013 20:27, Michael Collins wrote:
If you simply want to download the file then why not just put it into a location that can be accessed with wget? -MC
That is. That location would have to have security permission read access for other users than FS, ie the user under which web server or ftp server or samba will run.
Ok. Is a command in CLI which will read a file at given path (assuming it has permission) and type it in window?
What do you mean "type it in window"? In any case you can use the fs_cli "system" API to send a command to the operating system to be executed. -MC
On 05.02.2013 21:53, Michael Collins wrote:
What do you mean "type it in window"? In any case you can use the fs_cli "system" API to send a command to the operating system to be executed.
-MC
Well, I will try "system". By the way, is it possible to connect a flash player audio only via fs cli or event socket or other means in php to FS to hear a channel? Ie, A channel is a web browser, and B channel is a phone? -- Mimiko desu.
You could write your own API using any of the scripting languages that support an API to run a script, however I don't know if the stream passed to an API call will mess up binary data, it is considered a String by most interfaces. --Dave _____ From: Mimiko [mailto:vbvbrj@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 05 Feb 2013 12:17:15 -0800 Subject: Re: [Freeswitch-users] Get recorded file from callcenter via API. On 05.02.2013 21:53, Michael Collins wrote:
What do you mean "type it in window"? In any case you can use the fs_cli "system" API to send a command to the operating system to be executed.
-MC
Well, I will try "system". By the way, is it possible to connect a flash player audio only via fs cli or event socket or other means in php to FS to hear a channel? Ie, A channel is a web browser, and B channel is a phone? -- Mimiko desu. _________________________________________________________________________ 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
See http://wiki.freeswitch.org/wiki/Mod_rtmp and the Flex Client What A and B are don't really matter - all calls go via the core and don't care about what the other endpoint is. Just don't use proxy_media or bypass_media for these calls (being SDP based I doubt that would play nicely with RTMP). -Steve On 5 February 2013 20:17, Mimiko <vbvbrj@gmail.com> wrote:
On 05.02.2013 21:53, Michael Collins wrote:
What do you mean "type it in window"? In any case you can use the fs_cli "system" API to send a command to the operating system to be executed.
-MC
Well, I will try "system". By the way, is it possible to connect a flash player audio only via fs cli or event socket or other means in php to FS to hear a channel? Ie, A channel is a web browser, and B channel is a phone?
-- Mimiko desu.
_________________________________________________________________________ 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
participants (5)
-
Dave R. Kompel
-
Michael Collins
-
Mimiko
-
Peter Olsson
-
Steven Ayre