Hi,
we are using pjsua-api to implement presence updates on iOS.
We have successfully implemented adding a buddy (with pjsua_buddy_add
https://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BUDDY.htm#gad1b82adc1e1cfe921a9dae1204b73388)
and subscribing to presence changes (with pjsua_buddy_subscribe_pres
https://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BUDDY.htm#ga05c4ba4b1528b484e3b21f89d5253a18
).
However, looking at the documentation I'm not sure how to listen to buddy
status changes.
I could periodically check the buddy status (with pjsua_buddy_get_info
https://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BUDDY.htm#ga5adda312fa7dff7a782a0d4447b3175c)
but is that the right way?
Any guidance appreciated.
Thanks,
Chris