You could try https://www.kamailio.org/docs/modules/devel/modules/pua_dialoginfo I 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 https://www.kamailio.org/docs/modules/devel/modules/evapi or nsq https://www.kamailio.org/docs/modules/devel/modules/nsq or xhttp https://www.kamailio.org/docs/modules/devel/modules/xhttp combined with pua_json https://www.kamailio.org/docs/modules/devel/modules/pua_json and presence https://www.kamailio.org/docs/modules/devel/modules/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
On Mon, Dec 28, 2020 at 9:20 AM Michel Pelletier < michelpelletier07@gmail.com> wrote:
Hi,
What is the recommended practice for implementing a self-sustained Presence server from my current Kamailio configuration? That is I want the Presence module to be fed status updates as Kamailio is routing calls and handling registrations. So when a user registers, his phone is ringing, he is on the phone, etc.., the Presence module gets notified and can update its subscribers accordingly. Must I add snippets of codes to all of these events and generate local Publish messages, or is there a better way?
I'm using the latest version 5.4.x.
Regards,
Michel Pelletier _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users