Use Multiple SIP Carriers

⌘K
  1. Home
  2. Programmable Voice
  3. How do I
  4. Use Multiple SIP Carriers

Use Multiple SIP Carriers

In the VoiceElementsServer.exe.config you can set up a default SIP carrier.

The two relevant settings are HmpDefaultDestinationPort and HmpDefaultDestinationHost:

      
<setting name="HmpDefaultDestinationPort" serializeAs="String">
  <value>5060</value>
</setting>
<setting name="HmpDefaultDestinationHost" serializeAs="String">
  <value>be1.voiceelements.com</value>
</setting>

Use Different Carriers for Different Purposes

Often you may want to use different carriers for different purposes. To send a call to a carrier other than the default carrier, you would specify this in the dial string. Here’s an example:

Let’s say carrier X is your default carrier (see above settings) and carrier Y is listening for calls on IP address 1.1.1.1. To send a call to Carrier X, you would do this:

m_ChannelResource.Dial("1234");

 

To send a call to Carrier Y, you would do this:

m_ChannelResource.Dial("1234@1.1.1.1");

 

Alternatively, you can use a DNS hostname like:

m_ChannelResource.Dial("1234@be1.voiceelements.com");

Border Elements

One of the many features that our product Border Elements offers is the ability to use multiple SIP carriers based on rules that you define. In this case, you would set the default host to Border Elements and define your dialing rules in Border Elements and it would handle everything for you.

SIP Registration

If you need to set up SIP registration with multiple carriers, please see this article Set Up and Test your SIP Registration for more information.

Was this article helpful to you? No Yes 14

How can we help?