pjsip.conf and a line or two of dialplan, and these steps assume Asterisk 18 or later with res_pjsip.
/settings/pbx) → Connect a PBX → PBX platform → Asterisk. The tile starts on UDP, IP Whitelist authentication and G.711 u-law and A-law.What you need first
- Shell access to the Asterisk server, and the right to edit
pjsip.confandextensions.conf. - A SmartAlex agent that is ready to answer calls.
- For extension mode: someone who can allow UDP from
34.233.117.97and15.240.176.215on the host firewall and any cloud security group. - For Forward calls: outbound SIP to
sip.voice.getsmartalex.com. This host has no fixed IP list, so use a hostname rule.
How it connects
This diagram shows the two ways Asterisk connects: SmartAlex registering to an endpoint, or Asterisk dialling a SmartAlex trunk.Option A: Use as PBX extension
Add an endpoint for the AI: SmartAlex signs in to it over UDP and sends only G.711. Put these three sections inpjsip.conf (the standard Asterisk configuration, usually in /etc/asterisk/).
In Asterisk
Add the three sections
pjsip.conf, with your own long random password.Allow the first SmartAlex address
34.233.117.97 reach your SIP port and RTP range. Do this on the host firewall (iptables or nftables), any cloud security group, and any acl= sections you use.Allow the second SmartAlex address
15.240.176.215.Ring the endpoint from the dialplan
extensions.conf, in the context your inbound number lands in, add exten => _X.,1,Dial(PJSIP/850,30).Reload
asterisk -rx "pjsip reload" and asterisk -rx "dialplan reload".In SmartAlex
Open PBX Extensions
/settings/pbx). Click Connect a PBX.Pick Asterisk
Choose Use as PBX extension


Pick Asterisk, then Use as PBX extension.
Fill in the form
Connect
Link the agent
Set up the inbound route
+27 11 555 1234, and an optional Label. Click Connect.Option B: Forward calls (trunk endpoint)
Define SmartAlex as a trunk endpoint, and create the trunk in SmartAlex first, so you have the username and password.In SmartAlex
Open PBX Extensions
/settings/pbx). Click Connect a PBX.Pick Asterisk
Choose Forward calls


Pick Asterisk, then Forward calls.
Fill in the form
Create the trunk and copy the details
In Asterisk
Put these sections inpjsip.conf.
outbound_auth if you chose IP Whitelist only, then add a dialplan line that dials the number the AI answers through the trunk.
asterisk -rx "pjsip reload" and asterisk -rx "dialplan reload" after the edits. The number you dial must be in Sidebar → Calls → Numbers (/phone-numbers) with an agent assigned. If it lives with your own carrier, email support@getsmartalex.com about adding it.
Read the SIP log
Received SIP request ... from UDP:34.233.117.97 or 15.240.176.215. The next line is your reply: 401, 403 or 200 OK.
Check it worked
The status turns green
Diagnostics pass (extension connections)
Asterisk shows the sign-in
asterisk -rx "pjsip show contacts" and check endpoint 850 has a contact from one of the two SmartAlex addresses.A call reaches the AI
A transfer works
Next
Fill the extension directory
Test before go-live
Questions people ask
Why does the tile default to IP Whitelist?
Why does the tile default to IP Whitelist?
type=identify block. Switch to Credentials or Both if you prefer a username and password.Which username goes in SmartAlex?
Which username goes in SmartAlex?
username= in the endpoint’s auth section, here 850-auth. It does not have to match the extension number.Calls connect with no audio
Calls connect with no audio
direct_media=no and rtp_symmetric=yes, set your external address in the transport if Asterisk is behind NAT, and open your RTP range. See Network requirements.Transfers do not work
Transfers do not work


