> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/english/faq/softphones/configuring-webrtc-client-simpl5.md).

# Configuring webRTC client SIMPL5

## PBX Configuration <a href="#nastrojka_ats" id="nastrojka_ats"></a>

1. Create a new employee [**account**](/mikopbx/english/manual/telephony/extensions.md).
2. Go to **System → General Settings → SIP** and enable the "**Use WebRTC**" toggle switch.

This automatically creates a dedicated WebRTC endpoint for each internal number (e.g. `204-WS`), allowing simultaneous operation over both PJSIP and WebRTC protocols. No additional per-extension configuration is required.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FeSLtbWxJ5K6r552MAXI8%2FrtcBtn.png?alt=media&amp;token=86bcfa71-6634-439c-9758-2e873e946b8f" alt=""><figcaption><p>Switch "Use WebRTC"</p></figcaption></figure>

3. In the [**General Settings**](/mikopbx/english/manual/system/general-settings.md) section, specify the STUN server address. For example, **stun.sipnet.ru**.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fv68udCdoTTsLLFDj5wpN%2FstunServer.png?alt=media&amp;token=09dec4c5-a71e-4fb6-ad6f-a8b62ab14254" alt=""><figcaption><p>Stun server</p></figcaption></figure>

4. Verify the WebSocket connection by opening the following URL in your browser:
   * **Local network (no SSL):** `http://PBX_ADDRESS:8088/asterisk/ws`
   * **With SSL certificate:** `https://PBX_ADDRESS:8089/asterisk/ws`

If Asterisk responds, the setup was successful.

> **Note:** For connections over the public internet, a trusted SSL certificate is required so that browsers allow microphone access. We recommend the [Let's Encrypt Module](/mikopbx/english/modules/miko/module-get-ssl-lets-encrypt.md).

## WebRTC Client Setup <a href="#nastrojka_web_rtc_klienta" id="nastrojka_web_rtc_klienta"></a>

1. Open the sipml5 demo in your browser: follow the link "[Enjoy our live demo](https://www.doubango.org/sipml5/call.htm?svn=252)".
2. Fill in the main fields:

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FsPrWx6ggPNxo7iivgFZJ%2Fimage.png?alt=media&amp;token=a371652b-a6b3-4874-a4f2-de73e0012c4f" alt=""><figcaption></figcaption></figure>

| Field                | Value                                                              |
| -------------------- | ------------------------------------------------------------------ |
| **Display Name**     | Any name                                                           |
| **Private Identity** | `INTERNAL_NUMBER` (e.g. `204`)                                     |
| **Public Identity**  | `sip:INTERNAL_NUMBER-WS@PBX_ADDRESS` (e.g. `sip:204-WS@192.0.2.1`) |
| **Password**         | The extension's SIP password                                       |
| **Realm**            | `PBX_ADDRESS`                                                      |

3. Click **"Expert mode?"** and set the WebSocket Server URL:

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FT0OlbxK1zY9iSXo4eL1w%2Fimage.png?alt=media&amp;token=ee92ca44-6c04-4db6-bc65-69ea15e453c8" alt=""><figcaption></figcaption></figure>

| Connection type        | WebSocket Server URL                     |
| ---------------------- | ---------------------------------------- |
| Local network (no SSL) | `ws://192.0.2.1:8088/asterisk/ws`        |
| With SSL certificate   | `wss://pbx.example.com:8089/asterisk/ws` |

4. Click **Login**. You can now start making calls.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/english/faq/softphones/configuring-webrtc-client-simpl5.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
