Difference between revisions of "AMI Connection"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: Check settings in '''/etc/asterisk/manager.conf''', 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 ...)
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Check settings in '''/etc/asterisk/manager.conf''', should have"
Check settings in '''/etc/asterisk/manager.conf'''. You should have:


  [general]
  [general]
Line 13: Line 13:
  write = 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.'''<br><br>
'''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.'''<br><br>
'''Reload asterisk'''
'''Reload asterisk'''


== MOR pre 0.7 ==


Then check settings in your GUI: '''SETUP - Settings - AMI Interface'''. They should be 127.0.0.1/mor/morsecret.
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:
# upgrade GUI from SVN
# 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;
== MOR post 0.7 ==
Edit settings in '''Billing - Asterisk Servers'''.

Latest revision as of 13:38, 27 April 2010

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

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;


MOR post 0.7

Edit settings in Billing - Asterisk Servers.