Solved

Asterisk Gurus - How do you get AJAM (Asynchronous Javascript Asterisk Manager) to work?

Posted on 2013-12-03
6
576 Views
Last Modified: 2013-12-04
I'm very new to Asterisk and was reading about AJAM (Asynchronous Javascript Asterisk Manager). It sounds great but ... I'm having a devil of a time getting it to work! Most of the docs say:

As of version 1.4, Asterisk comes packaged with a small web server called AJAM,which may be used to access the Asterisk Manager Interface (AMI) via HTTP.

.. and go on to give instructions on how to enable it via the "manager.conf" and "http.conf" files. The instructions make sense and everything sounds peachy. Problem is I've tried several distros in a VM but none of them even have the "http.conf" file mentioned. At least not in that location.

* http://www.schmoozecom.com/distro-download.php
* http://www.asterisk.org/downloads/asterisknow

So ... how the heck do you get this feature work? :) Do I need to install something extra, modify a different file, ...? I know I'm missing something here .. but am too new to know what it is. Pointers anyone? :)
0
Comment
Question by:_agx_
  • 3
  • 3
6 Comments
 
LVL 15

Assisted Solution

by:Phonebuff
Phonebuff earned 500 total points
ID: 39694445
First, each Distro has it's own "Security" model and places the http.conf in differnt places --

Login as or su to root

cd /
find . -name http.conf -print

Then you can make your changes --

Second anything referenced to 1.4 should be suspect Version 11 is current and is very different.  Digium dropped the leading 1 a while ago.
0
 
LVL 52

Author Comment

by:_agx_
ID: 39694532
Thanks for the response.  I logged in as root and checked the AsteriskNow distro, but it doesn't contain any http.conf files. I changed the filter to "htt*.conf" just to be sure, and the only result was:

        ./etc/httpd/conf/httpd.conf

I'm not really a linux person, but I know it's an Apache config file, but ... I don't think that's the one all the articles are talking about.

Honestly I'm not tied to any particular distro.  At this point I've been at it for hours and am just trying to get AJAM to work - at all ;-) Any suggestions?

> Second anything referenced to 1.4 should be suspect Version 11 is current

Yep, understood. I checked the newer docs and fortunately they seem to say the same thing.
0
 
LVL 15

Accepted Solution

by:
Phonebuff earned 500 total points
ID: 39695319
Is this you ?

http://pbxinaflash.com/community/index.php?threads/configuring-ajam-asynch-javascript-asterisk-manager.13913/

If so I think you will be better off on that forum, although I have to build a new machine today, and can try and walk through what you are doing ..
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 52

Author Comment

by:_agx_
ID: 39695338
Yeah, a cohort of mine helping me out.  Though we finally got it working w/that distro my preference is the one of the two I linked above. So I'd still love to figure out how to enable it in those distros (If you have time).  Which one are you planning on installing, btw?
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 39695362
I build with two or three --  I use the PBXinaFLash and have for many years.  Tom & Ward and do a great job on the ISO.   An you get some of the best support from the Forum around.

I also build a Debian box using a script that Joe R. has developed and is easy to build / extend an like PBXinaFlash builds the Asterisk and modules from Source, but is not compiled and not for the faint of heart.

Finally, I have a real old build that supports 1.4 for the Ham radio chan driver. chan_alsa in latter releases has issues and I don't think anyone is working on them these days.
0
 
LVL 52

Author Comment

by:_agx_
ID: 39695383
Yeah, I don't think I'm ready for option #2 yet ;-)

> supports 1.4 for the Ham radio chan drive

Haha, that's cool. I had no idea it could do that. Nice!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now