FortiVoice-VM with Grandstream PSTN
Gateway Configuration Guide
FortiVoice-VM with Grandstream PSTN Gateway Configuration Guide
December 24, 2014
Copyright© 2014 Fortinet, Inc. All rights reserved. Fortinet®, FortiGate®, and FortiGuard®, are registered trademarks of Fortinet, Inc., and other Fortinet names herein may also be trademarks of Fortinet. All other product or company names may be trademarks of their respective owners. Performance metrics contained herein were attained in internal lab tests under ideal conditions, and performance may vary. Network variables, different network environments and other conditions may affect performance results. Nothing herein represents any binding commitment by Fortinet, and Fortinet disclaims all warranties, whether express or implied, except to the extent Fortinet enters a binding written contract, signed by Fortinet’s
General Counsel, with a purchaser that expressly warrants that the identified product will perform according to the performance metrics herein. For absolute clarity, any such warranty will be limited to performance in the same ideal conditions as in Fortinet’s internal lab tests.
Fortinet disclaims in full any guarantees. Fortinet reserves the right to change, modify, transfer, or otherwise revise this publication without notice, and the most current version of the publication shall be applicable.
Technical Documentation
Knowledge Base
Customer Service & Support
Training Services
FortiGuard
Document Feedback docs.fortinet.com kb.fortinet.com support.fortinet.com training.fortinet.com fortiguard.com [email protected]
Introduction
FortiVoice-VM is the virtual appliance version of the award winning FortiVoice Enterprise Phone System. It supports the most popular virtualization environment such as Vmware ESXi, Microsoft Hyper-V, Citrix Xenserver and open source KVM. It comes with all the nice features that FortiVoice Enterprise phone system offers and has the flexibility to scale with stackable license.
The only limitation is that it doesn’t have any traditional PSTN ports. In case you are using traditional analogue
PSTN lines, instead of VoIP SIP trunk, you can use Grandstream PSTN gateway, such as GXW 4104 (4 FXO) or
4108 (8 FXO). For example, GXW4104 uses FXO ports to connect to the service provider with FXO ports and uses IP connection (LAN port) to connect to FVC-VM.
The following network diagram shows how FortiVoice-VM is connected with the Grandstream gateway:
In this scenario, FortiFone uses a dynamic IP address with a third-party DHCP server. The FortiFone will be configured with auto-provisioning. There is no dedicated VLAN for voice.
The Grandstream GXW4104 gateway can be connected to the FVC-VM in one of the two methods:
• Method 1: Configure GXW410x with SIP accounts in IP PBX, which will enable you to put GXW-410x behind a NAT/Firewall (used for one-stage and two-stage dialing).
• Method 2: Configure GXW410x to function as a PEER gateway (no SIP accounts are needed; this is only used for one-stage dialing).
This guide uses method 2, which configures the gateway as a peer office and doesn’t require registration for simplicity.
3
Configuration Procedures
This guide assumes that you use FortiVoice-VM version 3.0.5. The same configuration also applies to the other platforms of the FortiVoice Enterprise Phone System.
This configuration example includes the following procedures:
• Provisioning SIP extensions on FortiVoice
• Configuring FortiVoice to connect with PSTN gateway
• Configuring Grandstream GXW4104 Gateway
• Verifying the configuration
Part 1: Provisioning SIP extensions on FortiVoice
1. On the FortiVoice-VM web GUI, go to Phone System > Advanced Setting > Auto-
provisioning and enable auto-provisioning. By default it is turned off.
4
2. Go to Extensions > Extensions > IP Extensions and add a SIP extension with its MAC address.
3. Factory reset the FortiFone from the LCD panel by pressing the Menu button and then number
6. It should reboot and register with the SIP extension configured in the previous step. The phone may require an extra reboot during the provisioning process.
5
Part 2: Configuring FortiVoice to connect with PSTN gateway
1. On the FortiVoice-VM web GUI, go to Trunks > Office Peers and add the GXW4104 gateway as a peer office. Enter the IP address of the gateway as remote server and leave
Authentication Settings unchecked for simplicity.
6
2. Go to Call Routing > Outbound and add outbound call routing rules to direct outgoing calls to
GXW4104 from FortiVoice.
In this example, all calls to destination numbers longer than 7 digits (presented by seven X and one dot) will be forwarded to the PSTN lines connected to the Grandstream gateway.
Remember to select the peer office created in the previous step as the trunk in call handling.
7
3. Go to Call Routing > Inbound and add inbound call routing rules for incoming calls from
GXW4104 gateway.
In this example, we forward all the incoming calls to the extension provisioned previously as following:
8
4. If you have more than one extension, you can forward incoming calls to the auto-attendant so that the caller can enter the desired extension number when being prompted:
9
Part 3: Configuring Grandstream GXW4104 Gateway
1. Connect the WAN port of GXW4104 to your network switch and it will be assigned an IP address by your internal DHCP server. You can download the IPQuery tool from Grandstream website to find its IP address. http://www.grandstream.com/tools/IPQuery/IPQuery.zip
Connect to the web interface of GXW4104 by entering the IP address found into your browser.
The default administrator password is “admin”.
2. Create an account with the FortiVoice IP address as the SIP server. The account name can be any string you like.
10
3. Disable SIP registration for the account you just created.
4. Add a channel using the account created above. Authenticate ID and Authen Password can be left blank as they are not enabled on the FortiVoice side. They can be enabled later on both ends once the two-way communication is verified.
11
5. Configure channel settings to unconditionally forward calls from PSTN to FortiVoice.
6. Set the dialing method to 1 stage.
12
Part 4: Verifying the configuration
Once the configuration on both Grandstream gateway and FortiVoice is complete, you can proceed to verify your setup:
1. Verify the incoming call from the PSTN side to SIP side.
Make an incoming call from PSTN side to the number(s) attached to the phone line connected to Grandstream PSTN port (FXO). Make sure your FortiFone can receive the phone call and the caller ID can display properly.
2. Verify the outgoing call from SIP side to PSTN side.
Make an outgoing test call from FortiFone using the destination number pattern defined in the outbound call routing rule on FortiVoice so that they can be forwarded to PSTN gateway. Make sure the call is successful and caller ID is displayed properly on callee’s phone.
References
1. FortiVoice Enterprise SIP extension Auto Provisioning Technical Note, http://www.fortivoice.com/sites/default/files/productdatasheets/auto_prov.pdf
,
Fortinet Inc, May 2014
2. FortiVoice 200D, 200D-T and 2000E-T2 Administration Guide, http://www.fortivoice.com/sites/default/files/productdatasheets/fv_admin_v3_0_1_rev2.pdf
,
Fortinet Inc, May 2014
3. Grandstream GXW410X Quick Installation Guide, http://www.grandstream.com/products/gxw_series/gxw410x/documents/gxw410x_quickstartg uide_english.pdf
, Grandstream Networks, April 2008
13
14