Setup Openfire Chat Server and Configure Asterisk-IM Plugin

In this session, I will show you how to setup the Openfire real-time collaboration server from Ignite Realtime. This free, open source application is a great way for organizations to leverage chat capabilities.

Also, we’re going to configure the Asterisk-IM plugin to interface with our Asterisk PBX. This plugin can be configured to display Caller ID information, and view the phone status of other users.

We’ll be using Spark as the chat client, also from Ignite Realtime.

Installing Openfire on Fedora is simple:

rpm -ivh openfire-3-5-2-1.i386.rpm

When the transaction has completed and Openfire has started, access http://hostname:9090 to finish the remaining portion of the setup process.

In this demo, I used a domain name for the system that would be considered inadequate in most cases. It is always best to use the FQDN (fully qualified domain name) of your system. Also, don’t forget to allow client traffic through your firewall (TCP 5222-5223), with each client as well. Did you run into configuration issues or problems? How did this install go for you?

 

About Benjamin Perove

Benjamin has been associated with computer technology starting from a very early age, and has contributed to the success of many businesses and enterprises since 2001. He loves to crush pow at Keystone, play acoustic guitar, climb rocks, and ascend mountains on his road bike. Benjamin is an Avalanche fan and currently resides in Boulder, Colorado.

25 Comments so far

  1. James @ September 18th, 2008

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

  2. Thermal @ October 12th, 2008

    Thanks for the screencast.

    For some reason when ever I add the Asterisk server in Astetrisk-IM the CPU usage spikes. The two main processes that are using CPU are Java and Asterisk. I can tell that the plugin was able to login by looking at the manager users at the asterisk command line.

    The Openfire/Spark part is working great. I get presence, chat, etc.

    The Openfire and Asterisk are on the same Linux box.

    Did you have to do anything else that wasn't on the video?

  3. thermal @ October 13th, 2008

    It looks like it was a manager.conf permision error.

    I thought I read you only need this permision set:
    read = system,call

    I added read & write everything and it started working.

    Does anyone know what the permisions should be?

    -thermal

  4. Ghost @ November 17th, 2008

    hey man, great tutorial, I was looking for a basic setup for a chat server and this webcast helped me a lot.

  5. Ghost @ November 17th, 2008

    hey man, great tutorial, I was looking for a basic setup for a chat server and this webcast helped me a lot.

  6. Ashish @ January 18th, 2009

    Thanks very much. It is very informative. The sound and video quality are excellent.

    Ashish

  7. Sheldon @ March 26th, 2009

    i am a rank newbie when it comes to this stuff but with your fine video i was able to get it up and running quicker than my ” techy” friend that said it couldn’t be done …. and it works great frankly i’m amazed @ how cool the spark app isd and all the features avaiable … but i can’t for the life of me figure out how to get the phone thing to work … or the SIP plugin how does that relate i can’t find any settings or manual for it can you help me out here ….

    i would even be willing to pay you $$$ i just wanna get this to work :) i have a windows 208 dedicated server and openfire with those plugins how do i get it to work…

  8. Nishant kumar @ November 10th, 2009

    Nice blog
    Hyper link to Spark in “Link to We’ll be using Spark as the chat client” not working. Please correct it.

  9. Ben @ December 26th, 2009

    It’s been fixed. Thanks Nishant

  10. Aiswarya @ February 5th, 2010

    HI
    Its a nice blog.
    I have a different doubt.
    I installed spark chat in my system.Can I invoke spark chat from my own application?.ie.I created one application which has username and password.And there is a button for chat.When I click that button I need to invoke spark chat window automatically and I should pass the username and password into that spark chat window.Is there any code for that?
    Please help me……

  11. Sharron Clemons @ December 21st, 2010

    Thanks for the screencast.For some reason when ever I add the Asterisk server in Astetrisk-IM the CPU usage spikes. The two main processes that are using CPU are Java and Asterisk. I can tell that the plugin was able to login by looking at the manager users at the asterisk command line.The Openfire/Spark part is working great. I get presence, chat, etc.The Openfire and Asterisk are on the same Linux box.Did you have to do anything else that wasn’t on the video?

  12. Ben @ December 26th, 2010

    Hi Sharron, at the time of the recording both Openfire and Asterisk were running on the same server.

    When I was playing around with the integration, I noticed the java process hogging a lot of CPU. This was the case with Openfire; it took at least a few minutes to restart the service each time. Are you running Asterisk 1.4 or 1.6? Do you have enough free memory on the server or are you swapping to disk?

  13. vishal @ May 7th, 2011

    This screencast is realy helpful for the Eng & Small Business Or Company Thanks A lot

  14. Nagaraj @ October 10th, 2011

    Dear Friends

    I have problehem in network after the configuration of Operfire chat server in my local lan.It show huge latency difference while pinging.can someone help to resolve this issue.

  15. Ben @ October 11th, 2011

    Hi @Nagaraj, can you give more details? What are you pinging which is slow to respond, and from where? Does latency return to normal when Openfire is shut down? The more information the better…

  16. Don @ November 8th, 2011

    Hi Ben,

    Thank you very much for putting this how-to together. It was very helpful.
    I have only one problem with the system and that is that on a Mac Spark client the phone notification doesn’t come up when you get a call or make a call.
    I have been looking everywhere for some type of hint about what the problem might be.

    Any ideas ?

    Thank you . . . Don

  17. sutarno @ November 20th, 2011

    IM spark i do not need Broadcast message, how to disable/remove that’s plugins on the tools

    help me pls….

    thanks ..SUT

  18. Carlo @ May 23rd, 2012

    i followed all your screencast the users see others i added asterisk Im plugin all is ok, the problem is when i try to add users/extensions , they don’t log in to asterisk infact i not able to make calls with sparks and they don’t are online in asterisk.. can you help me?!

  19. Vijay Singh @ May 30th, 2012

    I have installed Openfire 3.7.1 with Subscription 1.2.2, Registration 1.5.0, Presence Service 1.5.0, Redfire 0.0.0.06 & Asterisk-IM 1.4.0 plugin on Windows 2008 R2 64 bit. I am using mysql as database for openfire. I am using Spark 2.6.3 client. Users are able to chat, make video calls thru Redfire plugin. I have installed Asterisk 1.8.12.0. In openfire asterisk server is showing registered (green button) in Asterisk-IM pulgin configuration page. I have mapped sip account with users. Now problem is that SIP accounts are not showing resitered in Asterisk and users are not able to make calls thru phone menu/button from spark client. I am able to make calls if I directly register sip client like xlite on asterisk server. I am getting following log in Asterisk when I try make call from Spark client:-

    channel.c:5346 __ast_request_and_dial: Unable to request channel SIP/1001

    Can anyone share config files of working openfire asterisk-im setup i.e. extenstions.conf and sip.conf.

    Kindly help.

  20. Ratz @ June 11th, 2012

    Hi,

    I have installed openfire Chat server. I dont want users to do videoconferencing…..is their any way we can stop that?

    Pls help….

  21. bdmonowar @ July 1st, 2012

    How can i config asterisk im server with openfire help me pls…….. . its urgents pls

  22. Mike @ June 4th, 2013

    How do you get the nice popup showing the incoming telephone number ? I can see the icon changing and saying that somebody is on the phone but couldn’t figure how to get the popup, BTW excellent tutorial!

  23. Kolawole @ July 31st, 2013

    I have installed openfire 3.8.2 and spark 2.6.3 and Asterisk-IM the latest version from the site. I cannot get the Asterisk-IM to connect to the asterisk server. The indicator on the left remains a boring grey despite addition of the correct parameters from the asterisk server. Please can you advise to what steps to take to correct this. I installed the SIP pluggin, it works but the audio is terrible and it does not handle calls correctly.

    Thanks in advance.

    Kohla

  24. Liza Ann @ November 4th, 2013

    Hello, I’ve installed Openfire on my Windows server 2008 and when I try to setup for the first time, I’m unable to connect to the database I have created on my asterisk machine. It shows “connection to database could not be made” . I have opened the sql port:3306 on my server machine. It still fails to connect. Please help.

    Thanks in advance

  25. Peter @ November 9th, 2013

    Can i use a open source soft phone like, linphone
    for a setup with my asterisk server and openfire?

    Thanks in advance.

Leave a reply

Add this site to your Firefox Search Bar

Twitter Updates


No public Twitter messages.

Recent Entries

Topics

Archives

This site is optimized for Firefox.