FortiVoice VM does not have traditional PSTN ports, so if you are using traditional analogue PSTN lines, you can use Grandstream PSTN gateway to connect.
The following recipe shows you how to connect the FortiVoice VM with the Grandstream gateway.
Configuring SIP Extensions
|
To configure provisioning SIP extensions on FortiVoice
- Go to Phone System > Advanced Setting > Auto Provisioning.
- Enable Auto Provisioning.
- Go to Extensions > Extensions > IP Extensions.
- Select New
- Add a SIP extension with its MAC address
- Select Create and reset your system.
|
Enabling auto provisioning
Creating a new IP extension.
|
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.
|
Creating a new office peer
Adding outbound call routing rules.
Adding call inbound routing rules.
|
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.
|
Creating an account
SIP settings
Configuring channel settings
|
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.
|
|
The post Connecting FortiVoice VM with Grandstream Gateway appeared first on Fortinet Cookbook.