Reach the outside world.
Connect a SIP provider, route inbound numbers and outbound calls, and keep the trunk working behind NAT.
Add your provider
Open Admin → SIP providers and enter the details your provider gives you: registrar host, SIP login, password and the numbers (DIDs) on the account. Save, and MonoSIP writes the registration and reloads Asterisk. The provider list shows Registered within a few seconds.
| Field | What to enter |
|---|---|
| Host | The provider's registrar, e.g. sip.provider.example |
| Username | SIP login; also sent as the Contact user |
| Numbers | Every DID that should ring your PBX |
| Caller ID | The number shown on outbound calls |
Works behind NAT without a port forward
Providers register from their own UDP transport on port 5070. The provider sends inbound calls back to the address and port it saw, so routers that rewrite the source port still deliver them. A registering trunk needs no inbound firewall rule.
EXTERNAL_IP to the address your phones reach (LAN or VPN). Providers are given the public address found through STUN, so both sides get an address they can use.Send each number where it belongs
Inbound routes match a DID and send the call to an extension, ring group, queue or IVR. Add a schedule to a route to switch destinations outside business hours. Callers keep their own number on the phone display.
Set business hours and holidays →Control outbound dialling
Outbound routes pick a trunk by dial pattern and can strip or add prefixes. Extension permissions decide who may call mobiles, international numbers or premium lines. Emergency numbers always go out, even from restricted extensions.
When calls do not arrive
- Check the trunk shows Registered. If not, re-check login and password.
- Run
pjsip set logger onand call the number. No INVITE means the provider cannot reach the registration Contact. - An INVITE answered with 404 means the number is not listed on the trunk or has no inbound route.