install_asterisk
Differences
This shows you the differences between two versions of the page.
| install_asterisk [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | install_asterisk [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Install ====== | ||
| - | <code bash> | ||
| - | # yum install yum-priorities | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # cat / | ||
| - | [main] | ||
| - | enabled = 1 | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # cat / | ||
| - | [base] | ||
| - | [...] | ||
| - | priority=1 | ||
| - | |||
| - | #released updates | ||
| - | [updates] | ||
| - | [...] | ||
| - | priority=1 | ||
| - | |||
| - | #additional packages that may be useful | ||
| - | [extras] | ||
| - | [...] | ||
| - | priority=1 | ||
| - | |||
| - | #additional packages that extend functionality of existing packages | ||
| - | [centosplus] | ||
| - | [...] | ||
| - | priority=2 | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # yum install epel-release | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # cat / | ||
| - | [epel] | ||
| - | [...] | ||
| - | priority=10 | ||
| - | |||
| - | [epel-debuginfo] | ||
| - | [...] | ||
| - | priority=10 | ||
| - | |||
| - | [epel-source] | ||
| - | [...] | ||
| - | priority=10 | ||
| - | </ | ||
| - | < | ||
| - | # cd / | ||
| - | # wget https:// | ||
| - | # vim / | ||
| - | [asterisk-common] | ||
| - | name=Asterisk Common Requirement Packages @ tucny.com | ||
| - | # | ||
| - | mirrorlist=https:// | ||
| - | enabled=1 | ||
| - | gpgcheck=1 | ||
| - | gpgkey=https:// | ||
| - | priority=5 | ||
| - | |||
| - | [...] | ||
| - | |||
| - | [asterisk-16] | ||
| - | name=Asterisk 16 Packages @ tucny.com | ||
| - | # | ||
| - | mirrorlist=https:// | ||
| - | enabled=1 | ||
| - | gpgcheck=1 | ||
| - | gpgkey=https:// | ||
| - | priority=5 | ||
| - | </ | ||
| - | < | ||
| - | # rpm --import https:// | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # yum install asterisk | ||
| - | # rpm -qil asterisk | ||
| - | # yum install asterisk-voicemail | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # mkdir / | ||
| - | # cd / | ||
| - | # wget https:// | ||
| - | # wget https:// | ||
| - | # unzip / | ||
| - | # unzip / | ||
| - | # chmod 644 / | ||
| - | # find / | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # vim asterisk-sound-convert | ||
| - | #!/bin/bash | ||
| - | cd / | ||
| - | for a in $(find . -name ' | ||
| - | sox -t raw -e signed-integer -b 16 -c 1 -r 16k $a -t gsm -r 8k `echo $a|sed " | ||
| - | sox -t raw -e signed-integer -b 16 -c 1 -r 16k $a -t raw -r 8k -e a-law `echo $a|sed " | ||
| - | sox -t raw -e signed-integer -b 16 -c 1 -r 16k $a -t raw -r 8k -e mu-law `echo $a|sed " | ||
| - | done | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # bash asterisk-sound-convert | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # firewall-cmd --add-port=5060/ | ||
| - | # firewall-cmd --add-port=5060/ | ||
| - | # firewall-cmd --add-port=5061/ | ||
| - | # firewall-cmd --add-port=5061/ | ||
| - | # firewall-cmd --add-port=4569/ | ||
| - | # firewall-cmd --add-port=5038/ | ||
| - | # firewall-cmd --add-port=10000-20000/ | ||
| - | # firewall-cmd --reload | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # cd / | ||
| - | # mkdir unused | ||
| - | # mv *.conf *.adsi ./unused | ||
| - | # cd unused/ | ||
| - | # cp -p indications.conf asterisk.conf modules.conf extensions.conf musiconhold.conf features.conf res_parking.conf voicemail.conf / | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # yum install asterisk-iax2 | ||
| - | # rpm -qil asterisk-iax2 | ||
| - | # yum install asterisk-pjsip | ||
| - | # rpm -qil asterisk-pjsip | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | # vim indications.conf | ||
| - | [...] | ||
| - | [general] | ||
| - | ; | ||
| - | country=br | ||
| - | [...] | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # systemctl start asterisk.service | ||
| - | # systemctl enable asterisk.service | ||
| - | # systemctl status asterisk.service -l | ||
| - | </ | ||
| - | |||
| - | ===== Codec G729 ===== | ||
| - | [[http:// | ||
| - | < | ||
| - | # cd / | ||
| - | # wget http:// | ||
| - | # cp codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so / | ||
| - | # chmod +x / | ||
| - | # asterisk -rx " | ||
| - | *CLI> module load codec_g729.so | ||
| - | *CLI> core reload | ||
| - | </ | ||
install_asterisk.1753560543.txt.gz · Last modified: by wikiadm
