I am using Odoo 15 EE and I want to test VoIP.
I have installed Asterix in my local network and I have created two extensions using FreePBX 15.0.16.75 interface. I tested making calls from one extension to another using Zoiper softphones and the calls were correct. This way I could validate Asterix server is correct.
Moving to Odoo. I have v15 EE running locally (docker environment) and I added extension numbers in two employees and added the VoIP integration settings in General settings like this:
PBX Server IP: -> local IP address like 192.168.1.127
WebSocket: ws://
VoIP Environment: Production
When I save with the debugg mode activated, I see in the browser console
Connecting to WebSocket ws://192.168.1.127
web.assets_backend.min.js:12760 Fri Jun 24 2022 10:18:45 GMT+0200 (Central European Summer Time) | sip.transport | Transport error: The Websocket had an error LoggerFactory.print @ web.assets_backend.min.js:12760 LoggerFactory.genericLog @ web.assets_backend.min.js:12757 Logger.genericLog @ web.assets_backend.min.js:12761 Logger.warn @ web.assets_backend.min.js:12761 Transport.onError @ web.assets_backend.min.js:13453 Transport.onWebsocketError @ web.assets_backend.min.js:13453 error (async) (anonymous) @ web.assets_backend.min.js:13438 Transport.connectPromise @ web.assets_backend.min.js:13433 Transport.connect @ web.assets_backend.min.js:13217 (anonymous) @ web.assets_backend.min.js:13459 setTimeout (async) Transport.reconnect @ web.assets_backend.min.js:13459 Transport.onClose @ web.assets_backend.min.js:13453 web.assets_backend.min.js:12760 Fri Jun 24 2022 10:18:45 GMT+0200 (Central European Summer Time) | sip.transport | WebSocket disconnected (code: 1006) web.assets_backend.min.js:12760 Fri Jun 24 2022 10:18:45 GMT+0200 (Central European Summer Time) | sip.transport | WebSocket closed without SIP.js requesting it web.assets_backend.min.js:12760 Fri Jun 24 2022 10:18:27 GMT+0200 (Central European Summer Time) | sip.transport | Attempting to transition status from 0 to 3 web.assets_backend.min.js:12760 Fri Jun 24 2022 10:18:27 GMT+0200 (Central European Summer Time) | sip.transport | took too long to connect - exceeded time set in configuration.connectionTimeout: 5sIf I remove the "ws" from the websocket url, and let only the IP address I dont have any error.
BUT, when I click in the phone icon in Odoo to initiate a call it says: The server configuration could be wrong. Please check your configuration. Any help, please?The server configuration could be wrong. Please check your configuration.
Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | configuration parameters after validation: web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · viaHost: "192.0.2.164" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · uri: sip:2222@192.168.1.127 web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · custom: {} web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · displayName: "" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · password: NOT SHOWN web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · register: true web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · registerOptions: {} web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · transportConstructor: Transport web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · transportOptions: {"wsServers":"192.168.1.127","traceSip":true} web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · userAgentString: "SIP.js/0.13.8" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · noAnswerTimeout: 60000 web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · hackViaTcp: false web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · hackIpInContact: true web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · hackWssInTransport: false web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · hackAllowUnregisteredOptionTags: false web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · sessionDescriptionHandlerFactoryOptions: {"constraints": {"audio":true,"video":false},"iceCheckingTimeout":1000} web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · extraSupported: [] web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · contactName: "r8d9n2in" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · contactTransport: "ws" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · forceRport: false web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · autostart: true web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · autostop: true web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · rel100: "none" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · dtmfType: "info" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · replaces: "none" web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | · sessionDescriptionHandlerFactory: function(session,options). web.assets_backend.min.js:12760 Fri Jun 24 2022 10:20:56 GMT+0200 (Central European Summer Time) | sip.ua | user requested startup..