Skip to main content

Agent installation

The Agent bridges Odoo and Asterisk:
  • Sends required AMI events/recordings to Odoo.
  • Executes AMI actions from Odoo.
  • Implements billing; optional SIP attack protection; optional web CLI backend.

Requirements

  • Docker and docker-compose.
  • AMI user on Asterisk (example manager.conf):
Reload and verify: manager show user asterisk_plus_agent.

Configure AMI in Odoo

PBX → Settings → Server. Fill AMI host/port/login/password. (See screenshot agent-ami-settings.png if needed.)

Run the Agent (docker-compose)

Use the correct scheme (http/https) and version tag. Open port 48000 on firewall/port-forwarding for Odoo→Agent.

Agent in action

Agent terminal

Server URL in Odoo

PBX → Settings → Server → set Agent URL. Server settings

Initialization / reconnection

  • First successful connect locks initialization.
  • To re-init (e.g., container recreated), permit initialization in Odoo Settings (Initialization section), then rerun the Agent. Allow init
  • To point Agent to a new Odoo URL, run once with --init https://your.odoo.server, then remove --init and run normally.

Troubleshooting

  • AMI login fails: ensure manager.conf reloaded (core reload) and user shows in Asterisk console.
  • init: true unsupported: remove init key in compose.