This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
voice:pbx:thirdlane [2011/12/16 10:43] gcooper |
voice:pbx:thirdlane [2016/08/18 13:21] (current) gcooper |
||
---|---|---|---|
Line 18: | Line 18: | ||
If you create a backup, then delete these files from the .tar.gz, the temporary license will not be overwritten: | If you create a backup, then delete these files from the .tar.gz, the temporary license will not be overwritten: | ||
+ | < | ||
/ | / | ||
/ | / | ||
+ | </ | ||
==== Spoof a MAC Address ==== | ==== Spoof a MAC Address ==== | ||
Line 28: | Line 30: | ||
vim / | vim / | ||
- | ifconfig eth0 down hw ether 00: | + | ifconfig eth0 down hw ether 00: |
ifconfig eth0 up | ifconfig eth0 up | ||
</ | </ | ||
Line 95: | Line 97: | ||
mysql -u root | mysql -u root | ||
use mysql; | use mysql; | ||
- | update user set password=PASSWORD(" | + | update user set password=PASSWORD(" |
- | flush privileges;SpIp | + | flush privileges; |
quit | quit | ||
| | ||
Line 108: | Line 110: | ||
=== Configuration === | === Configuration === | ||
- | See [[voice: | + | See **[[voice: |
===== NTP ===== | ===== NTP ===== | ||
Line 128: | Line 129: | ||
===== DHCP Server ===== | ===== DHCP Server ===== | ||
- | <note important> | ||
- | DHCP Server (SME Server) | ||
- | Polycom</ | + | FIXME |
===== Music on Hold ===== | ===== Music on Hold ===== | ||
- | See [[voice: | + | See **[[voice: |
===== Configuration ===== | ===== Configuration ===== | ||
Line 245: | Line 244: | ||
Direction: Inbound | Direction: Inbound | ||
Context: from-outside | Context: from-outside | ||
- | Caller ID: Sonora Comm <5204072000> | + | Caller ID: Company Name <NXXNXXXXXX> |
Codecs: G.711u, G.729, GSM # order by preference | Codecs: G.711u, G.729, GSM # order by preference | ||
DTMF mode: Auto | DTMF mode: Auto | ||
Line 254: | Line 253: | ||
Name: vitel-outbound | Name: vitel-outbound | ||
- | Host: | + | Host: |
Description: | Description: | ||
Direction: Outbound | Direction: Outbound | ||
Line 287: | Line 286: | ||
* DID | * DID | ||
* Create Schedule-based Route | * Create Schedule-based Route | ||
- | * DID/ | + | * DID/ |
- | * Description: | + | * Description: |
* When: All Hours | * When: All Hours | ||
* Script: Goto User Extension | * Script: Goto User Extension | ||
Line 314: | Line 313: | ||
===== IVR (Auto-Attendant) ===== | ===== IVR (Auto-Attendant) ===== | ||
- | + | ||
+ | FIXME | ||
+ | |||
===== Backup ===== | ===== Backup ===== | ||
Line 322: | Line 323: | ||
Schedule backup | Schedule backup | ||
Simple -> Daily | Simple -> Daily | ||
- | FTP Server -> linus.sonoracomm.local | + | FTP Server -> < |
- | File on FTP Server -> /users/pbxbackup/home/ | + | File on FTP Server -> /path/to/your/ |
I also had to edit root's crontab to suppress useless e-mail messages sent nightly: | I also had to edit root's crontab to suppress useless e-mail messages sent nightly: | ||
Line 351: | Line 352: | ||
==== Fail2Ban ==== | ==== Fail2Ban ==== | ||
- | [[networking: | + | **[[networking: |
- | Fail2ban can complicate troubleshooting, | + | :!: Fail2ban can complicate troubleshooting, |
==== Arno's Firewall ==== | ==== Arno's Firewall ==== | ||
Line 416: | Line 417: | ||
If you want to announce the extension number to the callers, and dial by first name, clone the script tl-directory into tl-directory-first-ext. | If you want to announce the extension number to the callers, and dial by first name, clone the script tl-directory into tl-directory-first-ext. | ||
+ | |||
+ | To clone a script on Web Interface menu go to PBX Settings > Script Library > choose script to clone and use button at the bottom of the page. | ||
Add ' | Add ' | ||
Line 425: | Line 428: | ||
Once the script is created, add a feature code that uses the new script. | Once the script is created, add a feature code that uses the new script. | ||
- | <note important> | + | ===== Root Mail ===== |
- | ===== Voicemail | + | To forward administrative mail to a real user, edit ''/ |
- | ISO 2.0 install includes Postfix MTA, so we tweak it to forward mail to a smarthost rather than configure everything necessary for a full-blown mail server. | + | < |
+ | vi / | ||
+ | </ | ||
- | System Settings -> Network Settings -> Postfix SMTP rewriting -> iPBX@sonoracomm.com | + | Edit the bottom of the file: |
- | http:// | + | < |
- | + | # Person who should get root' | |
- | http://www.dnsexit.com/support/ | + | root: you@your.domain |
+ | </file> | ||
- | As root (copy 'n paste): | + | Then run the '' |
< | < | ||
- | FILE=/etc/ | + | newaliases |
- | SMTPHOST=www.sonoracomm.com | + | </file> |
- | USERPASS=smtp: | + | |
- | cat << EOF >> $FILE | + | ===== Voicemail to E-Mail ===== |
- | # | + | |
- | $SMTPHOST | + | |
- | EOF | + | |
- | chown root:root $FILE | + | ==== Postfix ==== |
- | chmod 0600 $FILE | + | |
- | postmap hash:$FILE | + | |
- | postconf -e " | + | See also **[[networking:linux: |
- | postconf -e ' | + | |
- | postconf -e ' | + | |
- | postconf -e ' | + | |
- | /etc/init.d/ | + | http://www.cyberciti.biz/ |
- | </file> | + | |
+ | http:// | ||
+ | |||
+ | ISO 2.0 install includes the Postfix MTA, so we tweak it to **forward mail to a smarthost** rather than configure everything necessary for a full-blown mail server. | ||
+ | |||
+ | Set the From Address for messages from the PBX: | ||
+ | |||
+ | **System Settings -> Network Settings -> Postfix SMTP rewriting -> iPBX@sonoracomm.com** | ||
==== voicemail.conf ==== | ==== voicemail.conf ==== | ||
- | Edit voicemail.conf. | + | Edit '' |
< | < | ||
Line 478: | Line 482: | ||
===== Digium TDM Cards ===== | ===== Digium TDM Cards ===== | ||
+ | |||
+ | :!: TDM (FXO) cards don't like to share a hardware interrupt. | ||
Check for shared IRQ: | Check for shared IRQ: | ||
+ | < | ||
lspci -vb | lspci -vb | ||
+ | </ | ||
===== Echo Cancellation ===== | ===== Echo Cancellation ===== | ||
- | Run fxotune to tune the TDM card to the actual phone lines connected: | + | Run '' |
- | Connect the phone lines to the FXO ports | + | - Connect the phone lines to the FXO ports |
- | Shut down Asterisk | + | |
+ | - Run '' | ||
+ | - Verify the changed config file | ||
+ | - Restart | ||
+ | Shut down Asterisk, then: | ||
+ | |||
+ | < | ||
fxotune -i 4 | fxotune -i 4 | ||
cat / | cat / | ||
+ | </ | ||
- | Run this to set the running configuration to the settings in / | + | Run this to set the running configuration to the settings in '' |
+ | < | ||
fxotune -s | fxotune -s | ||
+ | </ | ||
Normally, fxotune -s is run by Zapata startup. | Normally, fxotune -s is run by Zapata startup. | ||
- | Restart Asterisk | + | Restart Asterisk. |
===== Provisioning ===== | ===== Provisioning ===== | ||
Line 593: | Line 610: | ||
=== Programming === | === Programming === | ||
+ | |||
+ | http:// | ||
Edit / | Edit / |