freeswitch对接电信线路VOLTE视频通话
在public.xml上设置视频编码:
<action application="export" data="nolocal:absolute_codec_string=PCMA,H264"/>
在dialplan中修改SDP消息
<action application="set"><![CDATA[switch_r_sdp=v=0 o=- 123456 123 IN IP4 192.168.3.176 s=etmedia c=IN IP4 192.168.3.176 t=0 0 a=X-nat:4002 Unknown m=audio 4002 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 m=video 6666 RTP/AVP 99 b=AS:1024 a=rtpmap:99 H264/90000 a=fmtp:99 profile-level-id=42e00a; max-bar=1024 a=rtcp-fb:99 ccm fir a=rtcp-fb:99 ccm tmmbr a=rtcp-fb:99 nack a=rtcp-fb:99 nack pli ]]> </action>
uuid_media_reneg用法:
session:execute("media_reneg", "=PCMA,H264 amode=sendrecv vmode=sendonly")
uuid_media_reneg uuid "=PCMA,H264 amode=sendrecv vmode=sendonly"
应答前升级视频
session:execute("sofia_media_reneg", "=PCMA,H264 amode=sendrecv vmode=sendonly")