How can i record a call in two seperate directories at the same time the following does not work <action application="record_session" data="$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> <action application="record_session" data="$${base_dir}/recordings/users/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> Joe
What possible advantage is there to recording to two separate directories at the same time? Would it not be better just to copy the recording once the call is over? -MC On Thu, Mar 15, 2012 at 2:57 PM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
How can i record a call in two seperate directories at the same time
the following does not work
<action application="record_session" data="$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> <action application="record_session" data="$${base_dir}/recordings/users/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
Joe
_________________________________________________________________________ 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
Comment sense dictates that I should have thought of that before asking the question but the short answer is that this should only occur in some recordings (NOT ALL) and is decided during routing. On Thu, Mar 15, 2012 at 4:35 PM, Michael Collins <msc@freeswitch.org> wrote:
What possible advantage is there to recording to two separate directories at the same time? Would it not be better just to copy the recording once the call is over?
-MC
On Thu, Mar 15, 2012 at 2:57 PM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
How can i record a call in two seperate directories at the same time
the following does not work
<action application="record_session" data="$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> <action application="record_session" data="$${base_dir}/recordings/users/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
Joe
_________________________________________________________________________ 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
_________________________________________________________________________ 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
A workaround would be setting a hangup hook for a script to copy (or hardlink) the files when the call is over. Or have your CDR handler find a channel variable set and do it after the call. -Avi On Fri, Mar 16, 2012 at 3:26 AM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
Comment sense dictates that I should have thought of that before asking the question but the short answer is that this should only occur in some recordings (NOT ALL) and is decided during routing.
On Thu, Mar 15, 2012 at 4:35 PM, Michael Collins <msc@freeswitch.org>wrote:
What possible advantage is there to recording to two separate directories at the same time? Would it not be better just to copy the recording once the call is over?
-MC
On Thu, Mar 15, 2012 at 2:57 PM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
How can i record a call in two seperate directories at the same time
the following does not work
<action application="record_session" data="$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> <action application="record_session" data="$${base_dir}/recordings/users/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
Joe
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space. ~mitch
Thanks guys for the input. On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs? On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Actually you're right, what i should have said is that it does work when you set in "execute_on_answer" eg in a lua script This Works and records in both places --------------------------------------------------------- session:execute("record_session", "$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("record_session", "$${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") This only records the second option and not the first ------------------------------------------------------------------------------- session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") On Thu, Mar 15, 2012 at 7:55 PM, Christopher Rienzo <cmrienzo@gmail.com>wrote:
This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs?
On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
That makes more sense. The first is running an application, so it creates the media bug. The second sets a variable... so the second time you set it, it overwrites it. You can set multiple execute_on by adding _n to it -- see: http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family -Avi On Fri, Mar 16, 2012 at 6:56 AM, Joe Flemmings <joe.jflemmings@gmail.com>wrote:
Actually you're right, what i should have said is that it does work when you set in "execute_on_answer" eg in a lua script
This Works and records in both places --------------------------------------------------------- session:execute("record_session", "$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("record_session", "$${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
This only records the second option and not the first
------------------------------------------------------------------------------- session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
On Thu, Mar 15, 2012 at 7:55 PM, Christopher Rienzo <cmrienzo@gmail.com>wrote:
This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs?
On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings <joe.jflemmings@gmail.com
wrote:
Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Yes, that makes sense. Execute_on_answer is a channel variable and will retain the last value set to it. You could execute_on_answer a script instead which starts both recordings. On Mar 16, 2012, at 0:56, Joe Flemmings <joe.jflemmings@gmail.com> wrote:
Actually you're right, what i should have said is that it does work when you set in "execute_on_answer" eg in a lua script
This Works and records in both places --------------------------------------------------------- session:execute("record_session", "$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("record_session", "$${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
This only records the second option and not the first ------------------------------------------------------------------------------- session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
On Thu, Mar 15, 2012 at 7:55 PM, Christopher Rienzo <cmrienzo@gmail.com> wrote: This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs?
On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings <joe.jflemmings@gmail.com> wrote: Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com> wrote: It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
or execute_on_answer_1 and execute_on_answer_2 as I linked to.. -Avi On Fri, Mar 16, 2012 at 2:22 PM, <cmrienzo@gmail.com> wrote:
Yes, that makes sense. Execute_on_answer is a channel variable and will retain the last value set to it. You could execute_on_answer a script instead which starts both recordings.
On Mar 16, 2012, at 0:56, Joe Flemmings <joe.jflemmings@gmail.com> wrote:
Actually you're right, what i should have said is that it does work when you set in "execute_on_answer" eg in a lua script
This Works and records in both places --------------------------------------------------------- session:execute("record_session", "$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("record_session", "$${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
This only records the second option and not the first
------------------------------------------------------------------------------- session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
On Thu, Mar 15, 2012 at 7:55 PM, Christopher Rienzo <cmrienzo@gmail.com>wrote:
This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs?
On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings <joe.jflemmings@gmail.com
wrote:
Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Thanks Avi, that's in-fact what i was looking for. On Fri, Mar 16, 2012 at 5:29 AM, Avi Marcus <avi@avimarcus.net> wrote:
or execute_on_answer_1 and execute_on_answer_2 as I linked to.. -Avi
On Fri, Mar 16, 2012 at 2:22 PM, <cmrienzo@gmail.com> wrote:
Yes, that makes sense. Execute_on_answer is a channel variable and will retain the last value set to it. You could execute_on_answer a script instead which starts both recordings.
On Mar 16, 2012, at 0:56, Joe Flemmings <joe.jflemmings@gmail.com> wrote:
Actually you're right, what i should have said is that it does work when you set in "execute_on_answer" eg in a lua script
This Works and records in both places --------------------------------------------------------- session:execute("record_session", "$${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("record_session", "$${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
This only records the second option and not the first
------------------------------------------------------------------------------- session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/admin/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav") session:execute("export", "nolocal:execute_on_answer=record_session $${base_dir}/recordings/user/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav")
On Thu, Mar 15, 2012 at 7:55 PM, Christopher Rienzo <cmrienzo@gmail.com>wrote:
This seems broken to me if it doesn't work. I'm pretty sure I've enabled multiple recordings before and I looked at the code again to be sure... a separate media bug gets created for each recording. What error do you see in the logs?
On Thu, Mar 15, 2012 at 10:26 PM, Joe Flemmings < joe.jflemmings@gmail.com> wrote:
Thanks guys for the input.
On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper@gmail.com>wrote:
It may be better to set a variable during routing for if the recording should be duplicated or not and then copy after the fact. The other option may be to symlink rather than create two recordings, this could be done upfront and has the nice side effect of saving space.
~mitch
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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 (6)
-
Avi Marcus
-
Christopher Rienzo
-
cmrienzo@gmail.com
-
Joe Flemmings
-
Michael Collins
-
Mitch Capper