Difference between revisions of "AMI Connection"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 16: | Line 16: | ||
'''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. | ||
Line 29: | Line 30: | ||
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_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; | 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 - Servers'''. |
Revision as of 08:24, 18 November 2008
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 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 - that means DB does not have 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 - Servers.