?
Solved

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

Posted on 2013-12-03
6
Medium Priority
?
620 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Ever wanted to query Cisco Call Manager CDR records from MS SQL Server? Here's how! CUCM can be configured to upload a CDR file to a given FTP server every minute. This article will show you how to set this up, schedule the import of this data an…
How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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…

752 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