Programmable Voice

  1. Home
  2. Docs
  3. Programmable Voice
  4. How do I
  5. 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:

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

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, you will want to use this link.

Was this article helpful to you? Yes 9 No

How can we help?