[Freeswitch-users] Implementing One Way audio through Freeswitch(Default Mode)

Saurabh Verma saurabhkv01 at gmail.com
Tue Aug 2 19:03:28 MSD 2016


Freeswitch has three media handling modes.

   - Default: media flows through FS, full processing option.
   - Proxy: media flows through FS, no media processing options.
   - Bypass: media flows around FS directly between endpoints, no media
   processing option.

And i am using Default media mode.


On Tue, Aug 2, 2016 at 7:49 PM, Michael Jerris <mike at jerris.com> wrote:

> What is "default mode"?
>
> Sent from my iPad
>
> On Aug 2, 2016, at 12:42 AM, Saurabh Verma <saurabhkv01 at gmail.com> wrote:
>
> Hi Michael,
>
> As the SoftClient1 has set sendonly as media attribute for audio in the
> INVITE packet and getting recvonly in 200OK even after that RTP packets are
> flowing from FREESWITCH to SoftClient1 (on A-Leg) and we don't want that
> stream.
>
> What exactly we need is One Way Audio on A-Leg(SoftClient1 to Freeswitch
> only).
>
> Anything we can configure for One Way Audio Stream (SoftClient1 to
> SoftClient2) using Default Mode in Freeswitch?
>
> Thanks
>
> On Mon, Aug 1, 2016 at 6:57 PM, Michael Jerris <mike at jerris.com> wrote:
>
>>
>>
>> On Monday, August 1, 2016, Saurabh Verma <saurabhkv01 at gmail.com> wrote:
>>
>>> Hi
>>>
>>> I want to implement One Way Audio through Freeswitch in Default mode.
>>>
>>> *SoftClient1 ---------> FREESWITCH  ---------->  SoftClient2*
>>> *a=sendonly             (Default Mode)                *
>>>
>>> For this i have hardcoded the media attribute for audio as sendonly in
>>> Softclient1.Everytime Softclient1 will initiate the call to softclient2.Now
>>> when i make a call,Softclient1 sends *sendonly as media attribute in
>>> SDP of INVITE packet*.Freeswitch replies with recvonly in the
>>> 200OK.When Freeswitch forwards the Invite to Softclient2 ,*we can't see
>>> any media attribute* parameter in it and Softclient2 replies to
>>> FREESWITCH with *sendrecv in 200OK *and hence Both way media is flowing
>>> instead of one way.
>>>
>>> Generally if a SIP client receives sendonly in Invite, it will send
>>> recvonly in 200OK by default.
>>>
>>>
>>
>> And that's is what we are doing here
>>
>>
>>> But here Freeswitch is modifying it and not forwarding sendonly to
>>> SoftClient2.
>>>
>>>
>>>                                             <Call_Flow.png>
>>>>>>
>>
>> Please understand these are 2 different calls.  Depending on your codec
>> negotiation settings the sdp may be related to different degrees or not
>> related at all.
>>
>>
>>> Why Freeswitch is not forwarding the sendonly in invite to SoftClient2?
>>>
>>
>> If you are looking for FreeSWITCH to copy the exact
>> sdp and forward it, use bypass media
>>
>>
>>> How can we implement this using Default mode?
>>>
>>>
>> What is default mode?
>>
>>
>>> Can somebody help me with this?
>>>
>>>
>>>
>>> --
>>> *With Warm Regards:*
>>> *Saurabh Kumar Verma*
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
>
> --
> *With Warm Regards:*
> *Saurabh Kumar Verma*
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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://confluence.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
>



-- 
*With Warm Regards:*
*Saurabh Kumar Verma*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160802/2e81f74b/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list