Asterisk Tutorial 42 — SIP Provider Registration

Introducing Asterisk & SIP Provider Registration

Welcome back to the VoIP Guys and the complex world of SIP provider registration.

All things being equal, the process would be the same for every VoIP provider. Sadly, however no SIP provider is the same which is why things get can get a bit complicated. The two most common SIP provider authentication approaches used today are IP address based and Registration (User) based and today’s tutorial focuses on the later. Therefore, in order to register your SIP provider with your Asterisk phone system using registration based authentication, you will need your SIP Registrar / proxy, username and password.

User Based SIP Provider Registration

As mentioned above, you will need your SIP proxy address, username and password before continuing. Once you have these details, you will be able to continue with your SIP provider registration by accessing your Asterisk system as the root user and then editing the sip.conf file using your editing tool, i.e. vi editor as shown below:

vi /etc/asterisk/sip.conf

Once you have accessed the sip.conf, you will now neeed to enter the following string to configure your SIP provider registration:

register => user[:secret[:authuser]]@host[:port][/extension]

As our choosen provider users the standard 5060 port, we do no need to enter the port information. If your provider uses a different port, you will need to configure this here as well. When it comes to extensions, you could simply enter the extension number. However, as there are other options avaialble and the question of how to configure a whole block of extension numbers remains, we will cover this later on.
Once completed, your string should appear similar to below:

register => 368391xxx:hTdTeeF3pHxX@ip.flowroute.com

You will then need to reload the your SIP protocols using the sip reloadcommand within the Asterisk CLI. Once done, you can then check whether the registration has been successful by using the following command:

sip show registry

Which will result in Asterisk CLI output similar to the image below where all your registered SIP providers will be listed.

In most cases, it is also possible to check the registation via the Providers online management portal. However, as our tutorial showed, this may not be the most reliable option as there can be a lag between your phone system and the providers web front end.

Mathias’ Top Tip

Regardless of what your SIP provider front end is showing you, it is always best to check with you Asterisk system first as when Asterisk says the provider is registered, you are registered. In other words, Asterisk will only display a registered status once the system receives a registration confirmation from the provider.

More Info

pascom are the developers of the mobydick phone system. Being based on Asterisk, mobydick provides businesses with an easy to install, manage and use Open Standards phone system.

Why not take mobydick for a test spin with our free community download and discover how it can support your business communications.

Need more info about mobydick or would like a personalised demo? Give us a call +44 203 1379 964 or drop us a line via our website.

Until next time — Happy VoIPing!

Previous Tutorial

Originally posted on blog.pascom.net