[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2013-12-03
6
Medium Priority
?
629 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 15

Assisted Solution

by:Phonebuff
Phonebuff earned 2000 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 2000 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
Eye-catchers on the conference table

Challenge: The i-unit group was not satisfied with the audio quality during remote meetings. They were looking for a portable solution with excellent audio quality for use in their conference room but also at their client’s offices.

 
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

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
Implementing Avaya's One-X portal is pretty painless, until you want to deploy this to the Android and iPhone clients when these clients are outside of your network. The clients will also work within your local network. Here is our experience and so…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

649 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