我正在尝试使用FreeSWITCH和pjsip库进行视频通话。音频通话正常进行。为了启用视频,我进行了以下更改:
1. I followed all the steps mentioned here.
PJSIP video user guide (https://trac.pjsip.org/repos/wiki/Video_Users_Guide)
2. FreeSWITCH
a. Updated /usr/local/freeswitch/conf/vars.xml with h264 codec.
<XPREPROCESScmd="set"data="global_codec_prefs=H264,OPUS,G722,PCMU,PCMA"/>
b. However, h264 is not showing in the codecs list (show codecs)
c. when I make a video, call... FreeSWITCH is converting it to an audio call. When I initiate a call Video port was opened but later it was closed.
从pjsip到FreeSwitch(第一段)是视频通话...但是第二段是audo通话。
v = 0
o = FreeSWITCH 1540768194 1540768195输入IP4 192.168.100.41
s = FreeSWITCH
c = IN IP4 192.168.100.41
t = 0 0
m =音频26506 RTP / AVP 0 96
a = rtpmap:0 PCMU / 8000
a = rtpmap:96电话事件/ 8000
a = fmtp:96 0-16
a = ptime:20
a = rtcp:26507 IP 4 192.168.100.41
m =视频0 RTP / AVP 19
请让我知道如何继续进行操作。
答案 0 :(得分:1)
请检查以下fs_cli中的命令是否返回true或false。
module_exists mod_h26x
如果返回true,则加载h264编解码器,否则未加载。用于加载 模块执行以下命令
load mod_h26x
如果在加载模块时发现任何错误,则需要从freeswitch源代码编译mod_h26x,该模块将出现在mod / codec目录中。只需在模块源代码目录中进行make和make install,然后通过上述命令加载模块即可。