Callback Installation instructions: Difference between revisions

From voipsupport
Jump to navigation Jump to search
(Created page with "These instructions apply to Callback 0.5.2 1. cd /tmp or some other directory where you will download and unpack the code 2. Download the latest source code 3. The souce c...")
 
No edit summary
Line 3: Line 3:
1. cd /tmp or some other directory where you will download and unpack the code
1. cd /tmp or some other directory where you will download and unpack the code


2. Download the latest source code  
2. Download the latest source code file from [[Callback#How_do_I_get_it.3F|this page]]. The souce code is signed with my gpg key. Therefore you may optionally verify the file has not been altered since I signed it. After downloading the file signature and my gpg key ([[Callback gpg signatures|available here]]) at the command line:
 
3. The souce code is signed with my gpg key (available [[(Attach:)Freepbx/johnfawcett.gpg|here]]). Thefore you may optionaly verify the file has not been altered since I signed it. After downloading the file signature (available [[Freepbx/Callback|here]]), at the command line


<pre>gpg --import johnfawcett.gpg
<pre>gpg --import johnfawcett.gpg
Line 14: Line 12:
<pre>gpg: Good signature from "John Fawcett <[email protected]>"</pre>
<pre>gpg: Good signature from "John Fawcett <[email protected]>"</pre>


4. Unpack the source code
3. Unpack the source code


<pre>tar -xvzf callback-0.5.2.tgz</pre>
<pre>tar -xvzf callback-0.5.2.tgz</pre>


5. Change directory
4. Change directory
<pre>cd callback-0.5.2</pre>
<pre>cd callback-0.5.2</pre>


6. Backup the existing script
5. Backup the existing script (the following assumes that you have it installed at the standard location, change as needed according to where the FreePBX script is located)


7. Overwrite the FreePBX script (the following assumes that you have it installed at the standard location, change as needed according to where the FreePBX script is located)
<pre>cp /var/www/html/admin/modules/callback/bin/callback /var/www/html/admin/modules/callback/bin/callback-original</pre>
 
6. Overwrite the FreePBX script


<pre>cp callback /var/www/html/admin/modules/callback/bin/callback</pre>
<pre>cp callback /var/www/html/admin/modules/callback/bin/callback</pre>


8. Change owner and group to ones used in freepbx install  
7. Change owner and group to ones used in FreePBX install  


<pre>chown asterisk:asterisk /var/www/html/admin/modules/callback/bin/callback</pre>
<pre>chown asterisk:asterisk /var/www/html/admin/modules/callback/bin/callback</pre>
Line 36: Line 36:


10. If not using the default configurations, add required configurations to /etc/freepbx.conf.
10. If not using the default configurations, add required configurations to /etc/freepbx.conf.
See [[Callback Configuration|this page]]

Revision as of 14:35, 13 June 2016

These instructions apply to Callback 0.5.2

1. cd /tmp or some other directory where you will download and unpack the code

2. Download the latest source code file from this page. The souce code is signed with my gpg key. Therefore you may optionally verify the file has not been altered since I signed it. After downloading the file signature and my gpg key (available here) at the command line:

gpg --import johnfawcett.gpg
gpg --verify callback-0.5.2.tgz.sig

The result should be something like this:

gpg: Good signature from "John Fawcett <[email protected]>"

3. Unpack the source code

tar -xvzf callback-0.5.2.tgz

4. Change directory

cd callback-0.5.2

5. Backup the existing script (the following assumes that you have it installed at the standard location, change as needed according to where the FreePBX script is located)

cp /var/www/html/admin/modules/callback/bin/callback /var/www/html/admin/modules/callback/bin/callback-original

6. Overwrite the FreePBX script

cp callback /var/www/html/admin/modules/callback/bin/callback

7. Change owner and group to ones used in FreePBX install

chown asterisk:asterisk /var/www/html/admin/modules/callback/bin/callback

9. Ensure that only asterisk user/group may call the script

chmod 770 /var/www/html/admin/modules/callback/bin/callback

10. If not using the default configurations, add required configurations to /etc/freepbx.conf.

See this page