Picture of tsn
Registered 4 years 358 days
tsn Friday, 30 October 2020, 01:52 PM
User presence subscription with IPbxApiPresenceSubscription
Hi guys,

I've faced with a strange issue with presence subscription.

For some reason I can see presence updates for one user and can't see for another. However, using client API in JavaScript code I can see presence updates for both.

User objects for these users are the same and both have visibility set for domain and app as well. But when I try to subscribe `IPbxApi::CreatePresenceSubscription` I don't receive `TaskProgress` callbacks for the affected user even I successfully logged in for this user and can change its presence.

Any ideas where to look and what to check to fix this?

Best regards,
Sergey
Picture of tsn
Registered 4 years 358 days
tsn Thursday, 5 November 2020, 09:09 AM
Re: User presence subscription with IPbxApiPresenceSubscription
Hi guys,

Any update on this?
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Monday, 9 November 2020, 01:30 PM in response to tsn
Re: User presence subscription with IPbxApiPresenceSubscription
Hello Sergey,

I would expect this to work, as long as corresponding the visibility of the user is configured for the app.

Can you post the config lines for the two user objects? I'd like to see if there is a difference and if I can reproduce it.

BR
Matthias

Picture of tsn
Registered 4 years 358 days
tsn Monday, 9 November 2020, 02:25 PM
Re: User presence subscription with IPbxApiPresenceSubscription
Hi Matthias,

Please find it attached.

User `sergey` works fine, but `sergey4` is not.

users.png

Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Monday, 9 November 2020, 02:32 PM
Re: User presence subscription with IPbxApiPresenceSubscription
Hi Sergey,

can you please attach the PBX config as a text file?

I'd try to reproduce the same on my test PBX/AP.

BR
Matthias
Picture of tsn
Registered 4 years 358 days
tsn Monday, 9 November 2020, 03:19 PM
Re: User presence subscription with IPbxApiPresenceSubscription
Matthias,

Please check your mailbox, we have sent the config to you.
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Thursday, 12 November 2020, 10:09 AM
Re: User presence subscription with IPbxApiPresenceSubscription
Hello Sergey,

thanks for the mail. The configuration looks quite normal to me, indeed. I'll try it out...

BR
Matthias
Picture of tsn
Registered 4 years 358 days
tsn Thursday, 12 November 2020, 11:21 AM
Re: User presence subscription with IPbxApiPresenceSubscription
Hi Matthias,

Thank you for confirmation. Will look forward to you feedback.

Best regards,
Sergey
Picture of tsn
Registered 4 years 358 days
tsn Thursday, 26 November 2020, 07:43 PM
Re: User presence subscription with IPbxApiPresenceSubscription
Hi Matthias,

I've found the reason for this issue.
It was caused because I used `h323` value for both `sip` and `num` parameters. And in case it contains digits I was unable to receive presence for this user. Now I'm using only `sip` parameter passing there `h323` value and not using `num` passing `nullptr` for it.
Thank you for your help.

Best regards,
Sergey
← You can define your color theme preference here