You are on page 1of 7

Linux - VoIP Services

1.

Install asterisk by typing

apt-get f install asterisk


apt-get -f install asterisk Use aptitude to get packages. Fixes missing packages when installing any other dependent packages. Installs the downloaded package. Asterisk binaries and configuration files.

2.

Asterisk default configuration files directory is /etc/asterisk. In this step well go to that directory and edit sip.conf and extensions.conf. Erase files data using

echo > /etc/asterisk/sip.conf && echo > /etc/asterisk/extensions.conf


3. Now, configure sip.conf like this

[1600] type secret callerid context host

Edit parameters for account 1600 Type string indicates the actions this account will do. Can be friend (Receives and Makes calls), user (Makes Calls), and peer (Receives Calls). Specifies the secret password used to authenticate accounts. Associates extensions with users names. Context specified with certain parameters on extensions.conf Defines an IP Address or the type of Address of the host, dynamic stands for DHCP .

Linux - VoIP Services

4.

Edit extensions.conf like this:

[sip] Exten => 1500 1, n Dial, Hangup

Context where accounts specified in sip.conf will receive a extension. Sets values for the extensions Users extension assigned Action number, n continues with the previous action number used. Action of Dial or Hangup assigned to SIP account 1500

5.

Restart asterisk by typing

service asterisk restart


6. Debug Asterisk actions by using

asterisk rdd
Testing Asterisk
Install any softphone on the client machine. For testing purpose well use 2 softphones.

Configuring Softphone 1

1. Right click on the screen of the softphone, then select SIP Account Settings

Linux - VoIP Services

2.

Click Add to setup a new SIP account

3.

Fill in with the account settings previously configured on sip.conf Caller Id is specified in the SIP file, so the caller-id will be automatically setted up.

Linux - VoIP Services

Then click OK and then click Close

Configuring Softphone 2

1. Click Settings, then click Preferences

2. Click create a new account then add the display name for the new account 4

Linux - VoIP Services

3. Configure account settings then click Register, in the right upper corner a Registered mark should appear. Then click OK

Linux - VoIP Services

CALLING BETWEEN SOFTPHONES 1. Test calling from Softphone 2 (EXT_1500) to Softphone 1 (EXT_1600). The caller id was automatically assigned.

2.

Test calling from Softphone 1 (EXT_1600) to Softphone 2 (EXT_1500). The caller id was automatically assigned.

Linux - VoIP Services

3.

In asterisk verify and monitor the calls made by each one of the users.

You might also like