FreePBX SIP Trunk Setup with a Kenyan Number (PJSIP)
Add a Sautikit Kenyan number to FreePBX 17 as a chan_pjsip trunk with registration: SIP server, port 5080, auth username, codecs and routes.
Add a Sautikit Kenyan number to FreePBX 17 as a chan_pjsip trunk with registration: SIP server, port 5080, auth username, codecs and routes.
FreePBX can use a Kenyan Sautikit number as a registration-based PJSIP trunk. Go to Connectivity > Trunks > Add Trunk > Add SIP (chan_pjsip) Trunk, and on pjsip Settings > General set Username and Auth username to your Sautikit SIP username, Secret to your SIP password, Authentication = Outbound, Registration = Send, SIP Server = sip.sautikit.com, SIP Server Port = 5080, Context = from-pstn, and a UDP transport. Put ulaw and alaw first on the Codecs tab, then add an inbound route for the number and an outbound route that sends +254 numbers. The number costs KES 500 a month, inbound calls are free and outbound calls cost KES 3.00 a minute billed per second.
| FreePBX field | Value |
|---|---|
| Username | your Sautikit SIP username |
| Auth username | your Sautikit SIP username (same value) |
| Secret | your Sautikit SIP password |
| Authentication | Outbound |
| Registration | Send |
| SIP Server | sip.sautikit.com |
| SIP Server Port | 5080 |
| Context | from-pstn |
| Transport | 0.0.0.0-udp |
| Codecs | ulaw, alaw |
+254 format, CID Options = Force Trunk CID, Maximum Channels as needed.Sautikit listens on 5080, not 5060, so a trunk left on the default port never registers.
From the Asterisk CLI:
asterisk -rx "pjsip show registrations"The Sautikit trunk should show Registered. Behind NAT, set External Address and Local Networks under Settings > Asterisk SIP Settings first.
In Sautikit: open the number and set Forward to the FreePBX device's extension, so calls to the number go to the trunk.
In FreePBX: go to Connectivity > Inbound Routes, add a route with DID Number = your Sautikit number (or leave it blank to catch everything from this trunk) and set its destination: a ring group, IVR, queue or extension.
Go to Connectivity > Outbound Routes, add a route, and choose the Sautikit trunk in Trunk Sequence. Sautikit dials E.164, so add dial patterns that rewrite local numbers:
| Prepend | Prefix | Match pattern |
|---|---|---|
+254 | 0 | 7XXXXXXXX |
+254 | 0 | 1XXXXXXXX |
+254XXXXXXXXX |
Submit and apply. Outgoing calls show your Sautikit number as caller ID.
Call your mobile from an extension; it should show the Sautikit number. Call the Sautikit number from your mobile; it should reach your inbound route's destination.
pjsip show registrations shows Rejected. Username and Auth username must both be the generated Sautikit username. Copy the password again with SIP setup on the device row.
Status stays Unregistered. Check the port is 5080 and the transport is UDP, and that outbound UDP is allowed through the firewall.
Inbound calls go to "number not in service" on FreePBX. Check the inbound route's DID matches the number format the trunk sends, or use a blank DID route for this trunk.
Outbound calls fail. Check the dial pattern produces +254… and your Sautikit wallet has credit.
Yes. A chan_pjsip trunk with Authentication set to Outbound and Registration set to Send signs in to the provider with a username and password.
5080 over UDP at sip.sautikit.com. Enter it in the SIP Server Port field.
No trunk fee. The number is KES 500 a month, inbound calls are free, and outbound calls are KES 3.00 a minute billed per second.