[SR-Users] i can not receive BYE after websocket has been closed and reconnected during the call

Kenan Kocaerkek kenankocaerkek at gmail.com
Mon Jan 29 19:05:22 CET 2018


Hi,

I have a WebRTC softphone based on JsSIP and kamailio 4.4.7. Generally it
works well but sometimes websocket connections interrupt and reconnect
immediately (especially running behind proxies). If the interruption occurs
during an active call, kamailio tries to send BYE message to softphone over
closed websocket.

gruu_enabled flag is active on registrar module and JsSIP sends proper
sip.instance value. So after ws reconnects, registered contact details do
not change on kamailio except Expires value.

Is it possible to send BYE message via contact's last active websocket
after reconnect?

Jan 29 14:35:20 registrar-kenan /usr/local/sbin/kamailio[30357]: WARNING:
<script>: WebSocket connection from 195.142.112.66:49086 has closed
Jan 29 14:35:24 registrar-kenan /usr/local/sbin/kamailio[30323]: WARNING:
<core> [msg_translator.c:2761]: via_builder(): TCP/TLS connection (id: 0)
for WebSocket could not be found
Jan 29 14:35:24 registrar-kenan /usr/local/sbin/kamailio[30323]: ERROR:
<core> [msg_translator.c:1979]: build_req_buf_from_sip_req(): could not
create Via header
Jan 29 14:35:24 registrar-kenan /usr/local/sbin/kamailio[30323]: ERROR: tm
[t_fwd.c:462]: prepare_new_uac(): could not build request
Jan 29 14:35:24 registrar-kenan /usr/local/sbin/kamailio[30323]: ERROR: tm
[t_fwd.c:1723]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add
branches
Jan 29 14:35:24 registrar-kenan /usr/local/sbin/kamailio[30323]: ERROR: sl
[sl_funcs.c:363]: sl_reply_error(): ERROR: sl_reply_error used: No error
(2/SL)

Regards,
Kenan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180129/5963e894/attachment.html>


More information about the sr-users mailing list