Grandstream FXO Gateways
Grandstream FXO Gateways
The first step in setting up a Grandstream GXP Gateway is to unbox the device and verify the contents.
The FXO Gateway should be included with a power adapter an Ethernet cable, and documentation.
Once we have confirmed the contents, we will need to access the device over a web browser to start the configuration.
Obtaining the IP Address
There are a couple of ways which you can acquire the IP address of the device in order to access it.
The first and possibly the quickest, assuming you are on the same LAN segment as the device, is by utilizing Grandstreams ‘IPQuery’ Tool. This tool can be downloaded from Grandstream @ http://www.grandstream.com/sites/default/files/Resources/IPQuery_0.zip (It includes the necessary Vcred distribution which needs to be installed prior to running the IPQuery tool).
After installing the IPQuery tool and necessary prerequisites you should see a screen similar to the following:
Once you have the IPQuery tool running, you will need to:
- Select the local interface that is on the same LAN as the FXO Gateway from the 'Interface' drop down.
- Start the capture with the ‘listen' button in the lower left corner
- While the IPQuery tool is listening for data, reboot the FXO Gateway and keep an eye on the MAC/IP Address field
If successful the program will display the device's MAC as well as its current IP.
If you were able to get the IP via this method you can continue onto the section below labeled 'Accessing the Device'. If not then you may need to access the local device that is handing out DHCP (I.E. a router) to associate the MAC with a current IP Lease.
Once you know the IP address of the Gateway you will need to enter it in a web browser to access the administration interface:
Accessing the Device
The default login pass for the WWW GUI is: admin
Configuring the Device
Note: In the examples below we utilize the setting parameter ch1-4 multiple times. If you happen to be working with a GXW-4108 (8 port FXO gateway) you will need to replace ch1-4 with ch1-8
The first thing you should configure is one step dialing. In order to do this we will need to browse to the FXO Lines settings:
Once there click on 'Dialing' on the left hand side and change:
- "Wait for dial tone(Y/N)" to: ch1-4:N;
- "Stage Method(1/2)" to: ch1-4:1;
You will now need to browse to Settings → Channel Settings and adjust the following:
- Set the 'DTMF methods' value to RFC2833: ch1-4:2;
- Construct a valid URI that will forward the calls from the Grandstream Gateway to the PBX. The "User ID" will be the DID number you want to map to a specific destination on the Evolution PBX Phone line configuration. Here are a few examples of how a DID/port can be formatted:
- All 4 ports for a single DID: ch1-4:5551234
- 2 ports for one DID, 2 individual DID's: ch1-2:5551234;ch3:5551236;ch4:5551237
- Individual ports with individual DID’s: ch1:5551234;ch2:5551235;ch3:5551236;ch4:5551237
- The final step is to ensure the SIP server (highlighted in red below) is set to the proper profile for the Evolution PBX (The next section will expand on the profiles)
- If all 4 ports are ringing into the same PBX, set this value as 1 as shown below:
After configuring the routing of the ports, as well as the DTMF type and the type of dialing, we need to configure the profile to interface with the Evolution PBX. After we do this we will configure the SIP Trunk on the PBX itself. The profiles (otherwise known as accounts) are located under 'Accounts' in the navigation bar near the top of the screen. When you click on accounts you are taken into the General Settings of Account One as shown below:
The SIP Server field should be the IP address of the Evolution PBX and the Account name is a contextual value to identify the account.
Under SIP settings, be sure to change the SIP registration from 'yes' to 'no':
Evolution PBX FXO Gateway SIP Trunk
To establish communication between the PBX and FXO gateway we need to configure an account on the PBX. The 'VoIP - Generic' phone line type works great for this (for more info on phone lines/trunks reference the Phone Line article).
Set the values, noted in the screenshot below, as necessary:
- Account ID: Contextual Identification of the trunk/gateway
- Max Calls: The number of lines connected to the Gateway
- Auth Type: IP Only
- Proxy Address: The IP of the GXP FXO Gateway
The final piece to bring the Grandstream FXO Gateway online is to ensure we have the routing on the PBX setup properly.
- In the screenshot above the routing is set with a _X. (a dialplan wildcard) and pointed at the ConferenceAdmin Auto Attendant
- If you are mapping individual DID's to ports you will need to put the DID's in the Number field based on the Channel Settings in the gateway