amigniter / mod_audio_stream

FreeSWITCH module to stream audio to websocket and receive response
MIT License
66 stars 31 forks source link

Connection Dropped or Connection error #54

Open Pandi1981 opened 2 weeks ago

Pandi1981 commented 2 weeks ago

Hi team, while calling the callbackuri, if the Connection Dropped or Connection error its keep on retrying to establish the connection. Please let me know how to call the session cleanup, because i dont want retry again and again to establish the connection....

Note: during this time CPU went very high.... Please check and let me know how to optimize... Please refer the below error message.... Need to configure anything in the dial plan to handle the media bug...

2024-08-25 13:45:02.432833 96.98% [ERR] audio_streamer_glue.cpp:204 WEBSOCKET: connection Dropped {"status":"disconnected","message":{"code":1006,"reason":"Abnormal closure"}} 2024-08-25 13:45:04.572822 95.80% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Failed reading HTTP status line from wss://loadtest-assistant.salesken.ai/stream/ecosmob/agent/testlead@devqa.com/4474fa4c-59c4-4d30-93f4-4d45e2538da3","wait_time":100,"http_status":0}} 2024-08-25 13:45:04.712814 95.80% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.195923 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: OpenSSL failed - underlying BIO reported an I/O error","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: OpenSSL failed - underlying BIO reported an I/O error","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: OpenSSL failed - underlying BIO reported an I/O error","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}} 2024-08-25 13:45:06.832815 94.14% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: OpenSSL failed - underlying BIO reported an I/O error","wait_time":100,"http_status":0}} 2024-08-25 13:45:07.712802 93.19% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}} 2024-08-25 13:45:07.712802 93.19% [ERR] audio_streamer_glue.cpp:209 WEBSOCKET: connection error {"status":"error","message":{"retries":1,"error":"Unable to connect to loadtest-assistant.salesken.ai on port 443, error: Connect error: Connection timed out","wait_time":100,"http_status":0}}

Pandi1981 commented 2 weeks ago

Please let me know if it's required log file or any information... Because I am not getting any response from this portal... 16core 32 gb ram.. Any configuration required in the freeswitch side or sever side