[Freeswitch-users] Record Session
Joe Flemmings
joe.jflemmings at gmail.com
Fri Mar 16 19:19:30 MSK 2012
Thanks Avi, that's in-fact what i was looking for.
On Fri, Mar 16, 2012 at 5:29 AM, Avi Marcus <avi at 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 at 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 at 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 at 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 at gmail.com> wrote:
>>>
>>>> Thanks guys for the input.
>>>>
>>>>
>>>> On Thu, Mar 15, 2012 at 6:35 PM, Mitch Capper <mitch.capper at 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 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.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.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.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.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.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120316/aae9deff/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list