Zadarma PBX Connector
Connect Zadarma cloud PBX to Odoo: click-to-call, incoming call popups, call statuses, recordings with a link lifetime you control, sandbox and a webhook with signature check
Функціонал
1. Дзвінок в один клік через Zadarma
Кнопки «PBX» і панель набору базового модуля телефонують через callback API Zadarma: спершу дзвонить ваш телефон або софтфон, потім клієнт. Розширення для браузера не потрібне. Дзвінок одразу зʼявляється в списку зі станом «Initiating»; номер, тривалість розмови й запис додаються до того самого запису, щойно Zadarma їх передає.
Якщо два оператори одночасно телефонують на той самий номер, кожен отримує власний запис дзвінка.
2. Події вхідних і вихідних дзвінків
Сповіщення Zadarma про дзвінки (початок, відповідь і завершення вхідних, вихідних і внутрішніх дзвінків) оновлюють дзвінок в Odoo в реальному часі: спливна картка вхідного дзвінка, статуси Completed, Missed і Failed, тривалість розмови й активність за пропущеним дзвінком. Якщо ввімкнено «Tell the PBX who should answer», Odoo відповідає на першу подію Zadarma внутрішнім номером менеджера, закріпленого за абонентом.
3. Захищений вебхук
Вебхук перевіряє три речі: рукостискання zd_echo, коли ви зберігаєте URL у Zadarma, офіційний діапазон IP-адрес Zadarma і підпис (Signature) кожної події. Порожній список IP відхиляє всі запити, тож незаповнене налаштування ніколи нікому не відкриває доступ.
4. Записи з терміном дії посилання, який ви задаєте
Записи запитуються в Zadarma тоді, коли ви хочете їх прослухати, з терміном дії посилання, який ви обираєте (типово 15 хвилин). Для важливих дзвінків увімкніть локальне зберігання в базовому модулі.
5. Пісочниця та кілька компаній
Перемикач Sandbox спрямовує запити в пісочницю Zadarma, тож інтеграцію можна перевірити без справжніх дзвінків; поле «API Base URL» завжди показує, куди йдуть запити. Кожна компанія може мати власний обліковий запис Zadarma з власним URL вебхука.
6. Дзвінок з будь-якого поля телефону
Біля кожного номера телефону у формах Odoo (контакти, ліди, замовлення) є кнопка PBX. Один клік — і Zadarma зʼєднує ваш телефон із клієнтом: номер набирати не треба. Якщо у вас кілька ліній, кнопка відкриває Call via, щоб обрати компанію та внутрішній номер.
7. Дзвінок підписнику з чатера
Кнопка телефону в чатері будь-якого запису показує підписників цього запису з їхніми номерами. Дзвінок і нотатка про нього привʼязуються до запису, з якого ви телефонували.
8. Картка вхідного дзвінка
Коли Zadarma зʼєднує дзвінок з оператором, у кутку екрана зʼявляється картка з абонентом: можна відкрити запис клієнта, створити контакт для невідомого номера або залишити нотатку. Після розмови картка питає, чого стосувався дзвінок, і привʼязує його до потрібного ліда, задачі чи звернення.
9. Усі дзвінки в одному журналі
Кожен дзвінок — це запис із номером, контактом, оператором, напрямком, часом очікування й розмови, результатом і записом розмови. Нотатка про дзвінок автоматично додається в чатер контакту, а пропущений дзвінок створює оператору активність «Call back».
Документація
1. Встановлення модуля
Потрібні модулі: us_telephony_zadarma і Cloud PBX Telephony (us_telephony). Додаткові бібліотеки Python не потрібні. Також потрібен обліковий запис Zadarma з доступом до API: User Key і Secret Key видаються в кабінеті Zadarma.
- Скопіюйте цей модуль і us_telephony у каталог custom addons вашого сервера Odoo.
- Перезапустіть службу Odoo.
- Відкрийте Apps, знайдіть «Zadarma PBX Connector» і натисніть Activate.
2. Користувачі та права доступу
Відкрийте Settings → Users & Companies → Users і надайте кожному користувачеві, який телефонує або приймає дзвінки, рівень доступу Telephony:
- Operator: власні дзвінки, кнопки PBX і панель набору, картка вхідного дзвінка.
- Telephony Manager: усі дзвінки компанії, Analytics, провайдери, внутрішні номери й технічні поля.
- Recording Playback: прослуховування записів. Типово надається кожному користувачеві; приберіть його лише в того, кому не можна слухати записи.
У базі з кількома компаніями користувач бачить лише дзвінки своїх компаній.
3. URL вебхука в Zadarma
Зробіть це першим, ще до введення ключів. У кабінеті Zadarma відкрийте Settings → Integrations and API → Call notifications і вкажіть https://<your-domain>/telephony/zadarma/webhook. Zadarma одразу перевіряє URL, і Odoo відповідає на перевірку автоматично.
На тій самій сторінці ввімкніть сповіщення, які обробляє конектор:
- Вхідні та внутрішні дзвінки: NOTIFY_START, NOTIFY_INTERNAL, NOTIFY_ANSWER, NOTIFY_END; NOTIFY_IVR для голосового меню.
- Вихідні дзвінки: NOTIFY_OUT_START, NOTIFY_OUT_END. Без них дзвінки, зроблені з Odoo, залишаються в стані «Initiating».
- Записи: NOTIFY_RECORD. Без нього в дзвінка немає запису.
4. Облікові дані
Відкрийте Telephony → Configuration → Providers, відкрийте запис Zadarma вашої компанії й заповніть вкладку Credentials. Потім натисніть Test Connection: у відповіді буде баланс Zadarma — доказ того, що запит пройшов.
Доки Secret Key не збережено, Odoo відповідає лише на перевірку URL: кожна подія дзвінка відхиляється, бо її підпис перевіряється за допомогою Secret Key.
| Поле | Що вказати | Приклад |
|---|---|---|
| Zadarma User Key | Кабінет Zadarma → Settings → API | a1b2c3... |
| Zadarma Secret Key | Там само; показується крапками й ніколи не потрапляє в журнал | •••••• |
| Sandbox | Надсилати запити на api-sandbox.zadarma.com замість робочого API | Off |
| Allowed Webhook IPs | Хто може надсилати події. Типово — офіційний діапазон Zadarma; порожнє поле відхиляє всі запити | 185.45.152.40/30 |
| Recording Link Lifetime, s | Скільки часу посилання на запис залишається дійсним. Тримайте його коротким: посилання дає аудіо кожному, хто його має | 900 |
| API Base URL | Лише для читання: робочий API або пісочниця | https://api.zadarma.com |
Test Connection і Check Extensions зберігають останній результат на формі провайдера: «Connection works», «Needs attention» з текстом від Zadarma або «Could not tell» (обмеження частоти запитів чи мережа, а не ключі).
5. Внутрішні номери
Відкрийте Telephony → Configuration → Extensions і зіставте кожного оператора з його внутрішнім номером Zadarma з провайдером «Zadarma» або натисніть Check Extensions на формі провайдера й додайте відсутні. Zadarma повертає внутрішні номери лише цифрами, тож оператора для кожного з них оберіть самі.
Спершу створіть внутрішні номери в кабінеті Zadarma, потім в Odoo, а тоді натисніть Check Extensions. Внутрішній номер, який існує лише в Odoo, Zadarma відхиляє, і кнопка PBX не спрацьовує. Коли перевірка знаходить внутрішні номери, що є в Zadarma, але відсутні в Odoo, вона відкриває Add extensions from the PBX: оберіть оператора для кожного рядка й натисніть Add; рядки без оператора пропускаються.
6. Вихідні дзвінки
Дзвінок, зроблений з Odoo, одразу зʼявляється в стані «Initiating». Zadarma спершу дзвонить на внутрішній номер оператора, а клієнта набирає після того, як оператор відповість. ID дзвінка в Zadarma надходить пізніше разом із NOTIFY_OUT_START, і дзвінок оновлюється за ним.
7. Перевірка перед запуском
- Sandbox: увімкніть, щоб перевіряти без справжніх дзвінків; «API Base URL» показує, куди йдуть запити.
- Test Mode (базовий модуль, розділ «Inbound Routing and Test Mode») працює з Zadarma: Zadarma дотримується відповіді Odoo, тож лише ваші тестові номери можна спрямувати одному оператору.
- Скрипт приймання:
python us_telephony_zadarma/tools/zadarma_sandbox_check.py -c odoo.conf -d <database>перевіряє ключі й підпис запиту в пісочниці Zadarma і лише читає дані. Додайте--to <number> --from-extension <extension>, щоб перевірити дзвінок в один клік. Скрипт не запускається, коли Sandbox вимкнено.
8. Перший тестовий дзвінок
Перш ніж починати роботу операторів, зробіть один дзвінок самі. Вашому користувачеві потрібен внутрішній номер (див. «Внутрішні номери»).
- Переконайтеся, що провайдер Active, Sandbox вимкнено, а Test Connection відповідає «Connection works».
- Відкрийте контакт із номером телефону й натисніть PBX біля номера. Odoo показує «The PBX is dialling…».
- Спершу дзвонить ваш телефон або софтфон Zadarma. Відповідайте — і Zadarma набирає клієнта.
- Відкрийте Telephony → Calls: дзвінок уже там, спершу в стані «Initiating», потім події Zadarma доповнюють його тривалістю розмови, статусом і записом.
- Зателефонуйте на свій номер Zadarma з іншого телефону: оператор, чий внутрішній номер приймає дзвінок, побачить картку вхідного дзвінка.
9. Дзвінок з поля телефону
Біля кожного номера телефону у формі (контакт, лід, замовлення на продаж, будь-який запис із полем телефону) є кнопка PBX. Стандартне посилання телефону Odoo поруч телефонує з вашого компʼютера; PBX телефонує через Zadarma: спершу дзвонить ваш телефон, клієнт — після вашої відповіді.
Якщо у вас є внутрішні номери в кількох провайдерах або кількох компаніях, PBX відкриває список Call via (компанія — провайдер — внутрішній номер): оберіть лінію й натисніть Call. Якщо лінія одна, кнопка телефонує одразу.
Якщо на провайдері Link Mode має значення «Contextual», дзвінок, розпочатий з ліда чи замовлення, привʼязується до цього запису, а не лише до контакту, тож звіти показують, де відбувся дзвінок.
10. Панель набору у верхній панелі
Значок телефону у верхній панелі відкриває панель набору: введіть будь-який номер, натисніть Call і перегляньте свої останні десять дзвінків. Пропущені дзвінки позначено червоним; кожен рядок відкриває дзвінок або контакт. Значок бачать лише користувачі з внутрішнім номером.
11. Дзвінок підписнику з чатера
У чатері будь-якого запису, поруч із Send message і Log note, є кнопка телефону. Вона показує підписників цього запису з їхніми номерами телефонів; натисніть номер, щоб зателефонувати. Call via угорі обирає лінію.
Дзвінок і нотатка про нього завжди привʼязуються до запису, з чатера якого ви телефонували. Підписник без номера телефону залишається в списку сірим.
12. Картка вхідного дзвінка й картка після дзвінка
Коли Zadarma зʼєднує вхідний дзвінок із внутрішнім номером, власник цього номера бачить картку в правому нижньому куті: контакт і номер, Open record і Log note; для невідомого номера — Create contact. Дзвінок на групу номерів показує картку кожному оператору групи, а в інших вона зникає, щойно відповість колега.
Після розмови картка змінюється на Call ended і питає, чого стосувався дзвінок: Link and sum up відкриває дзвінок, щоб обрати повʼязаний запис (лід, задачу, звернення) і результат, Skip закриває її. Картка не заважає роботі й сама закривається за хвилину.
13. Картка дзвінка й записи
Telephony → Calls, відкрийте дзвінок. Картка показує номер, контакт, оператора, напрямок, статус, початок, час очікування й розмови, Context Record, до якого привʼязано дзвінок, і Outcome: Agreed, Call back later, Not interested, No answer, Wrong number, Other.
Блок Call Recording зберігає аудіо в Zadarma: натисніть Get recording link, щоб прослухати. Telephony Manager може Restrict this recording: дзвінок залишається в списках і звітах, приховано лише аудіо від користувачів, які не брали участі в дзвінку.
14. Нотатки про дзвінки й пропущені дзвінки
Після кожного дзвінка Odoo додає нотатку в чатер контакту: напрямок, статус, номер, тривалість і оператор. Заголовок нотатки відкриває дзвінок. Нікому не треба писати її вручну.
Пропущений вхідний дзвінок створює на контакті активність Call back зі строком на сьогодні для оператора, якому дзвонили; кілька пропущених дзвінків поспіль дають одну активність, а не кілька. Вимкнути її чи змінити строк можна в Settings → Telephony → Missed Calls (Activity on Missed Call, Call back within).
15. Список дзвінків і аналітика
Telephony → Calls — єдиний список усіх дзвінків зі статусами Completed, Missed, Failed, Ringing або Answered. Missed означає, що ніхто не відповів; Failed — проблема з лінією чи балансом, а не вина оператора. Готові фільтри: My calls, Missed this week, Waited over 30 s, Without outcome, With recording. Перемикайтеся на зведену таблицю, графік чи канбан кнопками праворуч.
Telephony → Analytics (Telephony Manager) відкриває зведену таблицю за операторами й статусами з кількістю дзвінків і тривалістю розмов.
16. Особливості Zadarma
- Calls in Progress недоступний: у Zadarma немає API для активних дзвінків.
- Маршрутизація вхідних: Zadarma першою подією питає Odoo, кому дзвонити; увімкніть «Tell the PBX who should answer», якщо ваш сценарій Zadarma чекає на відповідь.
- Записи: строк зберігання на боці Zadarma не задокументовано; для важливих дзвінків увімкніть «Store Recordings Locally» на провайдері.
- Allowed Webhook IPs: типове значення 185.45.152.40/30 — опублікований діапазон Zadarma; підтвердьте його в підтримці Zadarma перед запуском.
17. Що потрібно від Zadarma
- Ключі API робочого облікового запису та, для перевірки, пісочниці.
- Доступ до кабінету Zadarma, щоб налаштувати URL вебхука й сповіщення.
- Внутрішні номери операторів.
- Часовий пояс облікового запису Zadarma (див. «Обмеження та дані»).
18. Усунення несправностей
- Вхідних дзвінків немає зовсім: перевірте URL у Zadarma (з ID компанії, якщо компаній кілька), потім «Allowed Webhook IPs».
- Вхідні дзвінки працюють, вихідні — ні: перевірте ключі й «API Base URL»: URL пісочниці означає, що справжні дзвінки не пройдуть.
- Дзвінок залишається «Initiating» після завершення: події від Zadarma не доходять до Odoo; перевірте URL вебхука й дозволені IP.
- Запис недоступний: термін дії посилання занадто короткий, або Zadarma не записала дзвінок («Recording Exists» вимкнено).
- Чому подію відхилено: увімкніть «Log Raw Events» на провайдері й відкрийте Telephony → Configuration → Raw Provider Events, фільтр «Rejected»: для кожної події вказано причину (компанію не визначено, IP немає в списку дозволених, підпис не збігається).
- Час дзвінків зсунуто або один дзвінок зʼявляється двічі: часовий пояс облікового запису Zadarma відрізняється від того, на який розраховує конектор (див. «Обмеження та дані»).
- Кнопка PBX повідомляє, що немає внутрішнього номера: у користувача немає внутрішнього номера: Telephony → Configuration → Extensions.
- Картка вхідного дзвінка не зʼявляється: внутрішній номер із події Zadarma не зіставлено з жодним користувачем; натисніть Check Extensions на провайдері.
- Дзвінок не привʼязано до контакту: номер не належить жодному контакту або належить двом контактам одразу; Odoo не вгадує.
- Запис не відтворюється: у користувача немає права «Recording Playback», термін дії посилання минув (натисніть Get recording link ще раз) або дзвінок не записано («Recording Exists» вимкнено).
Обмеження та дані
- Дані, що передаються за межі Odoo: номери телефонів і внутрішні номери із запитів дзвінка в один клік і записів надходять до API Zadarma (api.zadarma.com або api-sandbox.zadarma.com у режимі пісочниці). Zadarma надсилає події дзвінків на вебхук вашої Odoo.
- Облікові дані: зберігаються в записі провайдера кожної компанії.
- Часовий пояс АТС: конектор читає час дзвінків від Zadarma в часовому поясі Europe/Kyiv, а в поточній версії на формі провайдера немає налаштування, щоб його змінити. Якщо ваш обліковий запис Zadarma використовує інший часовий пояс, час дзвінків зсувається, а дзвінок, зроблений з Odoo, може зʼявитися двічі; звʼяжіться з нами перед запуском.
- Видалення: історія дзвінків залишається; записи провайдера Zadarma повертаються до типового провайдера.
- Не підтримується: бази Odoo Online (SaaS); дзвінки в процесі; SMS і факс.
Features
1. Click-to-Call through Zadarma
The "PBX" buttons and the dialer of the core module call through the Zadarma callback API: your phone or softphone rings first, then the customer. No browser extension is needed. The call appears in the list at once in the "Initiating" state; number, talk time and recording are added to the same record as Zadarma reports them.
Two operators calling the same number at the same time get each their own call record.
2. Incoming and Outgoing Call Events
Zadarma call notifications (start, answer and end of incoming, outgoing and internal calls) update the call in Odoo in real time: the incoming call popup, the statuses Completed, Missed and Failed, talk time and the missed call activity. With "Tell the PBX who should answer" on, Odoo answers the first Zadarma event with the extension of the salesperson of the caller.
3. Secure Webhook
The webhook checks three things: the zd_echo handshake when you save the URL in Zadarma, the official Zadarma IP range and the Signature of every event. An empty IP list rejects every request, so an unfilled setting never opens access to anybody.
4. Recordings with a Link Lifetime You Control
Recordings are requested from Zadarma when you want to listen, with a link lifetime you choose (15 minutes by default). For important calls turn on local storage in the core module.
5. Sandbox and Several Companies
The Sandbox switch sends requests to the Zadarma sandbox, so you can test the integration without real calls; "API Base URL" always shows where requests go. Each company can use its own Zadarma account with its own webhook URL.
6. Call from Any Phone Field
Next to every phone number in Odoo forms (contacts, leads, orders) there is a PBX button. One click, and Zadarma connects your phone with the customer: no typing of numbers. If you have several lines, the button opens Call via to choose the company and extension.
7. Call a Follower from the Chatter
A phone button in the chatter of any record lists the followers of this record with their numbers. The call and its note are linked to the record you called from.
8. Incoming Call Popup
When Zadarma puts a call through to an operator, a card with the caller appears in the corner of the screen: open the customer record, create a contact for an unknown number or log a note. After the conversation the card asks what the call was about and links it to the right lead, task or ticket.
9. Every Call in One Log
Each call is a record with the number, contact, operator, direction, wait and talk time, outcome and recording. A note about the call is added to the chatter of the contact automatically, and a missed call creates a "Call back" activity for the operator.
Documentation
1. Module Installation
Required modules: us_telephony_zadarma and Cloud PBX Telephony (us_telephony). No additional Python libraries are needed. You also need a Zadarma account with API access: the User Key and Secret Key are issued in the Zadarma account.
- Copy this module and us_telephony to the custom addons directory of your Odoo server.
- Restart the Odoo service.
- Open Apps, search for "Zadarma PBX Connector" and click Activate.
2. Users and Access Rights
Open Settings → Users & Companies → Users and give every user who makes or takes calls a Telephony access level:
- Operator: own calls, the PBX buttons and the dialer, the incoming call popup.
- Telephony Manager: all calls of the company, Analytics, providers, extensions and technical fields.
- Recording Playback: listening to recordings. It is given to every user by default; remove it only for a user who must not listen.
In a multi-company database a user sees only the calls of his own companies.
3. Webhook URL in Zadarma
Do this first, before entering the keys. In your Zadarma account open Settings → Integrations and API → Call notifications and enter https://<your-domain>/telephony/zadarma/webhook. Zadarma checks the URL at once, and Odoo answers the check automatically.
On the same page turn on the notifications the connector processes:
- Incoming and internal calls: NOTIFY_START, NOTIFY_INTERNAL, NOTIFY_ANSWER, NOTIFY_END; NOTIFY_IVR for the voice menu.
- Outgoing calls: NOTIFY_OUT_START, NOTIFY_OUT_END. Without them calls placed from Odoo stay "Initiating".
- Recordings: NOTIFY_RECORD. Without it a call has no recording.
4. Credentials
Open Telephony → Configuration → Providers, open the Zadarma record of your company and fill in the Credentials tab. Then press Test Connection: the answer includes the Zadarma balance as proof that the request went through.
Until the Secret Key is saved, Odoo answers only the URL check: every call event is rejected, because its signature is checked with the Secret Key.
| Field | What to enter | Example |
|---|---|---|
| Zadarma User Key | Zadarma account → Settings → API | a1b2c3... |
| Zadarma Secret Key | Same place; shown as dots and never written to the log | •••••• |
| Sandbox | Send requests to api-sandbox.zadarma.com instead of the live API | Off |
| Allowed Webhook IPs | Who may send events. Default: the official Zadarma range; empty rejects every request | 185.45.152.40/30 |
| Recording Link Lifetime, s | How long a recording link stays valid. Keep it short: a link gives the audio to anybody who has it | 900 |
| API Base URL | Read-only: live API or sandbox | https://api.zadarma.com |
Test Connection and Check Extensions keep their last result on the provider form: "Connection works", "Needs attention" with the text of Zadarma, or "Could not tell" (rate limit or network, not the keys).
5. Extensions
Open Telephony → Configuration → Extensions and map each operator to their Zadarma extension with the provider "Zadarma", or press Check Extensions on the provider form and add the missing ones. Zadarma returns extensions as numbers only, so choose the operator of each one yourself.
Create the extensions in the Zadarma account first, then in Odoo, then press Check Extensions. An extension that exists only in Odoo is rejected by Zadarma, and the PBX button fails. When the check finds extensions that exist in Zadarma but not in Odoo, it opens Add extensions from the PBX: choose the operator of each line and press Add; lines without an operator are skipped.
6. Outgoing Calls
A call placed from Odoo appears at once in the state "Initiating". Zadarma first rings the extension of the operator and dials the customer after the operator answers. The Zadarma call ID arrives later with NOTIFY_OUT_START, and the call is updated by it.
7. Test Before Go-Live
- Sandbox: turn it on to test without real calls; "API Base URL" shows where requests go.
- Test Mode (core module, section "Inbound Routing and Test Mode") works with Zadarma: Zadarma follows the answer of Odoo, so you can route only your test numbers to one operator.
- Acceptance script:
python us_telephony_zadarma/tools/zadarma_sandbox_check.py -c odoo.conf -d <database>checks the keys and the request signature against the Zadarma sandbox and only reads data. Add--to <number> --from-extension <extension>to check click-to-call. The script refuses to run when Sandbox is off.
8. First Test Call
Before the operators start, make one call yourself. Your user needs an extension (see "Extensions").
- Check that the provider is Active, Sandbox is off and Test Connection answers "Connection works".
- Open a contact with a phone number and click PBX next to the number. Odoo shows "The PBX is dialling…".
- Your Zadarma phone or softphone rings first. Answer it, and Zadarma dials the customer.
- Open Telephony → Calls: the call is there, first "Initiating", then updated by Zadarma events with talk time, status and recording.
- Call your Zadarma number from another phone: the operator whose extension takes the call sees the incoming call popup.
9. Calling from a Phone Field
Next to every phone number in a form (contact, lead, sales order, any record with a phone field) there is a PBX button. The standard Odoo phone link beside it calls from your computer; PBX calls through Zadarma: your phone rings first, the customer after you answer.
If you have extensions in several providers or several companies, PBX opens the Call via list (company — provider — extension): choose the line and press Call. With one line the button calls at once.
With Link Mode "Contextual" on the provider, a call started from a lead or an order is linked to that record, not only to the contact, so reports show where the call happened.
10. Dialer in the Top Bar
The phone icon in the top bar opens the dialer: type any number, press Call, and see your last ten calls. Missed calls are red; each line opens the call or the contact. The icon is shown only to users with an extension.
11. Calling a Follower from the Chatter
In the chatter of any record, next to Send message and Log note, there is a phone button. It lists the followers of this record with their phone numbers; click a number to call. Call via on top chooses the line.
The call and its note are always linked to the record from whose chatter you called. A follower without a phone number stays in the list, greyed out.
12. Incoming Call Popup and After-Call Card
When Zadarma puts an incoming call through to an extension, the owner of that extension sees a card in the bottom right corner: the contact and the number, Open record and Log note; for an unknown number — Create contact. A call to a group of numbers shows the card to every operator of the group, and it disappears for the others as soon as a colleague answers.
After the conversation the card changes to Call ended and asks what the call was about: Link and sum up opens the call to choose the related record (lead, task, ticket) and the outcome, Skip closes it. The card does not block work and closes by itself after a minute.
13. Call Card and Recordings
Telephony → Calls, open a call. The card shows the number, contact, operator, direction, status, start, wait and talk time, the Context Record the call is linked to and the Outcome: Agreed, Call back later, Not interested, No answer, Wrong number, Other.
The Call Recording block keeps the audio at Zadarma: press Get recording link to listen. A Telephony Manager can Restrict this recording: the call stays in lists and reports, only the audio is hidden from users who were not on the call.
14. Call Notes and Missed Calls
After every call Odoo posts a note in the chatter of the contact: direction, status, number, duration and operator. The title of the note opens the call. Nobody has to write it by hand.
A missed incoming call creates a Call back activity on the contact, due today, for the operator whose extension was called; several missed calls in a row give one activity, not many. Turn it off or change the deadline in Settings → Telephony → Missed Calls (Activity on Missed Call, Call back within).
15. Calls List and Analytics
Telephony → Calls is one list of all calls with the status Completed, Missed, Failed, Ringing or Answered. Missed means nobody answered; Failed means a line or balance problem, not the fault of the operator. Ready filters: My calls, Missed this week, Waited over 30 s, Without outcome, With recording. Switch to pivot, graph or kanban with the buttons on the right.
Telephony → Analytics (Telephony Manager) opens a pivot by operator and status with the number of calls and the talk time.
16. Zadarma Specifics
- Calls in Progress is not available: Zadarma has no API for active calls.
- Inbound routing: Zadarma asks Odoo whom to ring with its first event; turn on "Tell the PBX who should answer" if your Zadarma scenario waits for the answer.
- Recordings: the retention period on the Zadarma side is not documented; for important calls turn on "Store Recordings Locally" on the provider.
- Allowed Webhook IPs: the default 185.45.152.40/30 is the published Zadarma range; confirm it with Zadarma support before going live.
17. What You Need from Zadarma
- API keys of the live account and, for testing, of the sandbox.
- Access to the Zadarma account to set the webhook URL and the notifications.
- The extensions of the operators.
- The time zone of the Zadarma account (see "Limitations and Data").
18. Troubleshooting
- No incoming calls at all: check the URL in Zadarma (with the company ID when there are several companies), then "Allowed Webhook IPs".
- Incoming calls work, outgoing do not: check the keys and "API Base URL": a sandbox URL means real calls will not go through.
- A call stays "Initiating" after it ended: events from Zadarma do not reach Odoo; check the webhook URL and the allowed IPs.
- Recording is not available: the link lifetime is too short, or Zadarma did not record the call ("Recording Exists" is off).
- Why an event was rejected: turn on "Log Raw Events" on the provider and open Telephony → Configuration → Raw Provider Events, filter "Rejected": each event shows the reason (company not determined, IP not in the allowlist, signature mismatch).
- Call times are shifted, or one call appears twice: the time zone of the Zadarma account differs from the one the connector assumes (see "Limitations and Data").
- The PBX button says there is no extension: the user has no extension: Telephony → Configuration → Extensions.
- The incoming call popup does not appear: the extension from the Zadarma event is not mapped to any user; press Check Extensions on the provider.
- The call is not linked to a contact: the number belongs to no contact or to two contacts at once; Odoo does not guess.
- A recording does not play: the user has no "Recording Playback" right, the link has expired (press Get recording link again), or the call was not recorded ("Recording Exists" is off).
Limitations and Data
- Data sent outside Odoo: phone numbers and extensions of click-to-call and recording requests go to the Zadarma API (api.zadarma.com, or api-sandbox.zadarma.com in sandbox mode). Zadarma sends call events to your Odoo webhook.
- Credentials: stored in the provider record of each company.
- PBX time zone: the connector reads call times from Zadarma in the Europe/Kyiv time zone, and the current version has no setting on the provider form to change it. If your Zadarma account uses another time zone, call times are shifted and a call placed from Odoo can appear twice; contact us before going live.
- Uninstall: the call history stays; Zadarma provider records are reset to the default provider.
- Not supported: Odoo Online (SaaS) databases; calls in progress; SMS and fax.
Support
We provide free bug fixes and updates for all our modules for 1 year after purchase.
The warranty is for a clean installation of Odoo.
If you need help, please submit a request through our Support Portal at https://unitsoft.com.ua/support. Our support team, which consists of the developers who created the product, is always ready to help you.
We will not provide support (for free) if our modules do not work on your server or conflict with other modules.
We are ready to consider your requests regarding the functionality of our modules, and if they prove useful, we can take them into account when releasing new versions.
We also provide all types of Odoo support services, such as installing Odoo on your server, maintaining your Odoo server, custom development.
We invite you to familiarize yourself with our support packages here: https://unitsoft.com.ua/services-plan
Our Odoo Apps
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 4359 |
| Technical Name |
us_telephony_zadarma |
| License | OPL-1 |
| Website | https://unitsoft.io |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module