Bug #8136


'PING' causes dialer to disconnect.

Added by Kevin C about 1 year ago. Updated about 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


In module goautodial/modulesGOagent/GOagentJS.php the code:

// WebSocket Keep-alive
var checkWebsocketConn = setInterval(function() {
if (is_logged_in && (use_webrtc && phoneRegistered) && typeof socket !== 'undefined' && (live_customer_call < 1 && XD_live_customer_call < 1)) {
}, 60000);

is not needed and causes an error in the kamailio log.

The reason this is not immediately seen is because the version of kamailio that comes with goautodial does not handle this error properly and continues on.

From kamailio version 5.1.6 on, the bug was fixed and kamailio will disconnect the webphone and display the error in the log:

/usr/bin/kamailio2154: ERROR: <core> [core/parser/parse_fline.c:271]: parse_first_line(): parse_first_line: bad message (offset: 0)
/usr/bin/kamailio2154: ERROR: <core> [core/parser/msg_parser.c:680]: parse_msg(): ERROR: parse_msg: message=<PING>
/usr/bin/kamailio2154: ERROR: <core> [core/receive.c:307]: receive_msg(): core parsing of SIP message failed (
/usr/bin/kamailio2154: ERROR: <core> [core/parser/msg_parser.c:336]: parse_headers(): bad header field [(null)]

The code would run about a minute after the agent connects to the agent portal. Then suddenly the webphone would disconnect and the error appeared in the kamailio log.

I am happy to say I am running GO successfully with asterisk 17.5.0, rtpengine, and kamailio 5.3.4 on ARCH linux and found this error along the way.

I commented out that code without issue. The keep-alive is done in kamailio and the PING being sent in GOagentJS.php is not a properly formatted way to send a ping and also seems not to be needed.



Updated by Demian Lizandro Biscocho about 1 year ago

  • Status changed from New to In Progress

Thank you for the bug report and feedback. Glad to see that you're running GOautodial with Asterisk 17.X.

We haven't encountered this issue in all our installations. Might be related to Kamailio 5.1.X and higher versions.

This code might be deprecated since it's not really being used. Thank you posting this.


Updated by Demian Lizandro Biscocho about 1 year ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

Changes posted in Github repo.


Updated by Demian Lizandro Biscocho about 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF

Go to top