GXV3240 - GXV3240 Quick User Guide
GXV3240 - GXV3240 Quick User Guide
GXV3240 - GXV3240 Quick User Guide
Please note that due to the customizable nature of both the GXW410x and Asterisk and the vast
deployment possibilities, these instructions should be taken as a basic tutorial sample of getting
the GXW410x to work with Asterisk. Your implementation may be customized and differ from
this basic configuration as according to your needs.
There are two methods to configure the GXW410x to work with Asterisk:
Method Configure the GXW410x with SIP accounts in Asterisk; this will enable you to put
1 the GXW410x behind a NAT/firewall (used for one-stage and two-stage dialing).
Method Configure the GXW410x to function as a PEER gateway (no SIP accounts are
2 needed; only used for one-stage dialing).
1. Depending on your deployment scenario, please choose one method and follow the
instructions for that method below:
[gxw410x]
type=peer
context=incoming
host=gxw410x_ip_address
insecure=port
On the GXW410x, enter the Asterisk server IP address or FQDN under the Profile 1
web configuration page. Set the SIP Registration setting to No.
If you are not using an outbound proxy, then it is not necessary to enter this
information
Configuring the GXW410x using SIP accounts
In the sip.conf file, add SIP accounts for the GXW410x’s channels. The SIP account user
IDs may only be numeric; otherwise the GXW410x will not register the non-numeric SIP
accounts. You may add up to four or eight depending on the number of channels you
have:
[101]
type=friend
secret=password
host=dynamic
context=internal
insecure=port
Repeat until all desired SIP accounts have been configured. Please note that when using
two-stage dialing, the PSTN caller has as much access in the VoIP side of the system as
the context the configured SIP account is in allows. This may present a security concern
to some if unauthorized callers can commit toll fraud by calling in and using another
trunk to make unauthorized outbound calls, or gain other unauthorized system access.
On the GXW410x, enter the Asterisk server IP address or FQDN under the Profile 1 web
configuration page. Set the SIP Registration setting to Yes.
Under the Channels web configuration page, enter the SIP User IDs, Authentication IDs,
and Authentication passwords as well as their corresponding profiles.
2. Next, the GXW410x will need to be configured to use one-stage dialing or two-stage dialing.
Please see the Frequently Asked Questions section for the definitions of one-stage and two-stage
dialing. Once you have chosen your stage method, please configure Asterisk and the GXW410x
using the corresponding procedure below:
Using one-stage dialing
In the extensions.conf file, you will need to specify what numbers dialed from the VoIP
side will be sent through the GXW410x. To specify ten-digit numbers and eleven-digit
long-distance numbers conforming to NANPA specifications as well as 911 emergency
services to be sent through the GXW410x, use the following syntax in the same context
as the VoIP caller, or in an included context:
If configuring the GXW410x using SIP accounts, please replace “gxw410x” with a
SIP account configured on the GXW410x channels, such as “101”.
With this dial-plan, numbers such as (626)956-0260, 1(617)566-9300, and 911 will be
dialed through the GXW410x.
Calls coming into the GXW410x from the PSTN side are directly auto dialed to a VoIP
extension when using one-stage dialing. On the Asterisk side, set the auto dialed
extension in the extensions.conf file, within the same context that the GXW410x is in or
in an included context. In this example, we forward incoming PSTN calls to extension
200, which may call a SIP device or play a greeting file (such audio files are generally
stored in directory /var/lib/asterisk/sounds). Asterisk can receive the calls auto dialed to
extension 200 using the following rule:
On the GXW410x, under FXO Lines web configuration page set the following:
1. Wait for Dial-Tone(Y/N) to N.
2. Stage Method(1/2) to 1.
3. Unconditional Call Forward to VoIP: The user should construct a valid URI where to
forward the call. The User ID can be the extension number like ch1-4:200; The SIP
server will be using the IP address or FQDN indicated in the profile page, we use p1 for
profile1, p2 or profile2 and p3 for profile3. The SIP destination port should be the one
where the Asterisk is listening for incoming SIP communication.
Using two-stage dialing (can only be used when configuring GXW410x with SIP accounts)
Using two-stage dialing, the VoIP users simply need to be able to dial the SIP accounts
configured on the channels of the GXW410x. For example, if one of the SIP accounts is
SIP/101, we add this line in the extensions.conf file, within the same context as the VoIP
caller or in an included context:
With this rule, VoIP users may dial extension 101 and the call will be connected with the
corresponding GXW410x channel, where they will receive the PSTN dial tone to make
PSTN calls.
On the GXW410x, under FXO Lines web configuration page set the following:
1. Wait for Dial-Tone(Y/N) to N.
2. Stage Method(1/2) to 2.
3. Unconditional Call Forward to VoIP does not need to be set as it is not used. Incoming
PSTN calls will simply receive VoIP dial tone, where the PSTN caller can then dial a
VoIP number.
3. Most settings on the GXW410x web configuration pages are set to default values. However,
some settings should be configured according to the local environment if necessary.
A. PSTN Settings
The following fields need to be set according to the PSTN Service provider (or PSTN PBX):
http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf
B. DTMF Methods (used only for PSTN to VOIP calls, not for VOIP to PSTN).
The gateway allows several combinations of DTMF sending methods from PSTN to VoIP.
For example, to set all channels to use RFC2833, find the DTMF Method field under the
Channels web configuration page and set it to the following:
Please make sure the DTMF methods you set match those enabled on Asterisk.
RFC2833 is the recommended method; which can be set under the [general] area in the
sip.conf file with this line:
dtmfmode=rfc2833
C. NAT Settings
1. If you are planning to place the gateway within a private network separated from the
Asterisk server from behind a firewall, we recommend using a STUN Server. In the
STUN Server field under the Advanced Settings web configuration page, enter a STUN
server IP or FQDN. You can find free public STUN servers on the internet. Set NAT
Traversal (STUN) under the Profile web configuration pages to Yes.
2. Depending on your network settings, you may set the Use Random Port setting under
the Advanced Settings web configuration page to Yes or No. If using a public IP address,
set this setting to No.
Under the Profile web configuration pages, you can choose from five different codecs:
Please make sure that the codecs you set match those enabled on Asterisk. Codecs may be
enabled system-wide in Asterisk or for specific users. For example, to enable PCMU and
GSM system-wide, place the following lines under the [general] settings in the sip.conf file:
allow=ulaw
allow=gsm
4. You should now reload the chan_sip.so module and the extensions in Asterisk, or simply
restart the service. The commands vary depending on the version of Asterisk. Update the
changes made to the GXW410x and reboot the device. You may now place inbound and
outbound test calls to test your configuration.