waveplate / openduplex

openduplex uses speech-to-text, artificial intelligence and text-to-speech, to call businesses and make appointments for you
GNU General Public License v3.0
24 stars 3 forks source link

Issue while running docker app. #2

Open dgkris opened 2 weeks ago

dgkris commented 2 weeks ago

While running the application it says connection timeout to the sip server. username@sipserverip : connection timeout.

im able to connect via sip clients to the server. hence raising an issue

:"nodejs|Mongoose","version":"5.9.2|7.8.1"},"platform":"Node.js v19.9.0, LE","os":{"name":"linux","architecture":"x64","version":"5.15.153.1-microsoft-standard-WSL2","type":"Linux"}}}} mongo-1 | {"t":{"$date":"2024-08-29T17:10:51.681+00:00"},"s":"I", "c":"NETWORK", "id":6788700, "ctx":"conn2","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":2}} duplex-1 | node:events:491 duplex-1 | throw er; // Unhandled 'error' event duplex-1 | ^ duplex-1 | mongo-1 | {"t":{"$date":"2024-08-29T17:10:51.950+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1","msg":"Connection ended","attr":{"remote":"172.18.0.3:36108","uuid":{"uuid":{"$uuid":"27fa3f36-f071-49ca-b6b4-c304f11deda2"}},"connectionId":1,"connectionCount":1}} duplex-1 | Error: Unexpected server response: 401 mongo-1 | {"t":{"$date":"2024-08-29T17:10:51.951+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn2","msg":"Connection ended","attr":{"remote":"172.18.0.3:36114","uuid":{"uuid":{"$uuid":"28329936-c414-43e1-bd57-9bc55df6ef71"}},"connectionId":2,"connectionCount":0}} duplex-1 | at ClientRequest. (/home/duplex/speech-engine/node_modules/ws/lib/websocket.js:913:7) duplex-1 | at ClientRequest.emit (node:events:513:28) duplex-1 | at HTTPParser.parserOnIncomingClient (node:_http_client:693:27) duplex-1 | at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) duplex-1 | at TLSSocket.socketOnData (node:_http_client:535:22) duplex-1 | at TLSSocket.emit (node:events:513:28) duplex-1 | at addChunk (node:internal/streams/readable:324:12) duplex-1 | at readableAddChunk (node:internal/streams/readable:297:9) duplex-1 | at Readable.push (node:internal/streams/readable:234:10)

dgkris commented 2 weeks ago

reg: sip: @: Register: Connection timed out

waveplate commented 1 week ago

Error: Unexpected server response: 401

something is sending a 401 and the error is coming from websocket.js -- are you using elevenlabs? if not, you need to disable it and use espeak. if you are meaning to use elevenlabs, temporarily switch to espeak and see if the error goes away. if so, double check your API key is valid, and you have credits etc.