# IAX2 Provider

Use IAX2 technology for IAX trunks and legacy interconnects. IAX2 uses fewer signaling fields than SIP/PJSIP and stores its realtime account in `iaxfriends`.

<figure id="bkmrk-iax2-realtime-accoun">![IAX2 realtime account settings with fictional gateway values.](https://manual.mirtapbx.com/uploads/images/gallery/2026-06/provider-iax2-realtime.png)<figcaption>IAX2 realtime account settings with fictional gateway values.</figcaption></figure>## IAX2 Fields

<table id="bkmrk-fieldapplies-topurpo"><thead><tr><th>Field</th><th>Applies to</th><th>Purpose</th><th>Fictional example</th></tr></thead><tbody><tr><td>**Host**</td><td>IAX2 only</td><td>Remote IAX2 peer address.</td><td>`203.0.113.45`</td></tr><tr><td>**Port**</td><td>IAX2 only</td><td>Remote IAX2 signaling/media port.</td><td>`4569`</td></tr><tr><td>**Username**</td><td>IAX2 only</td><td>Stored as the IAX2 username used for authentication.</td><td>`docs_iax_user`</td></tr><tr><td>**Password**</td><td>IAX2 only</td><td>IAX2 secret used for authentication.</td><td>`FictionalSecret-2026`</td></tr><tr><td>**Codecs**</td><td>IAX2 only</td><td>Allowed codecs stored in the IAX realtime row.</td><td>`alaw`, `ulaw`</td></tr><tr><td>**Use Realtime Account**</td><td>IAX2 only</td><td>Creates or updates the row in `iaxfriends`.</td><td>`checked`</td></tr></tbody></table>

## Shared Routing Fields

IAX2 providers still use the shared outbound and inbound fields for digit manipulation, caller ID presentation, caller ID fallback, channel limits, penalties, and custom inbound variables.

## Fictional IAX2 Example

```
Name: Docs IAX2 Gateway
Peer Name: docs_iax2_gateway
Technology: IAX2
Host: 203.0.113.45
Port: 4569
Username: docs_iax_user
Codecs: alaw, ulaw
```