Picture of Ralf 5242
Registered 4 years 61 days
Ralf 5242 Monday, 23 October 2023, 01:44 PM
PbxApi - SubscribePresence - Phone status change does not generate an event

Hello,

we use the PbxApi (WebSocket) to monitor the presence status of the user/phones. Here we have the problem, that no event is generated when the user starts/closes the phone.

Scenario:

  • The user has the softphone closed (appclient).
  • We register via PbxApi for presence events for the user.
  • The user starts the softphone and clicks on the App “Softphone”.
  • No event is received that the user is now “open”!!!
  • Only when manually the presence status is changed then an event is received.

Here in detail what messages we receive:

  • The user has the softphone closed (appclient).
    23.10.2023 12:18:52 - SendData: { "api": "PbxApi", "mt": "SubscribePresence", "src": "claudia.erlen", "sip": "claudia.erlen" }

  • We register via PbxApi for presence events for the user.

23.10.2023 12:18:52 - ReadData: {"api":"PbxApi","src":"claudia.erlen","mt":"SubscribePresenceResult"}

23.10.2023 12:18:52 - ReadData: {"api":"PbxApi","src":"claudia.erlen","mt":"PresenceState","up":true,"sip":"claudia.erlen","dn":"Claudia Erlen","num":"63"}

23.10.2023 12:18:52 - HandlePresence: Users={"api":"PbxApi","src":"claudia.erlen","mt":"PresenceState","up":true,"sip":"claudia.erlen","dn":"Claudia Erlen","num":"63"}

23.10.2023 12:18:53 - ReadData: {"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"closed"},{"contact":im:,"status":"open"}]}

23.10.2023 12:18:53 - HandlePresence: Users={"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"closed"},{"contact":im:,"status":"open"}]}

  • The user starts the softphone and clicks on the App “Softphone”.
  • No event is received that the user is now “open”!!!
    à Here an event should be received that the status is now “open”!!!
  • See “Note” below – the status is now “open” but no event is generated.
  • Only when manually the presence status is changed then an event is received (here to “busy”

23.10.2023 12:24:28 - ReadData: {"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"open","activity":"busy"},{"contact":im:,"status":"open"}]}

23.10.2023 12:24:28 - HandlePresence: Users={"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"open","activity":"busy"},{"contact":im:,"status":"open"}]}

23.10.2023 12:24:29 - ReadData: {"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"open","activity":"busy"},{"contact":im:,"status":"open"}]}

23.10.2023 12:24:29 - HandlePresence: Users={"api":"PbxApi","src":"claudia.erlen","mt":"PresenceUpdate","presence":[{"contact":tel:,"status":"open","activity":"busy"},{"contact":im:,"status":"open"}]}

Note:

When the user first opens the phone and we then subscribe to the presence status we receive as “status” “open”. So internally the status is tracked/correct but no event is generated when the status “changes”!

Andreas Fink
Moderator Registered 13 years 46 days
Andreas Fink (innovaphone) Thursday, 26 October 2023, 04:47 PM
Re: PbxApi - SubscribePresence - Phone status change does not generate an event
Hello Ralf,

can you confirm, that the issue with missing presence update persists only for the software phone registrations, but not for the ip-phone registrations?

Best Regards
Andreas Fink
Picture of Ralf 5242
Registered 4 years 61 days
Ralf 5242 Friday, 27 October 2023, 08:10 AM
Re: PbxApi - SubscribePresence - Phone status change does not generate an event
Hello,

I can confirm that it happens for:
- Softphone in Browser
- Softphone as App

Other types of phones we do not have.

Best Regards,
Ralf Kloth
Andreas Fink
Moderator Registered 13 years 46 days
Andreas Fink (innovaphone) Friday, 27 October 2023, 12:07 PM
Re: PbxApi - SubscribePresence - Phone status change does not generate an event
Hello Ralf,

could you open a Support Ticket with the data you already provided here, so we can handle it as usual support case for a problem in the firmware and give you feedback via the support channel, when it is fixed?

Best Regards
Andreas Fink


Picture of Ralf 5242
Registered 4 years 61 days
Ralf 5242 Friday, 27 October 2023, 03:31 PM
Re: PbxApi - SubscribePresence - Phone status change does not generate an event
Hello,

support ticket created.

Best Regards,
Ralf Kloth
← You can define your color theme preference here