AMI Connection

From Kolmisoft Wiki

Jump to: navigation, search

Check settings in /etc/asterisk/manager.conf. You should have:

[general]
enabled = yes

The end of this file should look like this:

[mor]
secret = morsecret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

Attention, these settings are valid only if the asterisk server and MOR GUI are in the same server. If they are on a different servers, you should edit these settings according to your needs.

Reload asterisk

[edit] MOR pre 0.7

Then check settings in your GUI: SETUP - Settings - AMI Interface. They should be 127.0.0.1/mor/morsecret.

If these settings are empty when you save them, DB does not have the necessary fields.

Solution:

  1. upgrade GUI from SVN
  2. Execute to your DB:
INSERT INTO conflines (name, value) SELECT 'AMI_Host', '127.0.0.1' FROM dual WHERE (SELECT COUNT(*) FROM conflines WHERE name = 'AMI_Host') = 0;
INSERT INTO conflines (name, value) SELECT 'AMI_Username', 'mor' FROM dual WHERE (SELECT COUNT(*) FROM conflines WHERE name = 'AMI_Username') = 0;
INSERT INTO conflines (name, value) SELECT 'AMI_Secret', 'morsecret' FROM dual WHERE (SELECT COUNT(*) FROM conflines WHERE name = 'AMI_Secret') = 0;


[edit] MOR post 0.7

Edit settings in Billing - Asterisk Servers.

Personal tools

Try MOR

Try M2