Our company is currently using Wildfire for interoffice communications and we also use a custom CRM that runs on the traditional LAMP stack. Recently we’‘ve been asked if it would be possible to “integrate” to the two in so much that the CRM could set the user’‘s Wildfire presence. They’‘ve imagined this to work so that when the user logs out of the CRM, they’‘re set to Away in Wildfire. I’‘m sure if we can get the functionality working, they’'ll find more uses for it.
I’'ve pondered a couple different options so far.
1- Having PHP connect to the admin console via HTTPS and disconnecting the user. While this works, it doesn’‘t allow us to change the user’'s presence, just disconnect them.
2- I’'ve looked at the existing plugins and while there is a user management one, it is oriented towards usernames, passwords, etc.
3- I considered having the CRM log into Wildfire as a Jabber client and changing the presence that way. The problems I see with this are 1) The user passwords are stored in MD5 and 2) I believe it would only change their presence for that session, not their existing session.
With all of that in mind, I think I’'m going to have to write a plugin to accomplish this task. I wanted to post here so that before I dive in, I can see if anyone has any tips or alternate methods. I know the Asterisk-IM plugin can change presence, so if I get to the point of writing one, I can atleast reference that one.
Any advice is appreciated in advance!