Simulation of external calls

Configuring simulated external calls

A useful tool for configuring MikoPBX is to simulate incoming and outgoing external calls without connecting a real provider, thus saving costs.

Creating a New SIP Provider on the PBX

  1. Go to "Call Routing""Telephony Providers":

"Telephony providers" section
  1. Add a new SIP Provider:

Adding a new SIP provider
  1. Specify the following parameters for the new provider:

  • Name – arbitrary

  • Account Type – "Incoming Registration"

  • DTMF Mode – "auto"

Imitation Provider parameters
  1. In the provider creation menu, go to "Advanced Settings":

Disable the "fromuser" field.

In "Additional Options," add:

[endpoint]
callerid = 66179878899 <66179878899>
Additional Parameters

Save your settings and note:

  • The provider ID, e.g., "SIP-TRUNK-704CB9B8", which you can find in the address bar or in the provider details.

  • The password.

ID and Password of Provider

Connecting a Softphone for Call Simulation

To make calls with a simulated number, you need to connect the provider to a softphone. In this example, we’ll use Zoiper.

  1. Enter the following credentials:

    • Login"ProviderID@MikoPBXIPAddress"

    • Password – The password from the provider’s settings.

Replace:

  • ProviderID with the ID of your provider.

  • MikoPBXIPAddress with the IP address of your PBX.

Zoiper credetionals
  1. Complete the authorization process by clicking through “Next.” You can verify the successful connection by checking the provider’s status indicator:

Connection Indicator

Routing Configuration

For the simulation provider to work properly, you must define both incoming and outgoing routes. Below are examples used in this guide.

Incoming Routing

Incoming Calls routing

Outbound Routing

Outgoing Template

Alternatively, you can manually describe a route for simulating external calls (add this at the end of the "extensions.conf" file in "System file customization"):

[SIP-TRUNK-0CDC0182-22-outgoing]
exten => _X!,1,NoOp(Outgoing call to ${EXTEN})
same => n,Set(CALLERID(num)=66179878899)
same => n,Dial(PJSIP/${EXTEN}@SIP-TRUNK-0CDC0182)
same => n,Return()

In this example, the route applies to calls through the "SIP-TRUNK-0CDC0182" provider, and the displayed caller number is "66179878899".

Last updated

Was this helpful?