cjkeeme
Guru
- Joined
- Jun 18, 2008
- Messages
- 203
- Reaction score
- 0
I find Openfire and the Asterisk-IM plugin for Openfire to be a very valuable addition to my PBXAF server. Even after reading information on these forums I had to figure out or piece together a few things for myself. Here is the procedure I go through on my production servers to anyone who is interested.
How to install Openfire on PBX in a Flash 1.3:
Download Java JDK .rpm.bin file to root directory and install using the following commands:
Download Openfire .rpm file to root directory and isntall using the following commands:
Setup your database with phpMyAdmin:
Database: openfire
Username: openfire
Password: Generate one and document this password
Privileges: Grant all privileges
Import the schema file:
/opt/openfire/resources/database/openfire_mysql.sql into new DB.
Add the following lines to /etc/sysconfig/iptables above the word COMMIT:
Reboot the system.
Browse to http://xxx.xxx.xxx.xxx:9090 and complete the installation.
NOTE: Enable Subscription, Registration, IM Gateway, and the Asterisk-IM Openfire plugins after installations the do the following:
How to install Asterisk-IM on PBX in a Flash 1.3:
1. Enable Asterisk-IM plugin and click ‘Save’
2. Click ‘Add Server’
3. Fill in the fields with the following data
permit=xxx.xxx.xxx.xxx/255.255.255.0 #Where xxx.xxx.xxx.xxx is the ip address of the server
6. Then do an ‘amportal restart’
7. If the plugin is still not connected disable and re-enable the plugin to connect.
8. Now click on ‘Phone Mappings’ and map you phones using the following scheme:
How to install Openfire on PBX in a Flash 1.3:
Download Java JDK .rpm.bin file to root directory and install using the following commands:
Code:
chmod a+x jdk-6<version>-linux-i586-rpm.bin
./jdk-6<version>-linux-i586-rpm.bin
Download Openfire .rpm file to root directory and isntall using the following commands:
Code:
rpm -ivh openfire<version>.rpm
Setup your database with phpMyAdmin:
Database: openfire
Username: openfire
Password: Generate one and document this password
Privileges: Grant all privileges
Import the schema file:
/opt/openfire/resources/database/openfire_mysql.sql into new DB.
Add the following lines to /etc/sysconfig/iptables above the word COMMIT:
Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9091 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9090 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5222 -j ACCEPT
Reboot the system.
Browse to http://xxx.xxx.xxx.xxx:9090 and complete the installation.
NOTE: Enable Subscription, Registration, IM Gateway, and the Asterisk-IM Openfire plugins after installations the do the following:
Server –> Server Settings –> Subscription Properties and do the following:
Select ‘Accept’ – Subscription requests will be intercepted and accepted
Select ‘All’ – All Subscription requests will be intercepted and automatically accepted.
Select ‘Accept’ – Subscription requests will be intercepted and accepted
Select ‘All’ – All Subscription requests will be intercepted and automatically accepted.
How to install Asterisk-IM on PBX in a Flash 1.3:
1. Enable Asterisk-IM plugin and click ‘Save’
2. Click ‘Add Server’
3. Fill in the fields with the following data
a. Server Name: asterisk
b. Server Address: xxx.xxx.xxx.xxx
c. Port: 5038
d. Username: admin
e. Password is contained in /etc/amportal.conf – default is ‘amp111’
4. Fill in the field for ‘Configure Phone Manager’ with the following data:b. Server Address: xxx.xxx.xxx.xxx
c. Port: 5038
d. Username: admin
e. Password is contained in /etc/amportal.conf – default is ‘amp111’
a. Asterisk Queue Presence: Yes
b. Drop-down device selection: Yes
c. Asterisk Context: from-interal
d. Default Called ID: DefaultCID
5. Edit /etc/asterisk/manager.conf and add the following line:b. Drop-down device selection: Yes
c. Asterisk Context: from-interal
d. Default Called ID: DefaultCID
permit=xxx.xxx.xxx.xxx/255.255.255.0 #Where xxx.xxx.xxx.xxx is the ip address of the server
6. Then do an ‘amportal restart’
7. If the plugin is still not connected disable and re-enable the plugin to connect.
8. Now click on ‘Phone Mappings’ and map you phones using the following scheme:
a. Username: <spark username>
b. Device: Protocal/Extension - Ex. SIP/200 or IAX/201
c. Extension: Extension – Ex. 200 or 201
d. Called ID: Name of Person Using the Phone
e. Check ‘Primary’ and click Save.
f. Do the same for everyone using Spark with a phone attached to Asterisk.
b. Device: Protocal/Extension - Ex. SIP/200 or IAX/201
c. Extension: Extension – Ex. 200 or 201
d. Called ID: Name of Person Using the Phone
e. Check ‘Primary’ and click Save.
f. Do the same for everyone using Spark with a phone attached to Asterisk.