Latest

Akuvox video door phone on FreePBX: PJSIP extension, H.264 video and DTMF door release

Register an Akuvox door phone as a FreePBX extension, enable H.264 video, create the ring group and open the door with DTMF, with checks from the Asterisk console.

By 6 min read
Akuvox video door phone on FreePBX: H.264 video and DTMF

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

  1. Go to Applications > Extensions and choose Add New SIP [chan_pjsip] Extension.
  2. Number 2001, display name “Front door”, and a long random Secret (FreePBX suggests one: keep it).
  3. On the Advanced tab set DTMF Signaling to RFC 4733, the same method we will use on the device.
  4. 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.

  1. Go to Settings > Asterisk SIP Settings, General SIP Settings tab.
  2. In the video codec section enable Video Support and select h264.
  3. If you customised allowed codecs on the extensions, add h264 to the list along with ulaw and alaw.
  4. 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.

  1. 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.
  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.
  3. For the SIP server enter the PBX address (192.168.10.5) and port 5060; transport UDP, the default.
  4. Save: after a few seconds the status should change to Registered.

5. Codecs and DTMF

  1. 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.
  2. Video above 720p may not display on some monitors: if you see a black screen, try a lower resolution first.
  3. 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