[Freeswitch-users] Record write part of all legs in a bridge call

Anthony Minessale anthony.minessale at gmail.com
Fri Jul 26 00:32:21 MSD 2013


first you need to decide which direction you want, then depending on which
leg you run the app on you need to decide if its the read or write stream
of that leg.

A LEG (read stream is the stream from the caller, write stream is to the
caller)
B LEG (read stream is the stream from the far end, write stream is to the
far end)



On Thu, Jul 25, 2013 at 5:57 AM, Doron Kruh <doron at lexifone.com> wrote:

> Hi.
>
> We had tried it, but the record contains only leg A audio.
> Are you sure that the record_Session can give me the results I  am looking
> for (leg B audio only)?
> As a work around , we tried to use the record command, but it seems to
> block the execution  - can the record command help us ?
>
> Many thanks,
>
> Doron.
>
>
> On Wed, Jul 24, 2013 at 9:48 PM, Anthony Minessale <
> anthony.minessale at gmail.com> wrote:
>
>> One way would be a dial string like this.
>>
>> {record_write_only=true,execute_on_media='record_session
>> /tmp/foo.wav'}sofia/internal/foo at bar.com
>>
>>
>>
>> On Wed, Jul 24, 2013 at 2:50 AM, Doron Kruh <doron at lexifone.com> wrote:
>>
>>> Hi Anthony,
>>>
>>> Thank you very much for your answer.
>>>
>>> We have done multiple tests before publishing the question with both
>>> READ_ONLY and WRITE_ONLY options.
>>> I think that the basic missing information is how to use the
>>> record_session command in the context of the relevant call leg - in all the
>>> use cases we tried , the record_session always referred to the first caller
>>> (leg a) as the media direction reference point (in the write channel we
>>> only saw the audio originated from leg a - without any played prompts -
>>> where in the read channel we see the audio originated from leg b + the
>>> played prompts).
>>> What we would like to achieve is recording only the write channel for
>>> both call legs - the first record_session command (referring to leg a) is
>>> currently placed in a dial plan just before the bridge command :
>>>
>>>     <action application="set" data="ignore_early_media=true"/>
>>>     <action application="set" data="media_bug_answer_req=true"/>
>>>     <action application="set" data="enable_file_write_buffering=false"/>
>>>     <action application="set" data="RECORD_WRITE_ONLY=true"/>
>>>     <action application="set" data="RECORD_MIN_SEC=1"/>
>>>     <action application="record_session" data="${recordFileName}"/>
>>>     <action application="bridge"
>>> data="sofia/gateway/XXX/${destination_number}"/>
>>>
>>> I think that the real question is where should we call the second
>>> record_session so it will refer leg b?
>>>
>>> Again , many thanks for your attention,
>>>
>>> Doron.
>>>
>>>
>>> On Wed, Jul 24, 2013 at 1:41 AM, Anthony Minessale <
>>> anthony.minessale at gmail.com> wrote:
>>>
>>>> RECORD_WRITE_ONLY=true should do that.
>>>>
>>>>
>>>>
>>>> On Tue, Jul 23, 2013 at 2:49 PM, Doron Kruh <doron at lexifone.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I am trying to perform a record of all legs in a bridge call(and maybe
>>>>> in the future conference of n users) .
>>>>> It is important to keep the audio quality of the audio  as  good as
>>>>> possible (8khz for non HD and 16 khz for HD).
>>>>> To be more precise , I am interesting in recording only the WRITE
>>>>> channel of each leg (the READ channel is not important for my purposes).
>>>>> Currently, the only solution I was able to find was using
>>>>> record_session with STEREO option on the incoming UUID .
>>>>> Although I got the bleg audio available on the read channel , I also
>>>>> got all the audio I played to the bridge call on the same channel.
>>>>> The best solution will be to perform a record for each call leg which
>>>>> will record only the WRITE channel (based on the terminology defined in
>>>>> the record_session API)  - is there currently any way to achieve that?
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Doron.
>>>>>
>>>>> --
>>>>> Doron Kruh,
>>>>> Senior Developer
>>>>> Lexifone , Hapalyam 7 Haifa.
>>>>> Mobile: 972-52-3823361
>>>>> Office:   972-4-9126792
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Anthony Minessale II
>>>>
>>>> FreeSWITCH http://www.freeswitch.org/
>>>> ClueCon http://www.cluecon.com/
>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>
>>>> AIM: anthm
>>>> MSN:anthony_minessale at hotmail.com
>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>> IRC: irc.freenode.net #freeswitch
>>>>
>>>> FreeSWITCH Developer Conference
>>>> sip:888 at conference.freeswitch.org
>>>> googletalk:conf+888 at conference.freeswitch.org
>>>> pstn:+19193869900
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Doron Kruh,
>>> Senior Developer
>>> Lexifone , Hapalyam 7 Haifa.
>>> Mobile: 972-52-3823361
>>> Office:   972-4-9126792
>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
>
> --
> Doron Kruh,
> Senior Developer
> Lexifone , Hapalyam 7 Haifa.
> Mobile: 972-52-3823361
> Office:   972-4-9126792
>
> _________________________________________________________________________
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130725/6bea5639/attachment.html 


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