Odoo Avaya IP Office SMDR integration

Avaya IP Office SMDR Connector

Every call on your IP Office, on the customer record in Odoo.

Avaya IP Office and Odoo 19

What it does

Your IP Office already writes a line for every call: who rang, which extension picked up, how long they talked, who was left ringing. This module brings those SMDR records into Odoo, groups them into calls, matches them to contacts and leads by number and turns missed calls into call-back tasks.

IP Office sends SMDR over TCP to one address and port. The module comes with a small listener script (Python 3, nothing to install) that you run on any machine the phone system can reach. It writes each record to a local spool file and posts batches to Odoo with a token. Records leave the spool only after Odoo has stored them, so a restart or a network drop loses nothing.

Each SMDR record is one segment of a call. A call that rings at reception and is transferred to sales gives two records with the same Call ID; Odoo shows them as one call with both segments, the extension that took it and the result: answered, voicemail or missed. Times are converted from the PBX time zone.

The number is matched on its last digits (9 by default), so +44 113 496 0555, 0044 113 496 0555 and 0113 496 0555 all find the same contact. Contacts come first, then open leads. Only records of the PBX company, or shared ones, are considered.

A missed inbound call gets a call-back activity for the user of the extension it rang on. A caller nobody knows can open a new lead (off by default). Every external call adds a short note to the chatter of the contact or lead with the extension, talk time and ring time.

Who it is for

  • Sales teams on an Avaya IP Office phone system. Reps want to see who called a customer and when without leaving the CRM. Each call from the SMDR output is matched to the contact or open lead by the last digits of the number and noted in its chatter.
  • Offices that lose track of missed calls. When an inbound call goes unanswered, the user mapped to that extension gets a call-back activity, or a call-back user you pick if the extension has nobody. Unknown callers can optionally become new leads for a sales team.
  • Managers who report on phone activity. Calls are grouped per Call ID with an outcome of answered, voicemail or missed, and the pivot and graph views break them down by day, extension, user and outcome.
  • Businesses that already run a call logger. If another tool already collects SMDR, export its log and load it with Import SMDR File instead of running the listener. Records already in Odoo are skipped.

Setting it up

  1. Install the module. It needs CRM and Contacts and adds an Avaya Calls app to the main menu.
  2. Go to Avaya Calls > Configuration > IP Office Systems, create your system and set the PBX Time Zone, the Digits Compared and the call-back options.
  3. Map each extension to an Odoo user under Avaya Calls > Configuration > Extensions. Extensions seen in the first calls are also created for you.
  4. Have an Odoo administrator press Show Token on the IP Office record and save it in a file on a machine the IP Office can reach.
  5. Copy listener/smdr_listener.py from the module to that machine and run it with Python 3, giving --bind, --port, --odoo-url (the Listener Address on the record) and --token-file.
  6. In IP Office Manager, open System > SMDR, set Output to SMDR Only and enter the listener's IP address and TCP port.
  7. Optionally fill Allowed Listener IPs, then make a test call and check Avaya Calls > Calls.

Avaya IP Office SMDR Connector: questions

Why is a separate listener needed?

IP Office pushes SMDR over a raw TCP connection, which Odoo doesn't accept. The listener script uses only the Python standard library, keeps each record in a local spool and only drops it after Odoo has confirmed it, so an outage doesn't lose calls.

Does it do click-to-dial or call recording?

No. SMDR contains call records only, so there are no recordings, no screen pop and no dialling from Odoo.

Which Avaya systems does it read?

It parses the SMDR CSV output of Avaya IP Office, all 30 fields. Other Avaya platforms with a different call record format aren't covered.

Is the authorisation code users dial kept?

No. Odoo stores only whether an authorisation code was used and whether it was valid, never the code itself. The raw SMDR line is visible to SMDR managers only.

Can I change the token without missing calls?

Yes. After New Listener Token the old token keeps working for 24 hours, so you have time to update the file on the listener machine.

Does it handle several companies or PBXs?

Yes. Each IP Office system belongs to one company with its own token and address, and calls are matched only to contacts and leads of that company or shared ones. It runs on Community and Enterprise.