Picture of Tomas 1082
Registered 11 years 342 days
Tomas 1082 Thursday, 24 September 2020, 07:38 PM
subscribePresence
Hi,

I can subscribe to one users presence fine, but when I try to do another subscribePresence to another sip, there is no response. eg

->{"api":"PbxApi","mt":"SubscribePresence","sip":"anette","num":null}' |
<-{"api":"PbxApi","mt":"SubscribePresenceResult"}
<-{"api":"PbxApi","mt":"PresenceState","up":true,"sip":"anette","dn":"Anette test","num":"3784","email":"anette@vcom.no"}
<-{"api":"PbxApi","mt":"PresenceUpdate","presence":[{"contact":"tel:","status":"open","activity":"dnd"},{"contact":"im:","status":"closed"}]}
->'{"api":"PbxApi","mt":"SubscribePresence","sip":"tomas","num":null}'
<nothing>

Any idea why?
Picture of Tomas 1082
Registered 11 years 342 days
Tomas 1082 Friday, 25 September 2020, 01:12 PM
Re: subscribePresence
Anyone?

Attached is a trace in text from wireshark
websocket.txt
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Thursday, 10 December 2020, 03:07 PM
Re: subscribePresence
Hi Tomas,

can you please try the following:
  • Omit the "num" attribute. In the text file I see that it's an empty string "" instead of null/undefined.
  • Add a "src" attribute to the two SubscribePresenceMessages with different string value.
{"api":"PbxApi","mt":"SubscribePresence","sip":"thomas","src":"1"}
{"api":"PbxApi","mt":"SubscribePresence","sip":"anette","src":"2"}

Please tell, if this helped. If so, I should clarify in the documentation.

BR
Matthias
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Thursday, 10 December 2020, 05:32 PM
Re: subscribePresence
Hi Tomas,

I found a bug in our software that could be your problem.

For now you should be able to work around it by using a distinct "src" for each presence subscription.

BR
Matthias
Picture of Tomas 1082
Registered 11 years 342 days
Tomas 1082 Monday, 14 December 2020, 08:32 PM
Re: subscribePresence
Hi Matthias,

thanks.

Yes it works with an unique src for each subscription. So this is a bug and will not be required in future releases? You know when it will be fixed?

Regards
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Tuesday, 23 March 2021, 12:10 AM
Re: subscribePresence
Hi Thomas,

yes. The fix is inlcuded in 13r2 beta1.


BR
Matthias
← You can define your color theme preference here