Products
Technology
SMS solutions
PBX systems
OZEKI Phone System XE
Asterisk
AsteriskNow
Elastix
FreePBX
Kamailio
OpenSIPS
PBXnSIP
PBXpress
SipX ECS
3CX
Databases
Robotics
Company


Asterisk, how to create a SIP account

This guide shows you how to register 2 users on the Asterisk PBX and add 1-1 extension to each user. One of the users can be connected with . Before you start to configure this solution it is assumed that you have already installed your Asterisk PBX on a Linux distribution. This guide is made using a Fedora distribution.

In this solution, two configuration files (users.conf, extensions.conf) will be modified. You can download these files from here:
Download: config_files.zip (32 kb)

Configure Asterisk

Start a terminal at the Linux server and login as superuser. For this, type su and login with the administrator password (Figure 1).

su


Figure 1 - Login as superuser

Then navigate to the config directory of Asterisk (Figure 2). In this example it is located in the etc directory.

cd /etc/asterisk/


Figure 2 - Navigate to the config directory

The users.conf contains the settings that can be used by clients to register to the PBX. Open this file with a plain text editor. In this example I use a built-in text editor: vi (Figure 3).

vi users.conf


Figure 3 - Edit users.conf file

In this example I will register two users. User 100 for a landline phone and user 101 for (Figure 4).

To do this, I insert the following lines into the config file:

[100]
type=friend
username=100
callerid=100
secret=100
context=test
host=dynamic
allow=all
			
[101]
type=friend
username=101
callerid=101
secret=101
context=test
host=dynamic
allow=all


Figure 4 - Register two users

Finally, quit the editor by pressing Escape button and type :wq (Figure 5).

:wq


Figure 5 - Save and exit

Next open extensions.conf file for editing the dial plan (Figure 6).

vi extensions.conf


Figure 6 - Open extensions.conf file

In extensions.conf file you can find the user's dial plans. Now set the dial plan for the created user accounts (Figure 7).

In this example I will use the following dial plan:

[test]
exten => 100,1,Dial(SIP/100)
exten => 101,1,Dial(SIP/101)
         


Figure 7 - Dial plans

Insert the dial plan, save the file and exit (Figure 8).

:wq


Figure 8 - Save Dial plan

Start asterisk service by typing: service asterisk start. The service will start with the new configuration (Figure 9).

service asterisk start


Figure 9 - Start asterisk service


Now the configuration is complete so you can start your phone lines and connect them with .


Copyright © 2000- - Ozeki Informatics Ltd. | info@ozeki.hu | Tel: +36 1 371 0150
Home > Technology > PBX systems > Asterisk
Page: 1031 | Login