# Registering multiple accounts from one provider

{% hint style="success" %}
Instructions for connecting a provider account can be found [here](/mikopbx/english/manual/routing/providers.md).
{% endhint %}

Many telecom operators cannot offer multiple SIP numbers in a single trunk (as one provider account) and provide separate registration details for each number. For example, when using the provider Zadarma, to connect the phone number +60(3)-2293-042, you should use the login 847706 and password XXXXXX, while to connect the phone number +60(3)-6382-584, you should use the login 847900 and password YYYYYY. The host for both accounts will be the same: <mark style="color:blue;">sip.zadarma.com.</mark>

*Task:* For each number, specific incoming routing needs to be configured. For example, calls to +60(3)-2293-042 should be routed to the sales department (call queue), while calls to +60(3)-6382-584 should be routed to an IVR menu.

*Potential Issue:* The issue is that **all incoming calls** will go through the **first** Zadarma provider account defined in MikoPBX. Calls from the second provider will never be routed through MikoPBX.

## Solution

1. In the **Routing** → **Telephony Providers** section, create two provider accounts from the same service provider. In our example, this is Zadarma. Enter the correct login, password, and host.

<figure><img src="/files/fcBN5KPsMPnaFJjyJcRQ" alt=""><figcaption><p>Provider parameters</p></figcaption></figure>

2. In the advanced options, specify:

```
[endpoint]
context=public-direct-dial
```

<figure><img src="/files/f3KFtusgvJFYQAIVJdJ0" alt=""><figcaption></figcaption></figure>

3. In the **Routing** → **Incoming routing** section, set up an incoming call rule for each provider. In the **Direct inward dialing number** field, enter the login from the provider account. In the **Provider** field, select **Provider-independent...**

<figure><img src="/files/XGZ2qv2uTmIONiMTH4Bp" alt=""><figcaption><p>New rule for handling incoming calls</p></figcaption></figure>

{% hint style="success" %}
Instructions for setting up incoming call routing are available here.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mikopbx.com/mikopbx/english/faq/cases/registering-multiple-accounts-from-one-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
