Picture of dirk39
Registered 5 years 223 days
dirk39 Wednesday, 26 February 2020, 05:39 PM
Unable to listen user event from WS
Hi,
we are facing a problem during the production tests of our application. We use a WSS connection to login and listen user events and communicate with our CRM. We logged in correctly and send the the "Initialize" and "UserInitialize" to application and still works. Problems starts when we try to start a call Using RCC "UserCall": application respond with "user unknown". We've repeated the tests using our Innovaphone server and everything works fine. Another thing we noticed was that we do not receive any event from the server.

Could you help us to troubleshoot the issue?

Thanks
Picture of Klaus Wallnöfer (innovaphone)
Registered 12 years 283 days
Klaus Wallnöfer (innovaphone) Thursday, 27 February 2020, 09:43 AM
Re: Unable to listen user event from WS
@DVL Please see for trace and data Ticket ###262364###
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 192 days
Matthias Schertler (innovaphone) Thursday, 27 February 2020, 10:50 AM in response to dirk39
Re: Unable to listen user event from WS
Hello Dirk,

I looked at the trace and the message flow (modified not to have real names / numbers).
  1. send: {"mt":"Initialize","api":"RCC"}
  2. send: {"mt":"UserInitialize","api":"RCC","cn":"test-2"}
  3. send: {"mt":"UserCall","api":"RCC","e164":123,"cn":"Some Name","rc":0,"user":"some.name","audio":false,"srce164":"01234567890","h323":"some.name"}
  4. recv: {"api":"RCC","mt":"UserInitializeResult"}
  5. recv: {"api":"RCC","mt":"UserCallResult","call":0,"error":"user unknown"}
  6. recv: {"mt":"InitializeResult","api":"RCC"}

Some thoughts, when comparing with the documentation of the RCC API:
http://sdk.innovaphone.com/doc/appwebsocket/RCC.htm
  • I'm not sure if the application should better wait for the result messages, so the flow would then look like follows: Initialize/InitializeResult, UserInitialize/UserInitializeResult, UserCall/UserCallResult. But I'm not sure if this is a problem here.
  • Between the Initialize and the InitializeResult, I would expect some UserInfo messages. So no users are visible to the app? This could be a configuration problem. There are some hints in the docu about different configuration options.
  • UserInitialize seems to be the first thing that fails. If "cn":"test-2" would be found, we should see an attribute "user" in UserInitialize result, that's the handle that can be used for UserCall later on.
  • In UserCall you use a string "user". From the docu it looks like "user" should be the integer ID returned by UserInitializeResult.
Hoping this was helpful.

Best regards
Matthias
← You can define your color theme preference here