The other day, I configured the GSM gateway GOIP-4, so I decided to make an instruction not to look for settings in the Internet when later configuring the same gateway.
The GSM GOIP4 gateway has 2 ports for connecting to the Lan and PC network. The Lan port receives IP via DHCP from the router or gateway in the local network, and the PC itself distributes IP from the subnet 192.168.8.0/24, the IP address of the gateway itself 192.168.8.1. So it is made that you can use 1 cable to connect GOIP4 to the enterprise network, and by connecting the cable to the PC port and computer, this computer will have access to the Internet and local network through the GSM GOIP4 gateway.
We connect the GSM GOIP4 gateway to the local network in the Lan socket and monitor on the router or gateway which IP the GOIP4 gateway receives, this IP that GOIP4 received, we enter into the browser for configuration. We can also connect your computer to the PC port and configure GOIP4 in the browser at:
http://192.168.8.1/
When you open the GOIP web interface, you will be asked to enter a login and password, enter a login and password. admin
We configure time acquisition from our NTP time server, which is configured on the Asterisk server, for this we click on the link: Configurations - Preferences And we're changing the time zone for Ukraine. GMT+3for Moscow GMT+2:
- Time Zone: GMT+3
- Time Server: 192.168.15.10
Turn off the voice menu:
- IVR: Disable
Let's go to the link: Configurations - Network and enter the settings:
- LAN Port choose Static IP
- IP Address: 192.168.15.11
- Subnet Mask: 255.255.255.0
- Default Route: 192.168.15.1
- Primary DNS: 192.168.15.1
- Secondary DNS: 8.8.8.8
After the changes, save the settings by clicking on the button Save Changes
Reboot the gateway, for the application of changes by clicking on the link: Tools - Reboot and agreeing to restart the device.
Updating the firmware
We go to the site by clicking on the link: Firmware site for GSM GOIP gateway. A window will open in which we see the latest firmware for our gateway, copy the link to the firmware full address:
- Upgrade Site: http://www.hybervoice.com/update/GS-4.01-99.pkg
Click on the button. Start lock-start GOIP4:
After the firmware, we overload the gateway. GOIP4 And we see the gateway statistics page:
Setting up the gateway connection GOIP4 on the side of PBX Asterisk
Add a feast. kievstar-1Others are added similarly, only by changing the name for example:
[kievstar-1] host=dynamic type=friend context=incoming-goip disallow=all allow=alaw allow=ulaw dtmfmode=rfc2833 username=kievstar-1 secret=45gfaSwvfMet5Fr qualify=yes nat=no deny=0.0.0.0/0.0.0.0 permit=192.168.15.11/255.255.255.255 canreinvite=no insecure=port,invite
Click on the link Configurations - Basic VoIP customizable Line 1
- Config Mode: Config by Line
- Line 1
- Authentication ID: kievstar-1
- Password: 45gfaSwvfMet5Fr
- Routing Prefix: 1
- Sip Proxy: 192.168.15.10
- SIP Registrar Server: 192.168.15.10
- Endpoint Type: SIP Phone
- Config Mode: Single Server Mode
- Phone Nymber: kievstar-1
- Display Name: kievstar-1
After the changes, save the settings by clicking on the button Save Changes:
similarly configured and Line 2, Line 3 and Line 4:
Click on the link Configurations - Call In and configure sending Caller ID from the gateway to Asterisk, for this purpose in the drop-down list of CID Forward Mode select Use CID as SIP Caller ID:
- CID Forward Mode: Use CID as SIP Caller ID
For Channel One. CH1 In the Forward Number To VoIP Number field, we specify the number that will receive a call from the gateway to Asterisk, in my case it is kievstar-1:
- Forward Number (PSTN To VoIP): kievstar-1
To apply the introduced changes, click on the button Save Changes:
For channel two. CH2 In the Forward Number To VoIP Number field, we specify the number that will receive a call from the gateway to Asterisk, in my case it is kievstar-2:
- Forward Number (PSTN To VoIP): kievstar-2
To apply the introduced changes, click on the button Save Changes:
For channel two. CH3 In the Forward Number To VoIP Number field, we specify the number to which a call will be received from the gateway to Asterisk, in my case it is mts-1:
- Forward Number (PSTN To VoIP): mts-1
To apply the introduced changes, click on the button Save Changes:
For channel two. CH3 In the Forward Number To VoIP Number field, we specify the number that will receive a call from the gateway to Asterisk, in my case it is life-1:
- Forward Number (PSTN To VoIP): life-1
To apply the introduced changes, click on the button Save Changes:
Click on the link Configurations - Call Out for CH1 Specify the prefix to be sent from Asterisk and which will be deleted on the first gateway channel:
- Dial Plan: 1:-1
To apply the introduced changes, click on the button Save Changes:
For CH2 Specify the prefix to be sent from Asterisk and which will be deleted on the second gateway channel:
- Dial Plan: 2:-2
To apply the introduced changes, click on the button Save Changes:
For CH3 Specify the prefix to be sent from Asterisk and which will be deleted on the second gateway channel:
- Dial Plan: 3:-3
To apply the introduced changes, click on the button Save Changes:
For CH4 Specify the prefix to be sent from Asterisk and which will be deleted on the second gateway channel:
- Dial Plan: 4:-4
To apply the introduced changes, click on the button Save Changes:
Configure the incoming call to Asterisk on the example of kievstar-1, for others similar. Add the context of the incoming call:
[incoming-goip] exten => _kievstar-1,1,Dial(SIP/101&,120,KTt) same => n,Hangup(19)
We add the context of an outgoing call through our gateway for calls only to Kyivstar operator, we configure it similarly through other operators:
[out]
exten => _0[36][789]XXXXXXX,1,Dial(SIP/kievstar-1/${EXTEN},120,KT)
same => n,Hangup(${HANGUPCAUSE})
exten => _0[9][678]XXXXXXX,1,Dial(SIP/kievstar-1/${EXTEN},120,KT)
same => n,Hangup(${HANGUPCAUSE})After setting up, you can go to the Asterisk console, dial the command sip show peers and in the list of connected peers see your configured GSM gateway GOIP4:
voip*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status ... kievstar-1/kievstar-1 192.168.15.11 D A 5060 OK (8 ms) kievstar-2/kievstar-2 192.168.15.11 D A 5060 OK (16 ms) mts-1/mts-1 192.168.15.11 D A 5060 OK (18 ms) life-1/life-1 192.168.15.11 D A 5060 OK (10 ms) ...
In the work, these gateways proved to be excellent, communication is high-quality, much better than using 3G modems like Huawei E1550 and similar. It remains only to decide how convenient it is to remove the balance from the SIM in this gateway and send the received SMS to the telephony server web server for easy viewing.
I was with you. Sergey Lazarenko.
After setting up the GSM gateway GOIP4 and Asterisk server, take a short break and watch the video:














comment