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

Ben has been associated with a broad spectrum of technologies starting from an early age, and he's contributed to the success of many businesses and enterprises professionally since 2001. Most of his time is spent building cool stuff. When he's not working, he enjoys reading, playing acoustic guitar, and being with friends. He currently resides in Medellin, Colombia.

  • James

    Hi, I found your blog on this new directory of WordPress Blogs at 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.

  • Thermal

    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?

  • thermal

    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?


  • Ghost

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

  • Ghost

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

  • Ashish

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


  • Sheldon

    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…

  • Nishant kumar

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

  • Ben

    It’s been fixed. Thanks Nishant

  • Aiswarya

    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……

  • Sharron Clemons

    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?

  • Ben

    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?

  • vishal

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

  • Nagaraj

    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.

  • Ben

    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…

  • Don

    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

  • sutarno

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

    help me pls….

    thanks ..SUT

  • Carlo

    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?!

  • Vijay Singh

    I have installed Openfire 3.7.1 with Subscription 1.2.2, Registration 1.5.0, Presence Service 1.5.0, Redfire & 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 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.

  • Ratz


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

    Pls help….

  • bdmonowar

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

  • Mike

    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!

  • Kolawole

    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.


  • Liza Ann

    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

  • Peter

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

    Thanks in advance.

  • roy

    Hello! I have followed your instructions and I have set up everything like on your video but when I add my Asterisk server it does not show up green and I have the following error message on my asterisk server:
    2014-05-15 15:47:20] NOTICE[3033]: manager.c:2623 authenticate: failed to authenticate as ‘admin’
    Of course I had carefully verified the password on the different config files on Asterisk and by the way I use the default password (that is amp111), so I wonder if there is any special configuration that needs to be done on the Asterisk server to let the Openfire server connect on it. Please let me know. Thanks a lot for your kind help.configuration that need to be done on the asterisk server to let the openfire server connect on it ? please let me know

  • Pingback: relational database()

  • Pingback: Reputation Rhino()

  • Pingback: personal finance articles for students()

Got WordPress Security?

You will definitely wish you had downloaded my top 5 recommendations when you're cleaning out malicious Javascript from deep within you WordPress site. Enter your email and get the PDF right now, before it's too late.