Hello!
I am following the WebRTC + SIPML5 tutorial: https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5
I am running asterisk 16.6.2 in docker
I have generated the self-signed certificate and accepted it by browsing to https://myhost:8089/ws
I can see a web page showing “Upgrade Required” but the following errors are generated:
[Oct 26 04:50:31] ERROR[243]: iostream.c:633 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Oct 26 04:50:31] ERROR[243]: tcptls.c:157 handle_tcptls_connection: Unable to set up ssl connection with peer '172.21.0.1:54370'
[Oct 26 04:50:31] ERROR[243]: iostream.c:538 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Oct 26 04:50:31] ERROR[244]: iostream.c:633 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Oct 26 04:50:31] ERROR[244]: tcptls.c:157 handle_tcptls_connection: Unable to set up ssl connection with peer '172.21.0.1:54374'
[Oct 26 04:50:31] ERROR[244]: iostream.c:538 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Oct 26 04:50:32] WARNING[245]: res_http_websocket.c:791 __ast_websocket_uri_cb: WebSocket connection from '172.21.0.1:54378' could not be accepted - did not request WebSocket
When I go on to configure the sipML5 client I get the following log in addition to the ones above:
== WebSocket connection from '172.21.0.1:54390' for protocol 'sip' accepted using version '13'
[Oct 26 04:52:47] NOTICE[248]: chan_sip.c:28939 handle_request_register: Registration from '"WebRTC Client"<sip:webrtc_client@myhost>' failed for '172.21.0.1:54390' - Wrong password
Here are my relevant files:
http.conf:
[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=scripts/asterisk.crt
tlsprivatekey=scripts/asterisk.key
pjsip.conf:
[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
[webrtc_client]
type=aor
max_contacts=1
remove_existing=yes
[webrtc_client]
type=auth
auth_type=userpass
username=webrtc_client
password=webrtc_client
[webrtc_client]
type=endpoint
aors=webrtc_client
auth=webrtc_client
dtls_auto_generate_cert=yes
webrtc=yes
context=test_webrtc
disallow=all
allow=opus,ulaw
Any help will be appreciated.