Configuring FortiVoice to Connect with PSTN Gateway
To configure FortiVoice to connect with PSTN Gateway
Go to Trunks > Office Peers and select New.
Add the GXW4104 gateway as a peer office.
Enter the IP address of the gateway as remote server and leave Authentication Settings unchecked.
Go to Call Routing > Outbound and select New.
Add outbound call routing rules to direct outgoing calls to GXW4104 from FortiVoice. In the example to the right, all calls to destination numbers longer than seven digits are 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.
Go to Call Routing > Inbound and select New.
Add inbound call routing rules for incoming calls from GXW4104 gateway. In the example to the right, all incoming calls are forwarded to the extension provisioned previously.
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 prompted.
Configuring Grandstream GXW4104 Gateway
For this procedure you will need to download an IPQuery tool from Grandstream.
Connect the WAN port of GXW4104 to your network switch. It will be assigned an IP address by your internal DHCP server.
Connect to the web interface of GXW4104 by entering the IP address obtained by the IPQuery tool.
Create an account with the FortiVoice IP address as the SIP server.
Disable SIP registration for the account you just created.
Add a channel using the account created in the example to the side. Authenticate ID and Authen Password can be left blank.
Configure channel settings to unconditionally forward calls from PSTN to FortiVoice.
Set the dialing method to 1 stage.
Verifying the Configuration
You should now verify the connection between the Grandstream gateway and FortiVoice.
Make an incoming call from the PSTN side to the number(s) attached to the phone line connected to the Grandstream PSTN port. Make sure your FortiFone receives the phone call and the caller ID is displayed
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 the PSTN gateway. Make sure the call is successful and the caller ID is displayed.