我正在尝试在Sipjs的帮助下为用户设置Asterisk语音聊天,遵循SIPJS文档http://sipjs.com/guides/server-configuration/asterisk上给出的说明。用户已创建,并且也已连接。他们可以通过Zoiper互相呼叫。但无法通过Sipjs或SipML5调用。当任何用户从Sipjs或SipMl5调用时。控制台显示以下错误:
Connected to Asterisk 11.20.0 currently running on asterix (pid = 13719)
[Oct 14 05:25:22] NOTICE[13735][C-00000000]: chan_sip.c:25844 handle_request_invite: Call from '' (88.150.240.102:5071) to extension '90041215085741' rejected because extension not found in context 'default'.
[Oct 14 05:25:46] NOTICE[13735][C-00000001]: chan_sip.c:10005 process_sdp: Received SAVPF profle in audio offer but AVPF is not enabled, enabling: audio 23496 UDP/TLS/RTP/SAVPF 109 9 0 8
[Oct 14 05:25:46] WARNING[13735][C-00000001]: chan_sip.c:10398 process_sdp: Rejecting secure audio stream without encryption details: audio 23496 UDP/TLS/RTP/SAVPF 109 9 0 8
[Oct 14 05:25:54] WARNING[13735]: chan_sip.c:4024 retrans_pkt: Retransmission timeout reached on transmission 1faf349623b90d4f62fe562ae66d6c45 for seqno 1 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
[Oct 14 05:25:55] NOTICE[13735][C-00000002]: chan_sip.c:25844 handle_request_invite: Call from '' (88.150.240.102:5070) to extension '0041215085741' rejected because extension not found in context 'default'.另外,在安装DTLS证书的过程中,我得到了"hostname:未知主机“。任何人,请指导我如何正确设置Asterisk语音聊天。
发布于 2015-11-21 14:57:16
从我在您的控制台中看到的-第一个-扩展名在您的上下文中不存在第二个-在您的sip用户配置中设置"avpf=yes“第三-在您的sip用户配置中设置"encryption=yes”
从你的头衔我知道的是,你还没有为它生成证书-
mkdir /etc/asterisk/keys
cd /usr/src/asterisk-13.1.0/contrib/scripts
/ast_tls_cert -C hostname -O "Some Name" -d /etc/asterisk/keys以下是用于网络电话的sip配置的示例:
[1000]
host=dynamic
secret=YouPassword
context=from-internal
type=friend
encryption=yes
avpf=yes
icesupport=yes
directmedia=no
disallow=all
allow=ulaw
allow=alaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass如果您仍然有问题,请与我分享您的配置(希望您已经配置了webrtc支持)
https://stackoverflow.com/questions/33121924
复制相似问题