[Freeswitch-users] failover when storing recordings

jay binks jaybinks at gmail.com
Fri Dec 28 09:08:41 MSK 2012


maybe look at inotifywait (
http://stackoverflow.com/questions/10533200/processing-data-with-inotify-tools-as-a-daemon)
or http://code.google.com/p/lsyncd/

or use inotify in your own daemon if you want.


On 28 December 2012 11:29, Abaci <abaci64 at gmail.com> wrote:

>  His question was about call recording not voicemail, not sure if that's
> triggered for voicemail (I think it is), you can probably add a var in
> mod_voicemail.c to the file_path and use that var in the post_process
> api/app.
>
>
> On 12/27/2012 8:08 PM, Avi Marcus wrote:
>
> That gets triggered for VM too? How do you pass in the name of the file
> that was recorded?
>
>  -Avi
>
> On Fri, Dec 28, 2012 at 2:50 AM, Abaci <abaci64 at gmail.com> wrote:
>
>>
>> http://wiki.freeswitch.org/wiki/Channel_Variables#record_post_process_exec_api
>>
>>
>> On 12/27/2012 7:36 PM, Michael Collins wrote:
>>
>>
>>
>> On Thu, Dec 27, 2012 at 2:20 PM, Puskás Zsolt <errotan at elder.hu> wrote:
>>
>>>
>>> Would be simpler and more reliable to store the file during the
>>> recording on the local machine (hard or RAM disk) than copy the file after
>>> hangup.
>>>
>> +1
>>
>> You're better off doing a cron job that copies the files to the target
>> host, confirms they made it, then deletes the files from the local host
>> (i.e. the FreeSWITCH box). You could even write a daemon that runs
>> constantly and waits for a lull in system activity and moves the files when
>> things are quiet. You could get really fancy if you wanted to but I think
>> most sysadmins around here would say: keep it simple, try a cron job that
>> runs every 10 minutes or so and uses "nice" or something similar to make
>> sure the copy process doesn't spike your disk, network, or cpu usage.
>>
>> -MC
>>
>>
>>
>>   _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>>
>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>>
>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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.orghttp://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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
>
>


-- 
Sincerely

Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121228/47ce0d75/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list