Daniel-Constantin Mierla writes:
> Are you sure you are using WSS with that config
or just WS?
> The problem is I cant debug since I have no errors in regular log :(
> just seems a handshake issue
One thing I also noticed lately, if I am on https page
and try to make a
ws (tcp) connection, the browser doesn't allow it.
i'm using only wss, i.e., my proxy is listening only on tls websocket
port.
below is what i get to browser js console when connection is set up and
my web client sends register request. i don't know how to get kamailio
tls log at debug level.
-- juha
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | configuration parameters after
validation:" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · via_host:
"c090j2d3iko1.invalid"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · password: NOT SHOWN"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · register_expires: 600"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · register: true"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · registrar_server:
sip:test.tutpro.com" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · ws_server_max_reconnection:
3" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | ·
ws_server_reconnection_timeout: 4" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | ·
connection_recovery_min_interval: 2" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | ·
connection_recovery_max_interval: 30" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · use_preloaded_route:
false" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · no_answer_timeout:
60000" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · stun_servers:
["stun:stun.l.google.com:19302"]" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · turn_servers: []"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · trace_sip: true"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · hack_via_tcp: false"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · hack_ip_in_contact:
false" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · uri:
sip:jh@test.tutpro.com" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · ws_servers:
[{"ws_uri":"wss://test.tutpro.com:8001","sip_uri":"<sip:test.tutpro.com:8001;transport=ws;lr>","weight":0,"status":0,"scheme":"WSS"}]"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · authorization_user:
"jh"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · display_name: "Juha
Heinanen"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · instance_id:
"d9d16181-c87c-4e41-b4ce-f56280fbc135"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · jssip_id:
"lb46m"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | · hostport_params:
"test.tutpro.com"" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | user requested
startup..." jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.transport | connecting to WebSocket
wss://test.tutpro.com:8001" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:33 GMT+0300 (EEST) | jssip.ua | emitting event
connecting" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.transport | WebSocket
wss://test.tutpro.com:8001 connected" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.ua | connection state set to
0" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.ua | emitting event
newTransaction" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.transaction.nict | emitting event
stateChanged" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.transport | sending WebSocket
message:
REGISTER
sip:test.tutpro.com SIP/2.0
Via: SIP/2.0/WSS c090j2d3iko1.invalid;branch=z9hG4bK3979772
Max-Forwards: 69
To: <sip:jh@test.tutpro.com>
From: "Juha Heinanen" <sip:jh@test.tutpro.com>;tag=00a6ilq626
Call-ID: g9rm7pkhb0mijn9emmep8r
CSeq: 81 REGISTER
Contact:
<sip:ddr8h1o0@c090j2d3iko1.invalid;transport=ws>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:d9d16181-c87c-4e41-b4ce-f56280fbc135>";expires=600
Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE
Supported: path,gruu,outbound
User-Agent: JsSIP 0.4.0-devel
Content-Length: 0
" jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.ua | emitting event connected"
jssip-devel.min.js:9
"Thu Sep 11 2014 17:54:34 GMT+0300 (EEST) | jssip.transport | received WebSocket text
message:
SIP/2.0 401 Unauthorized
...