Configuration Samples

Voxbone provides call forwarding via SIP to an IP address or a SIP URI.

After you have been provisioned a DID from us you need to route the calls to your SIP equipment.

You also need to configure your equipment to accept calls coming from the Voxbone IP addresses.

For redundancy it is required by Voxbone that all SIP and RTP ranges are configured to receive calls on your gateways. The current list of SIP addresses is:

POPIP
BE81.201.82.45
CN81.201.86.45
DE81.201.83.45
US-LA81.201.84.195
US-NY81.201.84.45

The current list of RTP ranges is:

81.201.82.128/26
81.201.83.0/26
81.201.84.0/26
81.201.84.128/26
81.201.86.0/26

For Backup-URI to work the gateway referred to in your primary URI must reply with a 200 OK to OPTIONS pings sent from the following gateways:

BE 81.201.82.140
DE 81.201.83.20
NY 81.201.84.20
LA 81.201.84.140
CN 81.201.86.20

Samples

You will find below typical configuration sample for famous SIP equipments compatible with Voxbone.

  1. Asterisk
  2. Brekeke OnDO PBX
  3. Cisco
  4. CommuniGate Pro
  5. Dialexia
  6. IVR Technologies, Inc.
  7. Portaswitch
  8. SER
  9. SipX
  10. Voipswitch
  11. WTL


Add the following to /etc/asterisk/sip.conf:

[voxbone_be]
host=81.201.82.45
type=friend
insecure=very
context=your-context
canreinvite=no
qualify=no
[voxbone_cn]
host=81.201.86.45
type=friend
insecure=very
context=your-context
canreinvite=no
qualify=no
...

download Asterisk sip.conf

Replacing 'your-context' with an existing context in /etc/asterisk/extensions.conf.

The 'insecure = very' allows all calls from this IP address.

In extensions.conf, then add a line to route the DIDs as you wish. For example, to route 1234567890 to SIP phone 100:

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

Once you have edited sip.conf and extensions.conf, load the Asterisk console, and type the following commands:

sip reload
extensions reload

Users of Asterisk behind a NAT must add the 'externip' line in their "sip.conf" file :

externip=<External IP Address> ; e.g. externip=11.22.33.44 where 11.22.33.44 is the external IP address of the router.

If the external IP address is dynamic (e.g. a DSL provider handing out a different IP address every day) you will need to use a Dynamic DNS client.

Asterisk servers with both internal and external SIP clients will need to add the 'localnet' line in their "sip.conf" file :

localnet=<internal range with mask> ; e.g. localnet=192.168.1.0/255.255.255.0 where 192.168.1.0 is the local internal range



  1. Mapping Voxbone DID number to Brekeke SIP Server
    Login to your Voxbone account . Go to [Configure]>[URIs]>[All URIs] and add the URI:

    Protocal: SIP
    URI: sip:100@1.2.3.4


    Where:

    a) 100 = Brekeke PBX user, it can be Auto Attendant or a registered SIP phone
    b) 1.2.3.4 = Brekeke SIP Server IP address if it is public or your router address if Brekeke SIP server is behind a router.

  2. Brekeke PBX Settings


  3. 1. Register a SIP phone as 100 at Brekeke SIP Server and create its user at Brekeke PBX.
    Or just create a user with ID 100 at Brekeke PBX and define it as Auto Attendant.

    2. When Brekeke SIP Server is behind a router, do the following settings:
    1. [Configuration]>[System]>[Network]>[Interface address1]: Global IP address of router
    2. Set the port forwarding at router side

    SIP exchanger -- Local Port [UDP]
    Default value: 5060
    RTP exchanger -- From Minimum Port to Maximum Port [UDP]
    Default value: 10000-10999



You need to create an incoming dialpeer as follows :

dial-peer voice 100 voip
description ## incoming calls from Voxbone ##
incoming called-number 123456789
voice-class codec 1
session protocol sipv2
session transport udp
dtmf-relay rtp-nte
ip qos dscp cs5 media
ip qos dscp cs5 signaling
no vad

where '12345678' is your DID, formatted as you wish from the Voxbone web config panel.

Then you need to route the calls towards the PSTN with an outbound dial peer, and possibly changing the DNIS or ANI/CLI with translation rules.

If you have an access-list on the cisco gateway, do not forget to allow the traffic coming from the Voxbone IP's.



Connect to your CommuniGate Pro web administration interface.

https://your_CGP_server.com:9010

If your subscribers will exist on your Local Area Network, you can define the local area network range of IPs under:

Settings -> Network -> LAN IPs

you can then proceed to:

Select Settings -> Network -> Client IPs

and enable "Process LAN IP Addresses as Clients".

If your subscribers are on a separate network, enter the range of IP addresses under "Client IP Addresses" that you wish to treat as local subscribers for your CommuniGate Pro voice network.

You can then control relaying for SIP under:

Settings -> SIP -> Sending -> Protocol

The default setting of "Relay to Non-Clients for: clients" will allow the Voxbone DIDs to ring your local subscribers.

Create an SIP endpoint URI on Voxbone that routes your DID to the CommuniGate Pro account or PBX attendant you wish to receive the call.

protocol: sip
new uri: pbx@cgp.yourserver.com:5060
Description: CommuniGate Pro PBX attendant

Forward your Voxbone DID to the CommuniGate Pro you have created with "unmodified" as the URI Formatting option.




First open an ITSP carrier account.
Setup the Voxbone IP's in the "gateway" menu.
Go to the "DID pool" menu and generate the blocks of DIDs assigned by Voxbone.
Now you can assign the list of DIDs to an agent or reseller, to be assigned later to a SIP subscriber.
Or if you want to resell the DIDs to another ITSP go to the "ITSP" menu, create an ITSP client account and assign the desired DIDs with the right rate.




Talking SIP is a fully integrated application, media, real-time billing, location, and registration server provided in a single, cohesive, all-in-one turnkey solution.
Talking SIP is fully interoperable with Voxbone's services and provides revenue generating enhanced services and real-time billing for next-generation networks.

The following are just some of the many services offered by Talking SIP:

  • Voice over Broadband Services
  • Hosted Voice Mail and PBX
  • Prepaid/Postpaid Calling Card
  • DID, Web, GPRS, smartphone, and SMS Callback
  • One Number Locator (Find Me/Follow Me Services)
  • Reminder and Wake Up Services

To configure Talking SIP to service calls from the Voxbone network please use Talking SIP's Telephony Management Console to configure the following:
  1. Add one or more Devices (System Management|Devices followed by Edit|Add or just right click on the grid and select Add from the popup menu) for the Voxbone servers, specifying an IP address, CIDR string (used for a range of IP addresses) or an FQDN for each entry.
  2. Create a Device Module Map entry for each Device created in step 1. (System Management|Device Module Map followed by Edit|Add or just right click on the grid and select Add from the popup menu) and check 'By DNIS' if you wish to provision each access number individually and/or specify a catch-all default module to service all calls with a particular module if a matching DNIS entry cannot be found in step 3.
  3. If you have checked the 'By DNIS' option in step 2. then add a DNIS Module Map entry for each provisioned Voxbone DID (System Management|DNIS Module Map followed by Edit|Add or just right click on the grid and select Add from the popup menu) and specify the desired service module that you wish to override from the default that may have been created in step 2.

The sequence of actions to configure your DIDs with PortaSwitch is the following:

  1. VoxBone gateways need to be configured in PortaSwitch to be authorized by IP address. To achieve this, type the following command at Master server command prompt:

    shell> mysql -u root porta-sip
    After that, type at MySQL prompt:

    for MR11:
    insert into ip_auth values ('remote_ip', '^81\.201\.82\.45$', NULL);
    insert into ip_auth values ('remote_ip', '^81\.201\.86\.45$', NULL);
    insert into ip_auth values ('remote_ip', '^81\.201\.83\.45$', NULL);
    insert into ip_auth values ('remote_ip', '^81\.201\.84\.195$', NULL);
    insert into ip_auth values ('remote_ip', '^81\.201\.84\.45$', NULL);
  2. Create a tariff that describes the termination cost of your incoming calls.
  3. Create a vendor associated with VoxBone DIDs.
  4. Under that vendor, create five accounts with logins:
    81.201.82.45
    81.201.86.45
    81.201.83.45
    81.201.84.195
    81.201.84.45
    and password 'cisco'. Choose any convenient name.
  5. Go to the newly created vendor's connections page and add three connections of 'VoIP from Vendor' type, with the following parameters:

    Node = your PortaSIP node;
    Transl. rule - leave empty
    Account = one of the accounts created at the previous step
    Tariff = tariff created at step 2
    Description - chose a descriptive name for a connection
    Capacity = maximum number of simultaneous calls for the DID (e.g. 2).
  6. Press Save.

After that, your system is ready to accept incoming VoIP DID calls from VoxBone.




If you use SIP Express Router (SER), you should proxy all calls from the Voxbone IP addresses without asking for authentication. The exact method you use depends on your ser.cfg and how you wish to route calls. For example, if you wish to proxy calls to a fixed IP address, such as Asterisk:

if (
src_ip == 81.201.82.45
|| src_ip == 81.201.86.45
|| src_ip == 81.201.83.45
|| src_ip == 81.201.84.195
|| src_ip == 81.201.84.45
) {
rewritehostport( "12.34.56.78:5060" );
};

where 12.34.56.78 is the IP address to forward to.



Since sipX is a SIP proxy no specific configuration is required for sipX to receive SIP calls. The only requirement is that the user name that is called in the SIP URI has to exist in sipX. E.g. if you forward calls from Voxbone to operator@yourdomain.com, then the user "operator" has to exist in the sipX system.

  1. Forward calls to a user line.
    A user is configured using the Web interface of the sipX Configuration Server (sipXconfig). The user ID can be an alpha-numeric string or an extension number. That user is then assigned to one or several devices again using the Web interface. Upon calling the user all devices to which this user is assigned will ring. User specific forwarding can be configured if necessary (parallel or serial forking). More information is available here: http://sipx-wiki.calivia.com/index.php/How_to_configure_Users.

  2. Forward calls to an auto-attendant.
    Calls that originate with Voxbone can also be directly sent to an auto-attendant defined in the sipX system.   Either the default auto-attendant ("operator") or a custom auto-attendant can be used. More information is available here: http://sipx-wiki.calivia.com/index.php/HowTo_configure_the_sipX_Auto_Attendant

  3. Forward calls to a hunt group.
    Similar to forwarding to an auto-attendant, calls can be handled by a hunt group. More information is available here: http://sipx-wiki.calivia.com/index.php/Call_Groups_and_Hunt_Groups_Configuration


Firewall / NAT Traversal.

We were able to test calls from Voxbone to sipX with the following firewall / NAT solutions:
a) Intertex IX-67 (http://sipx-wiki.calivia.com/index.php/HowTo_use_Intertex_IX67_for_Firewall/NAT_Traversal)
b) Ingate SIParator (http://sipx-wiki.calivia.com/index.php/HowTo_configure_InGate_SIParator_to_work_with_sipX)

If no SIP aware firewall / NAT is available, you can open the necessary ports by defining the sipX host as an exposed host. Port 5060 has to be opened for SIP signaling traffic to the sipX host. The RTP port range depends on the phone you use as media traffic does not go through the sipX host.
E.g. the default RTP port range for Polycom phones starts at 2222. If you prefer using the "exposed host" feature then the phone needs to be exposed for RTP traffic. Please consult the manual of your phone as well as the manual of your firewall / NAT to find out more about how it handles SIP.




In 'GW clients' menu you need to create a new client, with the following parameters�:
In 'login' and 'password' you put whatever you want.
In 'IP numbers' you need to add all the Voxbone IP addresses.
Check the box 'PIN source' if you want to use the voipswitch IVR with our DIDs
Check the box 'active'
Uncheck the box 'Authorize by login/password'
In 'tariff' choose a special tariff such that you do not bill calls coming from Voxbone.
Add some funds to the account



Configuration steps for WTL SoIP, PVx or IPNx switches:


1)Under 'IP Address Filtering' add the single IP addresses or ranges of the Voxbone signalling addresses.
2)Under 'General Options' specify the number of channels, incoming and outgoing signalling ports. Also enable NAT detection in case the WTL equipment is located behind a router/firewall. Other settings are optional
3)Under 'Call Options' select 'INFO' at 'Supported methods' for DTMF detection via INFO messages. The field 'RFC2833' specifies the magic number to detect DTMF based on RFC2833 specifications. The rest of the settings are optional.
4)Under 'Voice Options' specify the Barer Capability (BC) on how the call has to be treated (3.1kHz is the most common option to use). Select the codec list that will be supported on the specific trunk
5)Don't change the default settings under 'DTMF Options'
6)Under 'RTP options' you can specify the RTP payload SQS options. Under 'RTP options' have 'NAT detect' enabled in case the WTL equipment is located behind a router/firewall
7)Leave the default values under 'QoS Options' and 'Registrar Options'
8)In case of fax support via SIP, use the displayed value settings.


.