In the two units so far I've set up, the starting point was to update the firmware. The easiest way to do this is to download the latest firmware from the appropriate page of the site GrandStream : the latest available at the time of writing this article is 1.0.1.2.
We will make sure that you have a webserver which make our unity GXW-4104 can download the firmware. We'll have to unpack the zip with the firmware in a subdirectory of your webserver, for example in a folder called "firmware /". Assuming that the server responds to the IP 192.168.0.1, and opening a browser, we must ensure that - by going to http://192.168.0.1/firmware is displayed a list of the contents of the folder extracted previously, namely:
- boot64.bin
- boot64a.bin
- gxw4100.bin
- load64.bin
Without these basic steps, we will configure our unit so that it can take the firmware from our web server. By accessing the administration panel via our trusty browser notification, we will:
- Activate the upgrade through HTTP protocol;
- Set the path of the firmware ("Firmware Server Path" should be filled with the value - following the example given above - "http://192.168.0.1/firmware")
- Enable auditing for the upgrade (Always check for New Firmware) and the date by which the check must be made ("check for upgrade every"): the lowest possible value is 60 minutes.
Without this, after 60 minutes set the firmware will be downloaded from the web and the next time unit we find the latest release of firmware you have time to grab a coffee and read the latest news on voip-PBX 
After updating the firmware, do not forget to check by "Status" that the version of firmware 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 the PSTN tones
- Set the SIP Server
- Configure Asterisk
The configuration shown in this mini-tutorial aims to help you:
- receive calls on any port FXO and dispatch them - all - into a single sip account
- make calls using the PSTN directly from your SIP phones
1. Setting FXO ports
In "FXO Lines":
Under "FXO Termination"
- Enable Current Disconnect: Yes
- Enable Tone Disconnect: Yes
- Enable Polarity Reversal: No
- AC Termination Impedance: 270 Ohm + (750 Ohm | | 150 nF) and 275 Ohm + (780 Ohm | | 150 nF)
- Unconditional Call Forward to VOIP:
- Username: ch1-4: 111; (It means that for channels 1 to 4 calls are redirected all'extension SIP/111 the sip server specified for each channel)
- SIP Server: ch1-4: p1 (It means that for channels 1 to 4 should 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 (1/2): ch1-4: 1;
In the "Channels":
Under "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 a single profile, under "Profile 1", set the IP of your Asterisk server is in "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 modify 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. Possible configurations are much more advanced, but I leave this task to you: When you're familiar with the structure of the configuration panel, everything should become easier!
Tags: Call Center Systems | VoIP PBX | Asterisk Consultant Naples | PBX Phone | VoIP | Asterisk CTI | PBX | IP Phones | Networking | Linux
Development of IVR systems, call center, VoIP PBX.