Picture of s.taras
Registered 5 years 82 days
s.taras Thursday, 10 December 2020, 05:41 PM
Problem with websocket connection
Hi. I have a problem with websocket connections to service.
I have 2 connections, that are creating in same way.
But one of this connection is stable, another one - do not pass Applogin stage.
Can you please advice me how to find the problem.

Here is the logs from service:
12-10 16:30:11.966 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocket
12-10 16:30:12.001 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketRecv
12-10 16:30:12.002 softphone2@example.com AppWebsocket(014f2ad0)::WebsocketSendResult() connected=0 sendCount=0
12-10 16:30:12.084 softphone2@example.com AppWebsocket(014f2ad0)::WebsocketSendResult() connected=1 sendCount=1
12-10 16:30:12.085 softphone2@example.com AppWebsocket(014ede60)::AppWebsocketRecvResult {"mt":"AppLogin","app":"byon-softphone2","domain":"development01-199.de","sip":"taras_s1","guid":"c48f7ec80c905f01ea64005056936e79","dn":"DN: taras_s1","info":{"appobj":"softphone2","appurl":"https://app-platform-ext-dev.kunden-zugang.de/softphone2/byon-softphone2","cn":"taras s1","apps":[{"name":"calllist"},{"name":"calllist-api"},{"name":"callpoint"},{"name":"contacts"},{"name":"contacts-api"},{"name":"pbxsignaltest"},{"name":"reporting"},{"name":"softphone2"},{"name":"softphone2admin"}]},"digest":"7213d2e7ada19a192dad882648b4a271c0ea6c311788a6136937e5fce9266ec8","pbxObj":"softphone2"}
12-10 16:30:12.085 softphone2@example.com AppWebsocket(014ede60)::Error
12-10 16:30:12.085 softphone2@example.com AppWebsocket(014ede60)::WebsocketSendResult() connected=1 sendCount=0
12-10 16:30:12.085 softphone2@example.com AppWebsocket(014ede60)::AppWebsocketSendResult
12-10 16:30:12.118 softphone2@example.com AppWebsocket(014ede60)::AppWebsocketClosed
12-10 16:30:12.118 softphone2@example.com AppWebsocket(014ede60)::~AppWebsocket
12-10 16:30:12.118 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketRecvResult {"mt":"CheckBuild","url":"https://app-platform-ext-dev.kunden-zugang.de/softphone2/13A1072/byon-softphone2.htm"}
12-10 16:30:12.118 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketRecv
12-10 16:30:12.119 softphone2@example.com AppWebsocket(014f2ad0)::WebsocketSendResult() connected=1 sendCount=0
12-10 16:30:12.119 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketSendResult
12-10 16:30:12.187 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketRecvResult {"api":"PbxApi","mt":"SubscribeProfile"}
12-10 16:30:12.187 softphone2@example.com AppWebsocket(014f2ad0)::AppWebsocketMessageComplete connected:true
12-10 16:30:13.199 softphone2@example.com AppWebsocket(014ede60)::AppWebsocket

Thank you, Taras
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Thursday, 10 December 2020, 06:19 PM
Re: Problem with websocket connection
Hi Taras,

are the two websocket connections made from the same app inside the same myApps?

We recently found that we are missing support for the scenario that an app opens two websocket connections that both use the myApps user login at the same time. In that case the AppLogin message for one connection is erroneously sent to both connections.

This is fixed in the upcoming 13r2 beta, already. But in 13r1 there is no support for it as of now.

Can you maybe work around the problem by using a single connection?

BR
Matthias
Picture of s.taras
Registered 5 years 82 days
s.taras Thursday, 10 December 2020, 09:21 PM
Re: Problem with websocket connection
Hi Matthias.

Thank you for fast responce. Yes 2 connections from same myApp.
Will try to implement work-around.

Taras
← You can define your color theme preference here