You could try
https://www.kamailio.org/docs/modules/devel/modules/pua_dialoginfoI did not have much luck with the module (it seemed to have intermittent issues with BLF lighting up/down) but I also did not invest a ton of time figuring it out.
I ultimately took a different approach, which is to
extract the presence out of other services (e.g. FreeSWITCH via ESL) using custom code and then publishing the presence updates via modules such as
evapi or
nsq or
xhttp combined with
pua_json and
presence modules.
This approach seemed to provide the flexibility I needed and allowed me to expose an external API for controlling presence (e.g. fire MWI updates, parking lot update, etc...)
I hope this helps!
Thanks,
Emmanuel