LogoLogo
www.mikopbx.comTelegram communityForum
English
English
  • MikoPBX Manual
    • Quick start
    • Getting to know MikoPBX
    • System requirements
  • Installation
    • Standalone Computer
    • Virtual Machine
      • VMware ESXi
      • VMware Fusion
      • VirtualBOX
      • VMware Workstation Pro
      • Hyper-V
      • Proxmox
    • Cloud
      • AWS
        • AWS deployment guide
        • AWS Marketplace
      • Microsoft Azure
      • Google Cloud
        • Google Cloud deployment guide
        • Google Cloud Marketplace
      • Hetzner cloud (In dev)
      • Digital Ocean
      • Alibaba Cloud
      • Vultr
    • Docker container
      • Docker installation and creating a user and directories
      • Running MikoPBX in a container
      • Running MikoPBX using docker compose
  • User manual
    • Telephony
      • Extensions
      • Call queues
      • IVR Menu
      • Conferences
      • Sound files
      • Call detail records (CDR)
    • Call Routing
      • Telephony providers
      • Incoming routing
      • Outbound routing
      • Night and Holiday Switch
    • Modules
      • Registration in the modules marketplace
      • Module management
      • Application dialplans
    • Maintenance
      • PBX update
        • Updating from the web interface
        • Updating from the MikoPBX console
        • Updating the docker
      • System log entries
      • Reboot
    • Network and Firewall
      • Network interface
      • Firewall
      • Anti brute force
    • System
      • General settings
      • Time Settings
      • Mail settings
        • Setting up E-mail notifications for the Gmail mail service
      • Asterisk Manager Interface(AMI)
      • System files customisation
  • FAQ
    • Setup
      • Installation on MDADM RAID1
      • Fine-tuning the firewall
      • Migrating MikoPBX to Another Server
        • Transfer Using Backup
        • Transfer using scheduled backup (SFTP)
        • Transfer using rsync
      • Reset to factory settings
      • Monitoring Providers on MikoPBX
    • Management
      • Change the login name
      • The extra disk space has run out, the disk size has increased
      • Storing Recordings in a Shared Windows Folder
      • Resetting WEB Interface Credentials
      • Backup Internet and Provider Re-Registration
    • Troubleshooting
      • Connecting to the PBX using SSH
        • Connecting to PBX using SSH client (Putty)
        • Connecting via SSH (Windows)
        • Connecting via SSH (Linux/MacOS)
      • Connecting to a PBX using WinSCP
      • Getting logs using the tcpdump application
      • Capturing Logs from PBX using Wireshark
      • Traffic Analysis Using Sngrep
      • Adjusting the volume
      • Troubleshooting sound problems
      • Jitter Configuration
    • Incoming Routing
      • Choosing a provider when redirecting to a mobile
      • Notification of Employment, Call Waiting
      • Black and white lists
      • Allow additional dialing of the internal number in the queue
      • Output of information about the did number
      • Setting individual non-working hours for a provider account
      • An example of the implementation of a typical route of incoming calls
      • Routing by DID Number
      • Normalization of incoming phone number
      • Basic IVR example
    • Outbound routing
      • Add P-Preferred-Identity and Remote-Party-ID header
      • Conference with a regular external subscriber
      • Outgoing with internal number dialing
      • Remove all special characters from the dialed number
      • Prohibiting calls via a backup route
      • Calls to emergency numbers
      • Number Templates
        • Uniform distribution of outgoing
        • Sample template: calls to another country
        • How to prohibit the replacement of "+" with 00
        • Changing the number prefix from "+345" to "347"
        • Changing the number prefix from "345, 347" to "+345"
        • Removing the area code from the number
        • Adding the prefix "1" to the number
      • Making Calls Through a Specific Provider
    • Scenarios and cases
      • Generate extensions by REST API
      • Missed Call Telegram Notifications
      • Call the company from your mobile and dial an extension to call a third-party company
      • Sending an incoming fax to email
      • Customer's assessment of the quality of service
      • Simulation of external calls
      • Disabling "off-hours" for VIP numbers
      • Registering multiple accounts from one provider
      • Setting up individual non-working hours for several providers on one host
      • Disable forwarding to mobile for internal calls
      • Unique background music for the queue
      • Pause for Queue agent
      • Dynamic Queue Agents
      • Setting up the "Paging" function
      • Limit the number of authorizations per SIP account
      • Call Monitoring (ChanSpy)
      • Conversion of Call History FreePBX -> MikoPBX
      • SSL Certificate for MikoPBX Web Interface from OPNSense
      • Hiding the Caller’s Number from Employees
    • Interconnections
      • Merging two MikoPBX
      • Integration of MikoPBX and Grandstream UCM6202
      • MikoPBX and FreePBX (PJSIP)
      • MikoPBX and FreePBX (IAX)
    • VoIP providers
      • Mango
      • Zadarma
    • Softphones
      • Bria Solo
      • Sessiontalk
      • MicroSIP
      • Groundwire
      • Zoiper
      • Jitsi
      • PhonerLite
      • Linphone (MacOS)
      • Telephone(MacOS)
      • Configuring webRTC client SIMPL5
      • Softphone.pro
      • 3CX Softphone
      • PortSIP
    • IP telefones
      • Snom D120
      • Yealink T19
    • VoIP gateways
      • GoIP4
      • Grandstream HT503
      • Using a Huawei E173 USB Modem for Calls (chan_dongle)
  • Modules
    • MIKO modules
      • for 1C:Enterprise
        • Панель телефонии 4.0 для 1С
        • Панель телефонии 1.0 для 1С
        • Модуль умной маршрутизации
      • Users groups
      • CRM Bitrix24 integration
      • Autoprovision
      • Let's Encrypt
      • Access control management
      • Module auto dialer
      • Backup
      • Synchronization with LDAP/AD
      • Callback module
      • Extended call history
  • other
    • Changelog
      • MikoPBX 2024.1
      • MikoPBX 2023.2
      • MikoPBX 2023.1.223
Powered by GitBook
On this page
  • Before You Begin
  • Creating a Provider Account on MikoPBX
  • Gateway Configuration
  • Configurations → Preferences
  • Configurations → Basic VoIP
  • Configurations → Call Out
  • Configurations → Call In
  • Status → Summary
  • MikoPBX Call Routing
  • Inbound Route
  • Outbound Route

Was this helpful?

Edit on GitHub
Export as PDF
  1. FAQ
  2. VoIP gateways

GoIP4

Connecting the GOIP4 GSM gateway

Last updated 1 month ago

Was this helpful?

GoIP4 is a four-port gateway designed for constant connection between GSM and VoIP networks. It allows users to make both outbound and inbound calls between these networks.

Before You Begin

  1. Back up your current gateway settings.

  2. Perform a factory reset on the gateway.

Creating a Provider Account on MikoPBX

In this example, the GoIP4 gateway will register to MikoPBX.

  1. Create a provider (SIP) account on MikoPBX with these parameters:

  • Provider Name – e.g., “GoIP4”

  • Account Type – “Incoming Registration”

  • Username – The provider ID (e.g., “SIP-TRUNK-53A707FC”)

  • Password – A strong password for gateway registration on MikoPBX

  1. In the provider’s Advanced Settings, under Advanced Options, add:

[endpoint]
trust_id_inbound=yes

Click Save settings.

When sending calls to MikoPBX, the gateway uses the Remote Party ID header to include the client’s phone number. MikoPBX uses this to set the CID.

Gateway Configuration

Access the GoIP4 web interface to configure the gateway.

Configurations → Preferences

Under Configurations → Preferences, set an appropriate time zone and disable IVR:

Configurations → Basic VoIP

In Basic VoIP, set the MikoPBX connection parameters:

  • Config Mode – Single Server Mode

  • Authentication ID, Phone Number, Display Name – Your MikoPBX provider ID (e.g., “SIP-TRUNK-XXXXX”)

  • Password – The provider password

  • SIP Proxy, SIP Registrar, Home Domain – MikoPBX’s IP address

  • Delete Callee Prefix while Dialing – Disable

  • Routing Prefix – Use prefix 1 for Line1, 2 for Line2, etc.

Later, you’ll define outbound routes in MikoPBX for each SIM card, adding the required prefix before the dialed number.

Configurations → Call Out

Under Call Out, remove the prefix sent from MikoPBX:

  • CH1 → Dial Plan: 1:-1

  • CH2 → 2:-2

  • Repeat for each channel CH*

  • CH8 → 8:-8

A dial plan rule like “1:-1” removes the first digit when it starts with 1.

Configurations → Call In

Under Call In, configure incoming call forwarding:

  • CID Forward Mode – “Use Remoe Party ID”

  • For each channel CH1, CH2, etc., set Forwarding to VoIP Number to the SIM’s phone number (digits only).

This completes the gateway configuration.

Status → Summary

Under Status → Summary, the VoIP column shows whether the gateway is registered to MikoPBX (Y indicates successful registration; e.g., N for channels without SIM cards):

MikoPBX Call Routing

Inbound Route

In MikoPBX, go to Call Routing → Incoming Routing and create a new rule:

  • Provider – Your GoIP4 provider

  • Direct inward dialing number (DID) – The number you set in GoIP4’s Forwarding to VoIP Number for that channel

  • The call will be forwarded to – The extension receiving inbound calls (e.g., extension 201)

Click Save.

Outbound Route

Go to Routing → Outbound Routing. Create a new rule for the first SIM:

For numbers matching (7|8)911XXXXXXX, route via GoIP4, adding prefix 1+ before dialing.

  • Begins with – (7|8)911

  • The rest – 7 digits

  • Cut off – 1 digit

  • Then add – 1+7

Click Save.

Add another rule for the second SIM (e.g., (7|8)926XXXXXXX) with prefix 2+, etc.

Repeat similarly for other SIM channels.

The gateway is now connected to MikoPBX. You can test inbound and outbound calls via the GSM gateway.

See for a detailed explanation of outbound routing.

Using the module, you can assign each employee their own SIM card for outbound calls.

this article
Users Groups
Provider Parameters
Advanced Options of provider
Preferences of GoIP4
Parameters of connection
Call Out Parameters
Call In Configuration
Summary configuration
Inbound routing rule
Outbound routing rule
Outbound routing rule 2