我尝试使用Asterisk服务器和Blink作为客户端(使用此tutorial中提到的配置)设置安全的voip连接。更多详情如下:
sip.conf:
[general]
bindaddr=0.0.0.0
deny=all
allow=ulaw
allow=gsm
tlsenable=yes
tlsbindaddr=0.0.0.0
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscapath=/etc/asterisk/keys
tlsprivatekey=/etc/asterisk/keys/asterisk.key
tlscipher=ALL
tlsclientmethod=tlsv1
encryption=yes
[5001]
type=friend
host=dynamic
context=phones
secret=5001
username=yassine
transport=tls
dtmfmode=rfc2833
port=5061
在客户端注册时,Asterisk CLI会给出以下消息:
tcptls.c:644 handle_tcptls_connection:设置ssl连接时出错:错误:000000000:lib(0):func(0):reason(0)
tcptls.c:730 handle_tcptls_connection: FILE *打开失败!
提前致谢。