GoIP4

Connecting the GOIP4 GSM gateway

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

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

[endpoint]
trust_id_inbound=yes

Click Save settings.

Advanced Options of provider

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:

Preferences of GoIP4

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.

Parameters of connection

Configurations → Call Out

Under Call Out, remove the prefix sent from MikoPBX:

  • CH1 → Dial Plan: 1:-1

  • CH22:-2

  • Repeat for each channel CH*

  • CH88:-8

Call Out Parameters

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).

Call In Configuration

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):

Summary configuration

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.

Inbound routing rule

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 add1+7

Click Save.

Outbound routing rule

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

Outbound routing rule 2

Repeat similarly for other SIM channels.

See this article for a detailed explanation of outbound routing.

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

Last updated

Was this helpful?