In the two units so far I've set the starting point was to update the firmware. The easiest way to do this is to download the latest firmware version from the appropriate page of the site GrandStream : the latest available at the time of writing this article is 1.0.1.2.
We make sure to have a webserver which make our unity GXW-4104 can download the firmware. We unpack the zip with the firmware in a subdirectory of your webserver, eg in a folder called "firmware /". Assuming that the server responds to IP 192.168.0.1, and opening a browser, we must ensure that - logging at http://192.168.0.1/firmware is displayed listing the contents of the extracted folder earlier, namely:
- boot64.bin
- boot64a.bin
- gxw4100.bin
- load64.bin
Without these basic steps, go to configure the unit so we can remove the firmware from our web server. By accessing the administration panel via our trusty browser requirements:
- Enable upgrade via HTTP;
- Set the path of the firmware ("Firmware Server Path" should be filled with the value - following the example done before - "http://192.168.0.1/firmware)
- Enable auditing to upgrade (Always check for New Firmware) and the period within which the check must be done ("Every check for upgrades"): the lowest value possible is 60 minutes.
Without this, after 60 minutes set the firmware will be downloaded from the web and restart the unit we find the latest firmware release: you have the time to have coffee and read the latest news on PBX-VoIP 
After the firmware update, do not forget to check the "Status" that the firmware version is actually equivalent to that discharged.
Without the upgrade, we can do the configuration itself. We list the first steps:
- Set the FXO ports and parameters of PSTN tones
- Set the SIP Server
- Configuring Asterisk
The configuration described in this mini-tutorial aims to enable you to:
- receive calls on any port FXO and sorting - all - into a single SIP account
- make calls using the PSTN directly from your SIP phones
1. Setting FXO ports
In "FXO Lines":
Under "Termination FXO"
- Enable Current Disconnect: Yes
- Enable Disconnect Tone: Yes
- Enable Polarity Reversal: No
- AC Termination Impedance: 270 Ohm + (750 ohms | | 150 nF) and 275 Ohm + (780 ohms | | 150 nF)
- Unconditional Call Forward to VOIP:
- Userid: ch1-4: 111; (It means that for channels 1 to 4 calls will be forwarded all'extension SIP/111 the SIP server specified for each channel)
- SIP Server: ch1-4: p1 (It means that for channels 1 to 4 will be used to configure the SIP server specified in p1 = Profile number 1)
- SIP Destination Port: ch1-4: 5060; (It means that for channels 1 to 4, the SIP server is on port 5060)
In "Channel Dialing"
- Wait for Dial-Tone (Y / N): ch1-4: N;
- Stage Method (half): ch1-4: 1;
In "Channels":
Under the Call Progress Tones ":
- Dial tone: ch1-4: f1 = 425 @ -14, f2 = 425 @ -14, c = 20/20-60/100;
- Ringback tone: ch1-4: f1 = 425 @ -14, f2 = 425 @ -14, c = 100/400;
- Busy Tone: ch1-4: f1 = 425 @ -14, f2 = 425 @ -14, c = 20/20-20/20;
- Reorder Tone: ch1-4: f1 = 425 @ -14, f2 = 425 @ -14, c = 20/20-20/20;
- Confirmation tone: ch1-4: f1 = 425 @ -14, f2 = 425 @ -14, c = 20/20-20/20
Under "Specific Channel Setting":
- DTMF Methods (1-7): ch1-4: 2;
2. Set the SIP Server
We will use one profile, under "Profile 1", set the IP of your Asterisk server is "SIP Server" in "Outbound Proxy".
3. Configuring Asterisk
Edit the file sip.conf:
[gxw410x]
type=peer
context=from-grandstream
host=ip_di_asterisk
insecure=port
dtmfmode=rfc2833
[111]
type=friend
secret=111
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=gxw410x
Edit the extensions.conf file and add a rule for outgoing calls to the GXW 4104:
[grandstream]
exten => _0X.,1,Dial(SIP/${EXTEN:1}@gxw410x,30,r)
At this point you just have to adjust your dialplan to handle incoming calls according to your needs.
This guide is not exhaustive and is an indication of the main steps you should take a basic configuration of this product. Configurations are much more advanced, but I leave you this task: When you got to know the structure of the configuration panel, all should become easier!
Tags: Call Center Systems | VoIP PBX | Asterisk Consultant Naples | PBX | Voip | Asterisk CTI | PBX | IP Phones | Networking | Linux
Development of IVR systems, callcenter, PBX Voip.