Skip to main content

Sip Registrar

Setup Your Dashboard Account For Registrar#

This guide walks through the initial setup for Bandwidth's Registrar. The Registrar allows you to use Bandwidth to create phone calls to and from our network using registered devices.



  1. Create New Realm
  2. Create New SIP Credentials
  3. Register Device
  4. Create call via Voice API

Create New Realm#

Using the UI#

Select Sip Credentials from the account overview page on the Bandwidth Dashboard

Sip Credentials

In order to route the calls through Bandwidth, you'll need to create a new realm. Upon realm creation, it will be used as part of the Realm combined with <randomAccountHex>

RealmrequiredString identifying the realm.
DescriptionoptionalA string used for a description of the realm
Create Realm Page

Create New Sip Credentials#

In order to route the outbound calls through Bandwidth, you'll need to create a new set of SIP credentials. To generate your own hash values, you can skip ahead to the Using the API section of this guide.

UsernamerequiredString identifying the user.
DomainoptionalString defining the identity of the user. The Domain will be joined to the UserName with an @ to create a composite username. For example, the UserName bob could be combined with the domain to create a composite username
RealmoptionalString identifying the realm the user belongs. If left blank/empty the default realm on the account will be used.
HttpVoiceV2AppIdoptionalString identifying the V2 Voice application to route the call to.
Hash1requiredString representing a potential Hash values used to authenticate the client. The value should be computed from an MD5 Hash of: {composite-username}:{Realm}:{Password}.
Hash2requiredString representing a potential Hash value used to authenticate the client. The value should be computed from an MD5 Hash of {composite-username}:{Realm}:{Realm}:{Password}.

Select + ADD to add a Sip Credential

Add Sip Credential Button

Enter a Username, Password and Realm for the Sip Credential

Create Sip Credentials Page

The Sip Credentials and Realms will be displayed here

Sip Registrar Realms

Using the API#

Generate MD5 Hash#

Either using the command line or an online tool generate the md5 hash from the username and desired password.

Most *nix (mac, linux) come with MD5 hash built in. Check that MD5 is installed by opening up the terminal and typing: Check that MD5 is installed

$ which md5

Once MD5 is installed, run the command: md5 -s {composite-username}:{Realm}:{Password} where {Password} is the desired password

Default Setup (No Domain Specified as Part of the User's ID)#

Generate MD5 Hash1 without Domain#
md5 -s sipauthtest:realmname.<randomAccountHex>
MD5 ("sipauthtest:realmname.<randomAccountHex>") = 93152819b63a1dc050665e544e015eec
Generate MD5 Hash2 without Domain#
md5 -s sipauthtest@realmname.<randomAccountHex><randomAccountHex>
MD5 ("sipauthtest@realmname.<randomAccountHex><randomAccountHex>") = 79bb0e55551e14a2f329a282c7cf145

Non-Default Setup (Domain Specified)#

Generate md5 Hash1 with domain
md5 -s<randomAccountHex>
MD5 ("<randomAccountHex>") = 817d76e91aad032a8c272229f468bfb2
Generate md5 Hash2 with domain
md5 -s<randomAccountHex><randomAccountHex>
MD5 ("<randomAccountHex><randomAccountHex>") = 39679d2a73c2e1ea719621bc0d8fdac8

Add the Newly Created Hash to Sip Credentials#

After generating the hash value, fill in the Hash1 and Hash2 values to create the SIP credentials. When using the API, Bandwidth will not generate the hashes for you - you must supply your own hash values. You can create multiple SIP credentials within one API call.

Content-Type: application/xml; charset=utf-8
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Register Device#

After the realm and associated Sip Credential has been provisioned within the Bandwidth Dashboard, input that information into a registered device to begin sending registrations and place SIP calls.

Create Call Using Voice API#

To create a call using Sip Authentication format:

  • TO field like sip:sipauthtest@realmname.<randomAccountHex>
  • SipAuthUsername as the username created above like sipauthtest
  • SipAuthPassword as the password used to create the MD5 hash like password
Format the TO Field to use Sip Authentication#