1.修改FreeSWITCH安装路径下/conf/var.xml文件中,增加:

<X-PRE-PROCESS cmd=="set" data="proxy_media=true"/>

2.修改FreeSWITCH安装路径下/conf/sip_profiles/internal.xml文件,设置inbound-proxy-media和inbound-late-negotiation为true

<!--Uncomment to set all inbound calls to proxy media mode-->
<param name="inbound-proxy-media" value="true"/>
<!-- Let calls hit the dialplan before selecting codec for the a-leg -->
<param name="inbound-late-negotiation" value="true"/>

修改配置之后重启FreeSWITCH或者打开FS_Cli输入reloadxml。

如果视频编码问题报错,可尝试修改/conf/var.xml的配置项global_codec_prefs 和 outbound_codec_prefs如下(增加可用编解码器)

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,G722,PCMU,PCMA,GSM,H263,H264,VP8,H263-1998"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,G722,PCMU,PCMA,GSM,H263,H264,VP8,H263-1998"/>
04-14 04:10