Kali Linux 上的 Asterisk v13:未找到 RTP 引擎。你有装载吗?

Kali Linux 上的 Asterisk v13:未找到 RTP 引擎。你有装载吗?

我安装了 Asterisk 并尝试使用 zoiper 进行呼叫,但出现错误 [呼叫失败 401 禁止] 并且 Asterisk 返回此消息:

Connected to Asterisk UNKNOWN__and_probably_unsupported currently running on kali (pid = 14877)
[Jan 22 17:57:00] ERROR[14937][C-00000007]: rtp_engine.c:401 ast_rtp_instance_new: No RTP engine was found. Do you have one loaded?
[Jan 22 17:57:00] NOTICE[14937][C-00000007]: chan_sip.c:25550 handle_request_invite: Failed to authenticate device <sip:[email protected];transport=UDP>;tag=9a473a54

我打开菜单选择并选择res_rtp_asterisk.

当我尝试重新安装(重新编译!)Asterisk 时,我这样做./configure

这说明没问题啊!但是当我输入makeor时make install,我收到此错误:

CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/etc/asterisk/asterisk/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/etc/asterisk/asterisk/menuselect'
   [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o
res_rtp_asterisk.c: In function ‘ice_create’:
res_rtp_asterisk.c:2421:4: error: too many arguments to function ‘pj_ice_sess_create’
In file included from /usr/include/pjnath.h:23:0,
                 from res_rtp_asterisk.c:53:
/usr/include/pjnath/ice_session.h:736:22: note: declared here
make[1]: *** [res_rtp_asterisk.o] Error 1
make: *** [res] Error 

答案1

你应该做

make menuconfig

编译之前。

找到 res_rtp_asterisk 并检查它是否需要一些您没有或刚刚关闭的依赖项。如果它关闭,请将其打开并重新编译。

相关内容