kamailio Webrtc tls 问题:无法注册 simpl5 演示页面

问题描述

很长一段时间,我没有接触 kamailio 系统,几天前,我尝试使用 kamailio 和 webrtc 进行演示/测试,我遵循以下指南:

  1. https://github.com/havfo/WEBRTC-to-SIP
  2. https://telecom.altanai.com/2018/09/04/kamailio-webrtc-sip-server/

而且我在这里的某个线程中遇到了同样的问题,我无法通过 tls 支持进行注册。意思是我可以在没有 tls 端口 8080 的情况下注册我的客户端 sipjs。但是使用端口 4443,我无法注册,日志只显示连接到服务器失败,在 kamailio 中,我看不到任何错误消息。类似的东西

Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3302]: DEBUG: <core> [core/tcp_main.c:4126]: send2child(): selected tcp worker idx:5 proc:15 pid:3292 for activity on [tls:172.31.44.170:4443],0x7fd7f4e961f8
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_read.c:1749]: handle_io(): received n=8 con=0x7fd7f4e961f8,fd=9
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:199]: tls_complete_init(): completing tls connection initialization
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:228]: tls_complete_init(): Using initial TLS domain TLSs<default> (dom 0x7fd7f4d170a8 ctx 0x7fd7f4d708f8 sn [])
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:1177]: tls_lookup_private_key(): Private key lookup for SSL_CTX-0x7fd7f4d708f8: (nil)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:747]: sr_ssl_ctx_info_callback(): SSL handshake started
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:948]: tls_server_name_cb(): received server_name (TLS extension): 'webrtc.test.com'
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:967]: tls_server_name_cb(): TLS cfg domain selected for received server name [webrtc.test.com]: socket [:0] server name='' - switching SSL CTX to 0x7fd7f4d708f8 dom 0x7fd7f4d170a8 (default)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_main.c:2705]: tcpconn_do_send(): sending...
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_main.c:2738]: tcpconn_do_send(): after real write: c= 0x7fd7f4e961f8 n=4593 fd=9
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_main.c:2739]: tcpconn_do_send(): buf=#012#026#003#003
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/io_wait.h:375]: io_watch_add(): DBG: io_watch_add(0x55e559d1b740,9,2,0x7fd7f4e961f8),fd_no=1
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:1177]: tls_lookup_private_key(): Private key lookup for SSL_CTX-0x7fd7f4d708f8: (nil)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:759]: sr_ssl_ctx_info_callback(): SSL handshake done
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:747]: sr_ssl_ctx_info_callback(): SSL handshake started
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:751]: sr_ssl_ctx_info_callback(): SSL renegotiation initiated by client
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:759]: sr_ssl_ctx_info_callback(): SSL handshake done
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:747]: sr_ssl_ctx_info_callback(): SSL handshake started
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:751]: sr_ssl_ctx_info_callback(): SSL renegotiation initiated by client
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_domain.c:759]: sr_ssl_ctx_info_callback(): SSL handshake done
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:424]: tls_accept(): TLS accept successful
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:431]: tls_accept(): tls_accept: new connection from 27.65.214.194:51812 using TLSv1.3 TLS_AES_256_GCM_SHA384 256
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:434]: tls_accept(): tls_accept: local socket: 172.31.44.170:4443
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:445]: tls_accept(): tls_accept: client did not present a certificate
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: tls [tls_server.c:1199]: tls_h_read_f(): Reading on a renegotiation of connection (n:569) (0)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_read.c:1515]: tcp_read_req(): EOF
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/io_wait.h:600]: io_watch_del(): DBG: io_watch_del (0x55e559d1b740,-1,0x10) fd_no=2 called
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_read.c:1884]: handle_io(): removing from list 0x7fd7f4e961f8 id 6 fd 9,state 2,flags 4018,main fd 40,refcnt 2 ([27.65.214.194]:51812 -> [27.65.214.194]:4443)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_read.c:1668]: release_tcpconn(): releasing con 0x7fd7f4e961f8,state -1,fd=9,id=6 ([27.65.214.194]:51812 -> [27.65.214.194]:4443)
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3292]: DEBUG: <core> [core/tcp_read.c:1672]: release_tcpconn(): extra_data 0x7fd7f4eb18d8
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3302]: DEBUG: <core> [core/tcp_main.c:3558]: handle_tcp_child(): reader response= 7fd7f4e961f8,-1 from 5
Jul 13 13:44:01 ip-172-31-44-170 sbin/kamailio[3302]: DEBUG: tls [tls_server.c:683]: tls_h_tcpconn_close_f(): Closing SSL connection 0x7fd7f4eb18d8

如何让它工作?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...