Connecting the video door phone to the company phone system means you can answer the door from any office phone, ring a group of extensions, forward the call after hours and open the door with a key press. In this guide we register an Akuvox door phone as an extension on FreePBX (with Asterisk and PJSIP), enable H.264 video and set up door release with DTMF. The procedure applies, with minor differences, to other SIP PBXs too. It assumes the device is already set up as in First setup of an Akuvox video door phone.
Example used in this guide (replace with your own values): FreePBX at 192.168.10.5; door phone on extension 2001; ring group 600 with reception (extension 201) and an Akuvox monitor (extension 2101); door release DTMF code #. FreePBX menu items may differ slightly between versions 16 and 17.
On FreePBX
1. Create the door phone extension
- Go to Applications > Extensions and choose Add New SIP [chan_pjsip] Extension.
- Number
2001, display name “Front door”, and a long random Secret (FreePBX suggests one: keep it). - On the Advanced tab set DTMF Signaling to RFC 4733, the same method we will use on the device.
- Save and click Apply Config.
Repeat for the Akuvox monitor (extension 2101) if you want to register it on the PBX too.
2. Enable video
Asterisk does not transcode video: it passes it through between the two endpoints. So the H.264 codec must be allowed on the PBX and supported by every device involved.
- Go to Settings > Asterisk SIP Settings, General SIP Settings tab.
- In the video codec section enable Video Support and select h264.
- If you customised allowed codecs on the extensions, add
h264to the list along withulawandalaw. - Submit and Apply Config.
3. Ring group
Under Applications > Ring Groups create group 600 with the extensions that should ring when someone presses the button (for example 201 and 2101), strategy ringall. For unanswered calls you can choose a backup extension, voicemail or an external number.
On the Akuvox device
4. Register the SIP account
In the door phone’s web interface open Account > Basic.
- Choose the account to use. Devices have two SIP accounts; Account 1 is used by the SmartPlus cloud when it is active, so if you might also use the cloud, register the PBX on Account 2.
- Enable the account and fill in: Display Label and Display Name (“Front door”); Register Name and User Name equal to the extension number (
2001); Password equal to the FreePBX Secret. - For the SIP server enter the PBX address (
192.168.10.5) and port5060; transport UDP, the default. - Save: after a few seconds the status should change to Registered.
5. Codecs and DTMF
- Under Account > Advanced keep the PCMU and PCMA (G.711) audio codecs and the H264 video codec enabled; H.264 is the default on Akuvox devices.
- Video above 720p may not display on some monitors: if you see a black screen, try a lower resolution first.
- In the DTMF section choose type RFC2833, consistent with the RFC 4733 setting in FreePBX (4733 is the updated version of the same standard).
6. What the button calls
In the door phone’s calling section (Intercom > Basic or equivalent) set ring group 600 as the number to call, selecting the account registered on the PBX. On models with a directory or keypad you can map each name or flat to a different extension.
7. Open the door with DTMF
In the relay configuration (Access Control > Relay or Intercom > Relay, depending on the model) set the DTMF code for the lock relay, for example #, and the number of digits (DTMF Mode). During the call the person answering presses the key or code on their phone and the door opens. The example uses # for simplicity, but Akuvox’s secure configuration guide recommends 4-digit mode: in production choose a four-digit code, harder to guess or to press by mistake. On Akuvox monitors the same code goes in the remote relay section, so the “Unlock” button sends the right DTMF.
Akuvox also provides a whitelist of numbers allowed to open via DTMF: if you enable it, only the listed extensions can open the door. In an office it is a good idea to limit it to reception and the monitors.
Checks from the FreePBX console
From the server shell (as root or with sudo), these commands read the status without changing anything:
# Is the extension registered? From which IP?
asterisk -rx "pjsip show contacts" | grep 2001
# Allowed codecs and DTMF mode of the endpoint
asterisk -rx "pjsip show endpoint 2001" | grep -Ei "allow|dtmf"
# Active calls and codecs in use (during a test call)
asterisk -rx "core show channels verbose"
To see SIP messages during a test, open the console with asterisk -rvvv and temporarily enable logging with pjsip set logger host 192.168.20.11 (the door phone’s IP); when finished, turn it off with pjsip set logger off.
Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
| Status Registration failed | Wrong password, user name or port; IP blocked by the firewall or FreePBX fail2ban | Recheck Secret and extension; look at /var/log/asterisk/full and the list of banned IPs |
| Rings but no video | H.264 not enabled on the PBX or not supported by the answering phone | Enable video in Asterisk SIP Settings; use phones or softphones with H.264 |
| Video appears only after answering | Preview before answering requires the PBX to pass “183 Session Progress” with video | Known behaviour with Asterisk; if preview is essential, consider direct calls to the monitors |
| Door does not open | Different DTMF method on each side, different code or digit count | Same method (RFC 4733/2833) on extensions and device; same code on door phone and monitor |
| One-way audio | NAT, SIP ALG on the router, RTP ports filtered between VLANs | Disable SIP ALG; allow the PBX RTP range between networks |
Security: the PBX’s SIP port must not be exposed to the internet. Use long Secrets, restrict which IPs can register and, on Akuvox devices, consider the Prevent SIP Hacking option, which only accepts calls from whitelisted contacts. The security guide covers this in more detail.
Sources
- Akuvox Knowledge Base, Register SIP Account on Akuvox Devices and Intercom Call Configuration.
- Akuvox Knowledge Base, Audio & Video Codec Configuration and Monitor and Image (resolution above 720p).
- Akuvox Knowledge Base, Open the Door via DTMF and Door-opening Configuration (DTMF whitelist).
- Epcom Support, Registering SIP Accounts on Akuvox Door Phones (using Account 2).
- Akuvox X910 manual, preview and 183 response.
- Hanwha Vision, How to configure Sangoma FreePBX (Video Support and h.264 in Asterisk SIP Settings).
- FreePBX Community, FreePBX and Early Video with video door stations.
- Akuvox, Security Configuration Guide V1.1, PDF dated 22 November 2024 (authenticated SIP accounts, SIP Hacking protection, 4-digit DTMF).
- IETF, RFC 4733.
