Dialogic Support Helpweb
Dialogic® Media Gateways (DMG series)
How to create a basic working configuration for Dialogic DMG3000 / DMG4000 Media Gateways using SIP Control 1.6 or newer.
Overview
This document is designed to help get you started configuring a gateway from the Dialogic® 3000 Media Gateway Series (a DMG3000 gateway) or a gateway from the Dialogic® 4000 Media Gateway Series (DMG4000 gateway) using Dialogic® Diva® SIPcontrol™ 1.6 Software (and newer).
Among the uses for this information is to enable connections to Microsoft® Office Communications Server 2007 (OCS) and Microsoft® Exchange Server 2007 Unified Messaging Server 2007 (UM2007), as well as other SIP-related connections.
Diva SIPcontrol Software has powerful call routing and manipulation capabilities. However, a basic setup is often all that is required, and the basic configuration also can be useful as a platform for subsequently adding more complex configurations.
Although the full DMG3000 & DMG4000 documentation (which can be viewed at: http://www.dialogic.com/manuals/dmg30004000/default.htm) has more comprehensive information and should be consulted as a primary reference, this document should enable many users to quickly reach a working configuration.
This document assumes that you are using a DMG3000 gateway or a DMG4000 gateway with Dialogic® Diva® System Release 8.5 Software and Diva SIPcontrol 1.6 Software (or newer) already installed. If this is not the case, then follow the usual installation process for your Dialogic® Diva® Media board and then install Diva SIPcontrol from the Dialogic® Diva® Start Menu program group.
Step 1 - Configure the Dialogic Diva Media board
This document is designed to help get you started configuring a gateway from the Dialogic® 3000 Media Gateway Series (a DMG3000 gateway) or a gateway from the Dialogic® 4000 Media Gateway Series (DMG4000 gateway) using Dialogic® Diva® SIPcontrol™ 1.6 Software (and newer).
Among the uses for this information is to enable connections to Microsoft® Office Communications Server 2007 (OCS) and Microsoft® Exchange Server 2007 Unified Messaging Server 2007 (UM2007), as well as other SIP-related connections.
Diva SIPcontrol Software has powerful call routing and manipulation capabilities. However, a basic setup is often all that is required, and the basic configuration also can be useful as a platform for subsequently adding more complex configurations.
Although the full DMG3000 & DMG4000 documentation (which can be viewed at: http://www.dialogic.com/manuals/dmg30004000/default.htm) has more comprehensive information and should be consulted as a primary reference, this document should enable many users to quickly reach a working configuration.
This document assumes that you are using a DMG3000 gateway or a DMG4000 gateway with Dialogic® Diva® System Release 8.5 Software and Diva SIPcontrol 1.6 Software (or newer) already installed. If this is not the case, then follow the usual installation process for your Dialogic® Diva® Media board and then install Diva SIPcontrol from the Dialogic® Diva® Start Menu program group.
Step 1 - Configure the Dialogic Diva Media board
First, configure the Diva Media board to connect to your PBX or PSTN.
Step 2 - Configure the protocol to work with your PBX (QSIG option)
Step 2 - Configure the protocol to work with your PBX (QSIG option)
If your PBX can run QSIG then this is generally the preferred option in terms of integration.
If your PBX is in the 'PBX type' drop down list then select that option; otherwise, select 'Generic' which will use a standard QSIG suitable for most PBXs.
Step 3 - Configure the protocol to work with your PBX (non-QSIG option)
If your PBX is in the 'PBX type' drop down list then select that option; otherwise, select 'Generic' which will use a standard QSIG suitable for most PBXs.
Step 3 - 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) then 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.

Step 4 - Activate the Diva Media board configuration

Step 4 - Activate the Diva Media board configuration
After configuring the Diva Media board, activate the configuration and reboot if requested.

Step 5 - Start Dialogic® Diva® SIPcontrol™ Software configuration
Diva SIPcontrol Software is used to connect to the VoIP server such as Microsoft OCS or UM2007 (or other SIP server).

Step 6 - Review main configuration elements in SIPcontrol

Step 5 - Start Dialogic® Diva® SIPcontrol™ Software configuration
Diva SIPcontrol Software is used to connect to the VoIP server such as Microsoft OCS or UM2007 (or other SIP server).

Step 6 - Review main configuration elements in SIPcontrol
Diva SIPcontrol Software has several elements to configure, so at this step we will use these to make a basic configuration suitable for connecting to Microsoft OCS or UM2007.
Similar configurations can be used for connecting to other SIP servers.

Step 7 - Overview remaining steps
Similar configurations can be used for connecting to other SIP servers.

Step 7 - Overview remaining steps
The diagram below shows the Diva SIPcontrol Software elements that a call goes through when routing from PSTN to SIP or SIP to PSTN.
At minimum you will need to configure these elements for a call to work.

Step 8 - Define the Dialplan

Step 8 - Define the Dialplan
The Dialplan defines the local dialing information where the DMG3000 gateway or DMG4000 gateway is situated.
In the example below, the DMG3000 gateway or 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).
If the Dialplan is correctly configured, the DMG3000/4000 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 OCS or UM2007.
So, the numbers allocated to the DMG3000/4000 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 DMG3000/4000 gateway is connected to a PBX and you need to dial an access number for an outside line (for example: '9') then enter it in the Access code field.
More about Dialplans - Some national exceptions
In the example below, the DMG3000 gateway or 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).
If the Dialplan is correctly configured, the DMG3000/4000 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 OCS or UM2007.
So, the numbers allocated to the DMG3000/4000 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 DMG3000/4000 gateway is connected to a PBX and you need to dial an access number for an outside line (for example: '9') then enter it in the Access code field.
More about Dialplans - Some national exceptions
In the USA it is common to have multiple local area codes and these can be entered in the Other local areas field; you should also check the North-American numbering plan box.
If your country does not have local area codes - meaning you always dial the full national number (for example: France, Poland and Belgium) - then put all of your number except the extension digits in the Area code.
For example: Your DMG3000/4000 gateway is in France and has the range of numbers +331465721000 to +331465721999 so you enter:
Country code 33
Area code 1465721
Max extension digits = 3
Base number is left empty
Intenational prefix is '00'
National prefix is '0'.

Step 9 - Add the Dialplan to the PSTN interfaces
If your country does not have local area codes - meaning you always dial the full national number (for example: France, Poland and Belgium) - then put all of your number except the extension digits in the Area code.
For example: Your DMG3000/4000 gateway is in France and has the range of numbers +331465721000 to +331465721999 so you enter:
Country code 33
Area code 1465721
Max extension digits = 3
Base number is left empty
Intenational prefix is '00'
National prefix is '0'.

Step 9 - 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 DMG3000/4000 gateway. If you have multiple PSTN interfaces (that is, your DMG3000/4000 gateway has more than one connection to the PBX or PSTN) then you should add the Dialplan to each of the PSTN Interfaces that are connected.
The Management utility in the Dialogic® Diva® program group will show you which interfaces are connected and active.
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 10 - Configure the SIP peer
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 10 - Configure the SIP peer
The SIP Peer defines the SIP connection from the DMG3000/4000 gateway to Microsoft OCS or UM2007, or to another SIP service.
You should enter a suitable Name for this connection and then select the destination Peer type.
You should enter a suitable Name for this connection and then select the destination Peer type.
Unchecking Default SIP to PSTN Peer will mean that the DMG3000/4000 gateway will only accept SIP calls from this specific peer; this increases security.
In the Host field enter the IP address or DNS name of the Peer.
Port is the SIP listening port used on the peer and is usually 5060. Microsoft OCS and UM2007 use IP Protocol TCP, most other servers use UDP.
Select the Dialplan you created previously,. For Microsoft OCS, select Number format as 'International number'; for UM2007, select 'Unchanged'. Doing so will format the number being sent to OCS or UM appropriately.

Step 11 - Add a PSTN to SIP route

Step 11 - Add a PSTN to SIP route
Now add a PSTN to SIP route. This element enables calls from the PSTN into the DMG3000/4000 gateway routing engine and enables you to define load balancing and failover scenarios. In this example, all calls will be enabled to be passed to our predefined SIP peer route 'SIP2OCS'
Select Direction as 'PSTN to SIP', check all Controllers (PSTN interfaces) that are connected to the PBX or PSTN and select Loadbalancing as 'Master'.

Step 12 - Add a SIP to PSTN route
Select Direction as 'PSTN to SIP', check all Controllers (PSTN interfaces) that are connected to the PBX or PSTN and select Loadbalancing as 'Master'.

Step 12 - Add a SIP to PSTN route
Next, add a SIP to PSTN route to enable calls from SIP (e.g., from Microsoft OCS or UM) into the DMG3000/4000 gateway routing engine.
In Direction select 'SIP to PSTN', in Select Sources check the SIP Peer defined previously, in this case 'SIP2OCS'. Select Loadbalancing as 'Master' for all controllers (PSTN interfaces) that are connected to the PBX or PSTN.

Step 13 - Select the Diva Media boards to be used for Diva SIPcontrol Software
In Direction select 'SIP to PSTN', in Select Sources check the SIP Peer defined previously, in this case 'SIP2OCS'. Select Loadbalancing as 'Master' for all controllers (PSTN interfaces) that are connected to the PBX or PSTN.

Step 13 - Select the Diva Media boards to be used for Diva SIPcontrol Software
Next select which of the Diva Media boards fitted to the DMG3000/4000 gateway are to be used for SIPcontrol. All available boards are shown as well as the Loopback adapter.
The SIP Listen Port is the SIP port that SIPcontrol Software uses to listen for incoming SIP calls.
The SIP default is '5060', and this would normally be used except for the case of a DMG4000 gateway which also runs the Microsoft OCS Mediation server. The Mediation server itself uses port 5060, so Diva SIPcontrol Software cannot use this port, meaning that another must be used. Generally, port '9803' is chosen, but you may choose another that does not conflict with other IP services on the DMG.
Check the Enabled box alongside the network interface you wish to use.

Step 14 - Save and Activate the configuration

Step 14 - Save and Activate the configuration
Finally, click the Save button to save your changes and activate the configuration. Any calls in progress will not be affected.




