Limits and notes
- No voicemail: FreePBX has neither an AstDB key nor a feature code for "voicemail on/off". The voicemail key is not shown for Asterisk PBXs (hidden, not grey).
- Identifier = endpoint name = extension. This is how FreePBX works in "Extensions" mode. Named endpoints without a matching extension (e.g. FreePBX "Device and User") give no identifier; the keys then stay grey, and Odoo never writes a guessed key.
- Immediate forwarding only (
CF). Forwarding on busy (CFB) and on unavailable (CFU) are left untouched. - Time zone: "CDR time zone" must match the PBX's
/etc/localtime, because Asterisk takes the time zone from there and not from the environment variableTZ. Asterisk reads it only at start-up: after changing the PBX's time zone, restart Asterisk. If Asterisk writes UTC (usegmtime = yesincdr_adaptive_odbc.confortimezone = UTCincdr_pgsql.conf), choose "UTC" in Odoo. A wrong zone shifts the calls by hours, and the sync then finds nothing. - Hosts: ASCII names only (internationalized domains as
xn--…), no IPv6 zone IDs. Private networks (RFC 1918, ULA) are allowed. Loopback, link-local (including 169.254.169.254), multicast and reserved addresses are blocked. Only the system parameterwb_voip_asterisk.loopback_erlaubt=1allows loopback. Known limit: NAT64 and 6to4 addresses are not unpacked and checked against their IPv4 target. - TLS to the CDR database:
- MySQL/MariaDB: with TLS, Odoo refuses a server that does not offer TLS ("TLS to the CDR database failed (not offered or certificate not valid)."). Without TLS, Odoo connects to the checked IP (no DNS rebinding). With TLS, PyMySQL verifies the host name and therefore connects by name; a small rebinding window remains between check and connection.
- PostgreSQL: with TLS
sslmode=verify-fullagainst the entered CA certificate (otherwise the system CAs). A certificate error currently only shows as "The CDR database is unreachable.". PostgreSQL with TLS is not lab-tested. - Without TLS the CDR password can be intercepted on the network; with MySQL
caching_sha2_passwordthe client even fetches the server key unprotected. The form therefore warns as soon as a CDR host is entered and TLS is off. Switch TLS off only in a sealed-off network (own VLAN, firewall).
- Sync: as for Ansitel (Call list sync: window, quiet time, matching, privacy). Plain Asterisk rings queue members
directly, FreePBX through
Localchannels; both are recognized. A mobile voicemail behind a forwarding counts as forwarding (as with Ansitel). Dial plan shapes that differ result in "missed" instead of "answered elsewhere" when in doubt, not in an error. - Credentials protect themselves: if someone without system rights changes a connection field (host, port, TLS, CA certificate, for the CDR database also type and database) through other code (superuser rights), Odoo deliberately discards the stored secret or password. Enter it again.
- Messages and log never name host, user, secret or password, only the action name and the kind of error.
Tested in our own test setup against plain Asterisk 22.10.1 (Debian package; CDR in MariaDB 11.4 and PostgreSQL 17) and FreePBX 17 with Asterisk 22.12.0 (MariaDB), see Compatibility.