Ejabberd and Hosted PBX integration

Hi

We have a Ejabberd server installed with some our custom modules and we're trying to integrate it with our Hosted PBX system. The Hosted PBX generates some presence information like "calling", "on call", "end call" and sends that information to our Ejabberd "mod_pbx" module (using some proprietary protocol). In the "mod_pbx" module we use mod_admin_extra:set_presence() to temporary change the status of a user during the call. It works well for "online" users and doesn't work for offline.

For example, Alice and Bob are clients of our Hosted PBX system and they both registered on our Ejabberd server. Alice has a running XMPP client and Bob doesn't (or it has "offline" status). Alice want's to see the Bob's phone presence events despite the fact that Bob is "offline".

I'm understand why it doesn't work for "offline" users and I'm trying to "fix" it. I need some advice how to do this without huge modifications of Ejabberd core.

Thank you,
Grigory

Syndicate content