Create a basic working configuration for a DMG4000 SBA and Microsoft Lync 2010 using TCP/RTP
Overview
This article is designed to help get you started configuring a gateway with Survivable Branch Appliance (SBA) functionality from the Dialogic® 4000 Media Gateway Series.
The DMG4000 SBA gateway has powerful call routing and manipulation capabilities. However, a basic setup is often all that is required, and the basic configuration can also be useful as a starting point for subsequently adding more complex configurations.
Although the DMG4000 documentation has more comprehensive information and should be consulted as a primary reference, this article should enable you to create a working configuration. It assumes that the DMG4000 has already been deployed as a Survivable Branch Appliance (SBA) with Microsoft Lync Server 2010 following the Dialogic SBA Deployment Guide
Step 1 – Verify Lync Topology
Confirm that the DMG4000 SBA has been configured in the Micosoft Lync Topology as Survivable Branch Appliance using TCP transport.
The Lync 2010 Topology Builder should show the following entries in the PSTN gateway properties and Mediation pools properties for the configured Branch Site.


Step 2 - Start SIPcontrol
SIPcontrol may be configured while logged on locally via Start > All Programs > Dialogic Diva > SIPcontrol Configuration

or remotely via a browser at http://<IP address of SBA>:10005
Step 3 – Configure PSTN access
Configure the Diva board which connects to your PBX or PSTN.
- In SIPcontrol > Configuration > Board Configuration select the port to configure.

Please note:
On a Dell-based DMG4000 model the board ports are numbered as follows

while on an older, Intel-based DMG4000 model the board ports are numbered as follows


Step 3a - Configure the protocol to work with your PBX (QSIG option)
If your PBX can use QSIG, this is generally the preferred option in terms of integration.
- If your PBX model is in the 'PBX type' drop down list, select it; otherwise, select 'Generic' which will use a standard QSIG suitable for most PBXs.

Step 3b - Configure the protocol to work with your PBX (non-QSIG option)
- If your PBX does not support QSIG, or you are connecting directly to the telephone network (PSTN), select the appropriate ISDN protocol that your PBX or telco supports.
Generally, in Europe this is EuroISDN; other countries, including the USA, use different standards.

- Click SAVE when done. Reboot the SBA when prompted.
If you are not logged on locally the reboot can be started via the SBA configuration link. Log in as local Administrator and click the 'Restart SBA' link.
For further information on board configuration click here
Step 4 - Configure SIPcontrol for co-located Lync Mediation Server.
- Use the Configuration Wizard to generate a basic configuration.

Two routes will be configured that send all calls from the PSTN to the local Mediation Server and vice versa.
No number normalization (E.164), secure communication (TLS / SRTP) or Lync call transfer will be configured.
- Select Lync 2010 SBA as configuration profile and the Wizard fills in the local listen ports (UDP/TCP/TLS 5081/5081/5082) used by SIPcontrol.

- On the next six configuration windows click Continue to accept the presets.
- When done, click Finish and confirm the next pop-up.
Step 5 - Configure Number Normalization (E.164) using a Dialplan
The Dialplan defines the local dialing information of where the DMG4000 gateway is situated.
If the Dialplan is correctly configured, the DMG4000 gateway will automatically handle called and calling party numbers, converting them to appropriate formats to dial out to the PBX/PSTN and formatting them before sending them to Microsoft Lync.
In the example below, the DMG4000 gateway is based in the UK(+44), in the Maidenhead area (1628), and has been allocated the local number range 384000 to 384999. Thus, the complete range of numbers is +441628384000 to +441628384999 and three digit extensions are used (000 - 999).
The DMG4000 is connected to a PBX and a 9 prefix is required to access the PSTN.
So, the numbers allocated to the DM4000 gateway should be entered into the Dialplan following the example for the UK:
Country code '44'
Area code '1628'
Base number '384'
Maximum extension digits '3'
Internation prefix '00'
National prefix '0'.
If your DMG4000 gateway is connected to a PBX and you need to dial an access number for an outside line (for example: '9'), enter it in the Access code field.
- In SIPcontrol configuration click on the grey Dialplans bar to extend the Dialplan configuration.
- Click Add to open the Dialplan configuration window.

Step 6 - Add the Dialplan to the PSTN interfaces
The Dialplan you defined above now needs to be added to the PSTN interfaces on your Diva Media boards in the DMG4000 gateway. If you have multiple PSTN interfaces (that is, your DMG4000 gateway has more than one connection to the PBX or PSTN), add the Dialplan to each of the PSTN Interfaces that are connected.
- In SIPcontrol configuration click the grey PSTN Interfaces bar and click Details for the controller.

- Selecting Number format 'Extension' will result in the calls being formatted correctly depending on their destination so is the recommend setting. 'National' is an alternative setting if you do not require to dial local PBX extensions.
Step 7 – Add Dialplan to SIP peer
- In the SIPcontrol configuration click the grey SIP Peers bar and click Details for the SBA peer.
- Select the Dialplan created previously. To match the Lync user’s Line URI in E.164 format, set Number format (outbound) to ‘International Number’ and Encoding (outbound) to ‘Use type flag’.

Step 8 - Enable Lync Call Transfers on SBA.
- In the SIPcontrol configuration click the grey Routing bar and click Add to configure a new route.
- Enter a unique name and set the SBA peer as both Source and Master destination. This causes all calls matching the specified conditions to be routed back to the Lync Server, so it can handle the routing.
- Under Conditions, enter both the IP address and the FQDN of the SBA as called party address conditions. Remember to escape each ‘.’ (dot) with a '\' (backslash) in the IP address or FQDN string otherwise it will be interpreted as a regular expression.

- Move the new route to the top of the Routing table by clicking the Up button.

- In SIPcontrol Configuration click Activate or Activate Configuration at the bottom of the page to make the new configuration active.
- Restart SIPcontrol via System Control if required.
First published: 17-Jul-2012
Open access: Product rule: ; Page rule: Auto