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
Solved

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

Posted on 2013-12-03
6
591 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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