Hello,
what version of kamailio do you use?
kamailio -v
Cheers,
Daniel
On 31.08.17 15:09, Washington Costa wrote:
Hi.
I'm trying use the JSSIP cliente and Kamailio with WSS.
On these sites I generated my certificates:
https://letsencrypt.org/
and
https://certbot.eff.org/
My browser identify the certificates but SIP client just say: failed:
WebSocket opening handshake was canceled
Do you have any idea how to fix it? Do you can say a checklist with
everything I need to do for use Kamailio with WSS?
Here is my log on Kamailio:
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/ip_addr.c:229]: print_ip(): tcpconn_new: new tcp
connection: 187.41.60.10
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:985]: tcpconn_new(): on port 44630, type 3
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:1291]: tcpconn_add(): hashes: 3062:1194:1491,
2
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/io_wait.h:380]: io_watch_add(): DBG:
io_watch_add(0xa4ac60, 53, 2, 0x7f259df9cd80), fd_no=44
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
(0xa4ac60, 53, -1, 0x0) fd_no=45 called
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:4139]: handle_tcpconn_ev(): sending to child,
events 1
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:3818]: send2child(): selected tcp worker 1
26(13225) for activity on [tls:172.31.39.220:4443], 0x7f259df9cd80
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:1574]: handle_io(): received n=8
con=0x7f259df9cd80, fd=9
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
[tls_server.c:197]: tls_complete_init(): completing tls connection
initialization
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
[tls_server.c:226]: tls_complete_init(): Using initial TLS domain
TLSs<default> (dom 0x7f259ddc4a80 ctx 0x7f259de03bc0 sn [])
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
[tls_domain.c:715]: sr_ssl_ctx_info_callback(): SSL handshake started
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_main.c:2430]: tcpconn_do_send(): sending...
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_main.c:2464]: tcpconn_do_send(): after real write: c=
0x7f259df9cd80 n=2568 fd=9
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_main.c:2465]: tcpconn_do_send(): buf=
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: #026#003#001
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/io_wait.h:380]: io_watch_add(): DBG:
io_watch_add(0xa93f00, 9, 2, 0x7f259df9cd80), fd_no=1
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:195]: tcp_emit_closed_event(): TCP closed
event creation triggered
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:202]: tcp_emit_closed_event(): no callback
registering for handling TCP closed event - dropping!
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:305]: tcp_read_data(): EOF on 0x7f259df9cd80,
FD 9 ([187.41.60.10]:44630 ->26(13225) DEBUG: <core>
[core/tcp_read.c:306]: tcp_read_data(): -> [172.31.39.220]:4443)
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:1341]: tcp_read_req(): EOF
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
(0xa93f00, 9, -1, 0x10) fd_no=2 called
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:1495]: release_tcpconn(): releasing con
0x7f259df9cd80, state -1, fd=9, id=2 ([187.41.60.10]:44630 ->
[187.41.60.10]:4443)
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
<core> [core/tcp_read.c:1499]: release_tcpconn(): extra_data
0x7f259dfb6488
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:3250]: handle_tcp_child(): reader response=
7f259df9cd80, -1 from 1
Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG: tls
[tls_server.c:665]: tls_h_close(): Closing SSL connection
0x7f259dfb6488
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/ip_addr.c:229]: print_ip(): tcpconn_new: new tcp
connection: 187.41.60.10
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:985]: tcpconn_new(): on port 44692, type 3
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:1291]: tcpconn_add(): hashes: 2869:1129:1296,
3
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/io_wait.h:380]: io_watch_add(): DBG:
io_watch_add(0xa4ac60, 53, 2, 0x7f259df9cd80), fd_no=44
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
(0xa4ac60, 53, -1, 0x0) fd_no=45 called
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:4139]: handle_tcpconn_ev(): sending to child,
events 1
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:3818]: send2child(): selected tcp worker 2
27(13226) for activity on [tls:172.31.39.220:4443], 0x7f259df9cd80
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:1574]: handle_io(): received n=8
con=0x7f259df9cd80, fd=9
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG: tls
[tls_server.c:197]: tls_complete_init(): completing tls connection
initialization
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG: tls
[tls_server.c:226]: tls_complete_init(): Using initial TLS domain
TLSs<default> (dom 0x7f259ddc4a80 ctx 0x7f259de05708 sn [])
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG: tls
[tls_domain.c:715]: sr_ssl_ctx_info_callback(): SSL handshake started
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_main.c:2430]: tcpconn_do_send(): sending...
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_main.c:2464]: tcpconn_do_send(): after real write: c=
0x7f259df9cd80 n=2568 fd=9
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_main.c:2465]: tcpconn_do_send(): buf=
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: #026#003#001
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/io_wait.h:380]: io_watch_add(): DBG:
io_watch_add(0xa93f00, 9, 2, 0x7f259df9cd80), fd_no=1
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:195]: tcp_emit_closed_event(): TCP closed
event creation triggered
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:202]: tcp_emit_closed_event(): no callback
registering for handling TCP closed event - dropping!
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:305]: tcp_read_data(): EOF on 0x7f259df9cd80,
FD 9 ([187.41.60.10]:44692 ->27(13226) DEBUG: <core>
[core/tcp_read.c:306]: tcp_read_data(): -> [172.31.39.220]:4443)
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:1341]: tcp_read_req(): EOF
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
(0xa93f00, 9, -1, 0x10) fd_no=2 called
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:1495]: release_tcpconn(): releasing con
0x7f259df9cd80, state -1, fd=9, id=3 ([187.41.60.10]:44692 ->
[187.41.60.10]:4443)
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 27(13226) DEBUG:
<core> [core/tcp_read.c:1499]: release_tcpconn(): extra_data
0x7f259dfb6488
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
<core> [core/tcp_main.c:3250]: handle_tcp_child(): reader response=
7f259df9cd80, -1 from 2
Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG: tls
[tls_server.c:665]: tls_h_close(): Closing SSL connection
0x7f259dfb6488
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users