Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

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

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
_agx_
Asked:
_agx_
  • 3
  • 3
2 Solutions
 
PhonebuffCommented:
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
 
_agx_Author Commented:
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
 
PhonebuffCommented:
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
_agx_Author Commented:
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
 
PhonebuffCommented:
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
 
_agx_Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now