How to setup Ozeki Phone System with Asterisk

This guide shows how you can connect Ozeki Phone System to your Asterisk PBX. This solution gives you a brief explanation about how you can configure Ozeki Ozeki Phone System to start building your own application.

Ozeki Phone System uses Voice over IP to establish phone calls. Using VoIP technology is less expensive than traditional phone services. With Ozeki Phone System you can view your registered phone line and your active phone calls. You can establish calls using Ozeki Phone System. You can also select the codec to be used during the phone call.

This configuration guide demonstrates how you can connect Ozeki Phone System to your Asterisk PBX.

System architecture

If you follow the configuration guide, you will have a telephone system that works as follows: First, create an extension in your Asterisk PBX. Ozeki Phone System will connect using this created extension. Once Ozeki Phone System is connected, you can start your calls. The destination phone could be a VoIP phone, a land line phone or a mobile phone. You can see this process in Figure 1.

calling contacts via asterisk
Figure 1 - Calling contacts via Asterisk

  • Ozeki Phone System registers to Asterisk
  • The call will be forwarded to Asterisk using the created extension
  • The destination phone will be ringing
  • You can start talking using the Phone System

Configuration steps

Before you start to configure this solution it is assumed that you have already installed your 3CX Phone System, and downloaded Ozeki Phone System XE installer from the download page.

Step 1.) Install Asterisk

First of all, boot up your Linux system. In this guide we are going to use Ubuntu 11.10. When the system loaded, open terminal.

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


login as superuser
Figure 2 - Login as superuser

In order to install Asterix on Ubuntu 11.10, you will only have to write the following in the terminal:

sudo apt-get install asterisk

Enter your admin password when asked, and the software will install itself, and will be ready to use.

Step 2.) Create a SIP account

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

cd /etc/asterisk/

navigate to config directory
Figure 3 - Navigate to the config directory

The users.conf contains the settings that clients can use 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 4).

vi users.conf

edit usersconf file
Figure 4 - Edit users conf file

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

For this, I insert the following lines into the config file:



register two users
Figure 5 - Register two users

Finally, quit insert mode by pressing Escape button and type :wq (Figure 6).


save and exit
Figure 6 - Save and exit

Next open extensions.conf file for editing (Figure 7).

vi extensions.conf 

open extensions conf file
Figure 7 - 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 8). In this example I will use the following dial plan:

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

dial plans
Figure 8 - Dial plans

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


save dial plan
Figure 9 - Save Dial plan

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

starting asterisk service
Figure 10 - Starting the Asterisk service

Step 3.) Configure Ozeki VoIP provider to use the created SIP account

If you have any questions or need assistance, please contact us at

People who read this also read...

More information