[Freeswitch-users] JsSIP and wss

Peter Steinbach lists at telefaks.de
Fri Sep 6 13:45:05 MSD 2013


On 09/06/13 00:52, Anthony Minessale wrote:
> SSL stuff still shows handshake etc well in a pcap.
> you need sofia loglevel all 9 to see any connection stuff.
Thanks for the hint. Freeswitch log shows:
tport.c:2773 tport_wakeup() tport_wakeup(0x7f59ccddbb70): events IN
tport.c:2864 tport_recv_event() tport_recv_event(0x7f59ccddbb70)
tport_type_ws.c:232 tport_recv_stream_ws()
tport_recv_stream_ws(0x7f59ccddbb70): su_getmsgsize(): Host is down (112)
tport.c:2159 tport_shutdown0() tport_shutdown0(0x7f59ccddbb70, 2)
tport.c:2096 tport_close() tport_close(0x7f59ccddbb70):
ws/192.168.178.102:40843/sip
nua_registrar.c:200 registrar_tport_error() tport error 0: Success
tport.c:4221 tport_release() tport_release(0x7f59ccddbb70): (nil) by
0x7f59cce033e0 with (nil)
tport.c:2265 tport_set_secondary_timer() tport(0x7f59ccddbb70): set
timer at 0 ms because zap
nua_stack.c:271 nua_stack_event() nua(0x7f59cce033e0): event
i_media_error 500 Transport error detected
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
tport.c:2265 tport_set_secondary_timer() tport(0x7f59ccddbb70): set
timer at 0 ms because zap
tport_type_ws.c:480 tport_ws_deinit_secondary() 0x7f59ccddbb70 destroy
ws transport 0x7f59ccddbd60.
nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering
2013-09-06 11:02:17.085874 [ALERT] sofia.c:1461 SOCKET DISCONNECT:
rfg21joso6g9bf1oblmtqg 192.168.178.102:40843

I am wondering about 3 things:

  * Host is down (112) (but netstat shows below that 7443 is open)
  * ws/192.168.178.102:40843/sip (I was expecting wss here instead of ws)
  * 500 Transport error detected

Do you see where this behaviour may come from?

netstat -anlpe |grep 7443
tcp        0      0 192.168.178.220:7443    0.0.0.0:*              
LISTEN      0          1460052941  25340/freeswitch

Jssip shows:
JsSIP | TRANSPORT | connecting to WebSocket wss://mydomain.com:7443
jssip-devel.js:556
JsSIP | TRANSPORT | WebSocket connection error: [object Event]
jssip-devel.js:717
JsSIP | TRANSPORT | WebSocket disconnected (code: 1006) jssip-devel.js:611
JsSIP | TRANSPORT | WebSocket abrupt disconnection jssip-devel.js:614
JsSIP | UA | transport wss://mydomain.com:7443 failed | connection state
set to 2 jssip-devel.js:5292

By the way, if I open http://192.168.178.220:7443 manually in the Chrome
Browser, I read in Freeswitch's log:
tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x1feebb0): events IN
tport.c:869 tport_alloc_secondary() tport_alloc_secondary(0x1feebb0):
new secondary tport 0x7f59b842cdd0
tport.c:2622 tport_accept() tport_accept(0x1feebb0): incoming secondary
on wss/192.168.178.220:7443/sips failed. reason = WS_INIT

-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130906/ed9b7916/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list