[Freeswitch-users] Proxy Media and Codec Prefer

Sergey Okhapkin sos at sokhapkin.dyndns.org
Mon Aug 2 03:25:37 PDT 2010


FS has 3 ways (not 2!) to handle media:

1. bypass_media=true - media path is set to run audio directly between leg a 
and b endpoints. absolute_codec_string variable is ignored in this mode.
2. proxy_media=true - media is proxied by FS, but without any transcoding etc, 
frame in - frame out. absolute_codec_string variable is ignored in this mode.
3. Neither bypass_media, no proxy_media variables are set. FS does full media 
handling/transcoding, absolute_codec_string variable is honored.

On Monday 02 August 2010, Nyamul Hassan wrote:
> Interesting.  In proxy media, FS is in the middle of the media transfer,
>  and one would think that such was possible in such situations.
> 
> In contrast, when you are not acting as a media proxy, there is little on
> what media the end points can negotiate among themselves.
> 
> There must be some logical reasoning that I fail to understand here.
> 
> Regards
> HASSAN
> 
> On Mon, Aug 2, 2010 at 14:01, Steven Ayre <steveayre at gmail.com> wrote:
> > Yes, don't use proxy media. Use absolute_codec_string as you already were
> > to enforce it.
> >
> > There is no way if you're using proxy media.
> >
> > -Steve
> >
> > On 2 August 2010 08:23, Nyamul Hassan <mnhassan at usa.net> wrote:
> >> Thank you for the explanation Steven.  However, if we see that there is
> >> a common codec, say G729, and we want to make sure that the call gets
> >> connected on G729, is there any way to enforce this?
> >>
> >> Regards
> >> HASSAN
> >>
> >> On Mon, Aug 2, 2010 at 12:44, Steven Ayre <steveayre at gmail.com> wrote:
> >>> In proxy media mode FS will pass media straight through without any
> >>> processing. It won't do any transcoding or any SDP modifcation, so it
> >>> can't transcode PCMU <-> G729 and absolute_codec_string will be ignored
> >>> - it'll just pass the codec settings straight through from the A leg to
> >>> the B leg.
> >>>
> >>> So it's expected behaviour.
> >>>
> >>> -Steve
> >>>
> >>> On 2 August 2010 04:55, Dome Charoenyost <dome at tel.co.th> wrote:
> >>>> Dear All,
> >>>>        I'm not sure it's bug or not ?
> >>>> I try to test codec  negotate. with 3 FS box
> >>>> FS1 send PCMA to FS2 and FS2 send G729 to FS3
> >>>>
> >>>> FS1 -----> [PCMU] ----> FS2 ------> [G729] -------> FS3 (10.20.2.49)
> >>>> My dialplan
> >>>> <action application="bridge"
> >>>> data="{absolute_codec_string='G729'}sofia/internal/2222 at 10.20.2.49:508
> >>>>0 "/>
> >>>> It's work fine
> >>>> When i try
> >>>> <action application="set" data="proxy_media=true"/>
> >>>> <action application="bridge"
> >>>> data="{absolute_codec_string='G729'}sofia/internal/2222 at 10.20.2.49:508
> >>>>0 "/>
> >>>> Call fail. because FS2 ignore absolute_codec_string='G729' and send
> >>>> only  PCMU  (I think by pass from FS1)
> >>>>
> >>>> It's bug or not ?
> >>>>
> >>>> Dome C.
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>>
> >>> _______________________________________________
> >>> 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-user
> >>>s http://www.freeswitch.org
> >>
> >> _______________________________________________
> >> 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
> >
> > _______________________________________________
> > 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
> 




More information about the FreeSWITCH-users mailing list