Emdym.com

Asterisk Debian

How to setup Asterisk on Debian etch

#aptitude install asterisk asterisk-prompt-fr

Asterisk configuration

Open and edit sip.conf
#nano /etc/asterisk/sip.conf In the general section, change the language :
[default]
...
language = fr
...

Users setup

Add the user at the end of the file :
[3000]
type=friend
host=dynamic
username=phone1
dtmfmode=rfc2833

[3001]
type=friend
host=dynamic
username=phone2
dtmfmode=rfc2833

[3002]
type=friend
host=dynamic
username=phone3
dtmfmode=rfc2833

Now edit extensions.conf
#nano /etc/asterisk/extensions.conf

Add all the needed extensions at the ond of the file
exten => 3000,1,Dial(SIP/3000,,tT)
exten => 3001,1,Dial(SIP/3001,,tT)
exten => 3002,1,Dial(SIP/3002,,tT)

Edit manager.conf
#nano /etc/asterisk/manager.conf

Asterisk manager configuration

Change the bind address to allow all interfaces
bindaddr = 0.0.0.0

Add an admin user
[admin]
secret = admin
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

You can now start Asterisk
#asterisk -vvvc

Also available in: HTML TXT