Asterisk Binding Openhab2

I am new to Openhab and started with Openhab2.

I want to install Asterisk to use it with OH2. But i can only find a Jar File and not a Kar-File for this Binding.

How do i manage to connect the Binding to my OH2. Just place it in openhab2/addons doesnt work. Nothing about asterisk in the openhab2.log.

What do i missing.

The wiki page appears to lack the configuration information. Try creating a file services/asterisk.cfg containing:

############################### Asterisk Binding ######################################
#
# Please note: The Asterisk Management Interface (AMI) has to be activated in the
# manager.conf file of your Asterisk PBX.

# hostname of the AMI
#host=

# the username and password to login to the AMI
#username=
#password=

and supply the correct values for the configuration parameters, and remove the # that precedes them.

I put the jar-File in /usr/share/openhab2/addons and added the asterisk.cfg with the right values and it works.

Thank you

1 Like

You’re welcome! Wiki updated.

Where I can download the Jar File for Asterisk ?
I use OH2, can I use the “org.openhab.binding.asterisk-1.8.3.jar” or there is a new version ?

You can find a recent build here. With the upcoming openHAB 2.0.0 release, there will be a more official way to get the JAR. Generally, the 1.8.3 versions of 1.x addons will not work properly under openHAB 2.

1 Like

It works !
Thank you very much !

Do I have install Asterisk on my PC?
I’m using raspberry pi 3

anyone please answer?

You can install it on your raspi.

I know, but do I need to install it on my rasp to use asterisk binding with openhab?
Thanks for your reply :3

No.

As you can see in the binding documentation, you can specify hostname (dns or ip address) for the asterisk server.

http://docs.openhab.org/addons/bindings/asterisk1/readme.html

Oh Can you share the tutorial how to setup Asterisk server ? As you said, I’d rather not to install asterisk on my rasp, right?

I did google to see what should I do to create a Asterisk server, but all of them are about installing asterisk at the beginning, so this makes me confused!
Thanks alot

Why you would use the Asterisk binding without a running Asterisk?

Do you know what the Asterisk does?

It is no Problem to install Asterisk before or after Openhab on the same Raspi.

It is no need to install the Asterisk on the Raspi where Openhab runs, but if you got no running Asterisk, then it is okay to install Asterisk on the same Raspi. Or another Raspi lying around :slight_smile:

1 Like

I’d recommend to take a step back and think about your goal.

Here are my assumptions:

  1. You want to use Asterisk as your home PBX (“phone server”) and have read about the functionality, possibilities and restrictions of it.
  2. You own an openHAB installation and want to integrate events from Asterisk into your home automation

Looking at the above you’ll have to go through three steps:

  1. Install Asterisk on your preferred device/system http://lmgtfy.com/?q=Asterisk+Installation+yourOperationSystem
  2. Configure Asterisk as your PBX https://wiki.asterisk.org/wiki/display/AST/Home
  3. Connect and Link Asterisk to openHAB http://docs.openhab.org/addons/bindings/asterisk1/readme.html

The first and second step are up to you and unrelated to openHAB. Please feel free to come back here with any question related to step three, we will be happy to assist with problems at that point.

1 Like