11 Ağustos 2017 Cuma

Linux

yum -y update
sudo yum install -y epel-release dmidecode gcc-c++ ncurses-devel
libxml2-devel make wget openssl-devel newt-devel kernel-devel sqlite-devel
libuuid-devel gtk2-devel jansson-devel binutils-devel
cd asterisk
./configure --libdir=/usr/lib64
make menuselect
make
sudo make install
sudo make samples
sudo make config

start asterisk
sudo service asterisk start
 
To Start asterisk 
asterisk -vvvvvvc
 
connect 
asterisk -r
help 
 
Stop Firewall
sudo service firewalld stop 
 
--------------------------------------------------------------------- 
Asterisk & Android behind NAT 
In the file sip.conf;
directmedia = no must be added
 
[102]
disallow=all
host=dynamic; IP address of your first phone
secret=102 ;uncomment if you want to use host=dynamic, less secure, use 'bigger' secret
type=friend
dtmfmode=rfc2833
allow=alaw
qualify=yes
canreinvite=yes
insecure=port
context=outgoing
directmedia=no
 
---------------------------------------------------------------------
For PHP files to be run by AGI
#!/usr/bin/env php must be added to the top of php files
 
--------------------------------------------------------------------- 
Asterisk Playback audio files directory
/var/lib/asterisk/sounds
---------------------------------------------------------------------
Asterisk AGI Directory
/var/lib/asterisk/agi-bin 
---------------------------------------------------------------------
Asterisk AMI - How to reload Extensions.conf
dialplan reload
--------------------------------------------------------------------- 
Asterisk Log Directory
/var/log/asterisk 


Hiç yorum yok:

Yorum Gönder