Hello,

when I connect to Kamailio over websocket, according to the websocket protocol 
K. sends “HTTP/1.1 101 Switching Protocols” and K. logs:

17(18) DEBUG: websocket [ws_handshake.c:179]: ws_handle_handshake(): found 
Upgrade: websocket                                           
17(18) DEBUG: websocket [ws_conn.c:195]: wsconn_add(): connection id [14]       
                                                        
17(18) DEBUG: websocket [ws_conn.c:213]: wsconn_add(): new wsc => 
[0x7fcad6e10160], ref => [0]                                          
17(18) DEBUG: websocket [ws_conn.c:233]: wsconn_add(): added to conn_table wsc 
=> [0x7fcad6e10160], ref => [1]                          
17(18) DEBUG: sl [sl.c:310]: send_reply(): reply in stateless mode (sl)         
                                                        
17(18) DEBUG: <core> [core/msg_translator.c:162]: check_via_address(): 
(22.222.222.222, 22.222.222.222, 0)                              
17(18) DEBUG: <core> [core/tcp_main.c:1644]: _tcpconn_find(): found connection 
by id: 14                                                
17(18) DEBUG: <core> [core/tcp_main.c:2528]: tcpconn_send_put(): send from 
reader (18 (17)), reusing fd                                 
17(18) DEBUG: <core> [core/tcp_main.c:2763]: tcpconn_do_send(): sending...
17(18) DEBUG: <core> [core/tcp_main.c:2796]: tcpconn_do_send(): after real 
write: c= 0x7fcad6da7b38 n=238 fd=9
17(18) DEBUG: <core> [core/tcp_main.c:2797]: tcpconn_do_send(): buf= 

17(18) DEBUG: <core> [core/parser/parse_fline.c:255]: parse_first_line(): bad 
request first line
17(18) DEBUG: <core> [core/parser/parse_fline.c:258]: parse_first_line(): at 
line 0 char 22: 
17(18) DEBUG: <core> [core/parser/parse_fline.c:264]: parse_first_line(): 
parsed so far: HTTP/1.1 101 Switching
17(18) ERROR: <core> [core/parser/parse_fline.c:271]: parse_first_line(): 
parse_first_line: bad message (offset: 22)
17(18) DEBUG: <core> [core/parser/msg_parser.c:675]: parse_msg(): invalid 
message
17(18) ERROR: <core> [core/parser/msg_parser.c:749]: parse_msg(): ERROR: 
parse_msg: message=<HTTP/1.1 101 Switching Protocols
Sia: SIP/2.0/TLS 22.222.222.222:33776
Sec-WebSocket-Protocol: sip
Upgrade: websocket
Connection: upgrade
Sec-WebSocket-Accept: NeswoJX5ZQp7ER8hTKM5B3a3HDQ=
Content-Length: 0

>
17(18) ERROR: <core> [core/msg_translator.c:3256]: build_sip_msg_from_buf(): 
parsing failed
17(18) DEBUG: app_lua [app_lua_api.c:1924]: sr_kemi_lua_exit(): script exit call
17(18) DEBUG: app_lua [app_lua_api.c:789]: app_lua_run_ex(): ksr error call 
from Lua: ~~ksr~exit~~
17(18) DEBUG: app_lua [app_lua_mod.c:164]: sr_kemi_config_engine_lua(): 
execution of route type 513 with name [ksr_xhttp_event] returned
 1

22.222.222.222 is my public address (the address of my router).  It is not the 
IP-address of Kamailio.

While the returned address is not parseable in terms of SIP, it is a valid 
Websocket-answer message.  This valid condition triggers logging an error,
but does not represent an error condition.

How can I avoid that the above non-error is logged as an error?

Thanks for your feedback
  Дилян
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to