Create a secure AMI user for CTI
Every CTI application on Asterisk talks through the Asterisk Manager Interface. Grant too much there and you open up the whole PBX. With a dedicated user, four permissions and a fixed source address, access stays as small as it needs to be.
Updated
One user per application
Create a section of its own for digoDial in manager.conf, or in a file included from it. That way the log shows who signs in, and you can revoke access without affecting other applications. In FreePBX, the Asterisk Managers module under Settings does this job.
You can create a long random password with openssl rand -base64 24, for example. digoDial then keeps it in the macOS keychain, not in a file.
[digodial] secret = <strong-password> read = call write = call,originate,system deny = 0.0.0.0/0.0.0.0 permit = 192.0.2.17/255.255.255.255
The permissions digoDial needs
According to the Asterisk documentation, the system class also allows Shutdown, Restart and Reload as well as dialplan changes. digoDial uses none of these, but needs the class for do not disturb. Restrict access tightly to the Mac for that reason. digoDial does not need the classes command, config or all. With command, any console command could be run.
- With read = call, digoDial receives the channel events Newchannel, DialBegin, DialEnd, Hangup and BridgeEnter. They feed the call display and the call list. MessageWaiting, which moves the voicemail counter, arrives in the same class.
- digoDial does not need read access to system. Our demo PBX for Apple's app review runs with read = call alone, and on October 11, 2026 we went through dialing, transfer, incoming calls, do not disturb and voicemail there.
- With write = call, originate and system, digoDial may dial (Originate), hang up (Hangup), transfer (Redirect), query the voicemail count (MailboxCount) and set the database entries for do not disturb (DBGet, DBPut, DBDel).
permit and deny
deny = 0.0.0.0/0.0.0.0 blocks everything first, then permit opens exactly the address your Mac comes from. To keep that stable, give the Mac a fixed address with a DHCP reservation in your router. For several workstations, permit a small network such as 192.0.2.0/255.255.255.0.
If you prefer to maintain networks centrally, point to a named ACL from acl.conf with acl = <name>. An open 0.0.0.0/0.0.0.0 has no place in production.
Plain text only inside your own network
AMI on port 5038 sends user, password and all call data unencrypted. Asterisk's sample configuration explicitly warns against running AMI on a public address. For every connection that leaves your own network you have two options.
The first is AMI over TLS. Asterisk then also listens on port 5039, and in digoDial you turn on Use TLS in the Connection tab and enter 5039 as the port. The second is a WireGuard or other VPN tunnel between Mac and PBX, through which you reach the plain-text port.
[general] enabled = yes port = 5038 bindaddr = 0.0.0.0 tlsenable = yes tlsbindaddr = 0.0.0.0:5039 tlscertfile = /etc/asterisk/keys/ami.pem tlsprivatekey = /etc/asterisk/keys/ami.key
If digoDial reports -9836: bad protocol version during the test, TLS is on but the PBX speaks plain text on that port. Then the port is wrong or TLS is not yet enabled on the PBX.
Check that it all applies
After a change, manager reload reloads the configuration. The console then shows you the user's permissions and whether an ACL applies. Check the TLS port from another computer with openssl, as Asterisk's sample configuration also suggests.
asterisk -rx "manager reload" asterisk -rx "manager show user digodial" # from the Mac, only with AMI over TLS openssl s_client -connect pbx.example.net:5039
What digoDial adds
The app runs in the macOS App Sandbox with Hardened Runtime and talks only to the servers you enter yourself. There is no account with us and no analytics. You can verify that in any network capture.
Frequent questions
Can I reuse FreePBX's own AMI user?
Technically yes, but it is not advisable. FreePBX's user has far more permissions than a CTI application needs, and you cannot disable it without disturbing FreePBX.
Is blocking port 5038 in the firewall enough?
For access from the internet, yes. permit and deny add protection inside your network as well, for example against another computer in the office that can reach the port.
digoDial on the Mac App Store
Download digoDial for free and try every feature for five days on your own PBX. After that, the full version is a one-time purchase of 39.99 euros, with no subscription. The incoming call display with names, do not disturb and voicemail stay available without a purchase.