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