• Anthony Minessale's avatar
    %FEATURE Add new feature to filter the SDP on bypass_media calls to remove or limit codecs. · 24084adf
    Anthony Minessale 提交于
    VARIABLE: bypass_media_sdp_filter
    
    Can be set globally or per leg on the inbound side of a bypass_media bridge.
    
    VALID FILTERS:
    
    remove(): Removes the specified codec if it exists in the SDP.
    only():   Removes all codecs besides the one specified (providing that it exists in the sdp) (will not remove telephone-event))
    
    EXAMPLE 1 (remove everything leaving only g729):
    
      <action application="set" data="bypass_media_sdp_filter=only(g729)"/>
      <action application="set" data="bypass_media=true"/>
      <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>
    
    EXAMPLE 2 (remove everything leaving only g729 and also remove dtmf):
    
      <action application="set" data="bypass_media_sdp_filter=only(g729)|remove(telephone-event)"/>
      <action application="set" data="bypass_media=true"/>
      <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>
    
    EXAMPLE 3 (remove alaw and speex):
    
      <action application="set" data="bypass_media_sdp_filter=remove(pcma)|remove(speex)"/>
      <action application="set" data="bypass_media=true"/>
      <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>
    24084adf
switch_core_session.c 94.6 KB