All Projects → litnimax → odoo_asterisk

litnimax / odoo_asterisk

Licence: other
Odoo based Asterisk IP-PBX

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to odoo asterisk

paStash
pastaʃ'ʃ = Spaghetti I/O Event Data Processing, Interpolation, Correlation and beyond 🍝
Stars: ✭ 89 (+134.21%)
Mutual labels:  asterisk
vosk-asterisk
Speech Recognition in Asterisk with Vosk Server
Stars: ✭ 52 (+36.84%)
Mutual labels:  asterisk
Astergazer
Combined dialplan and FastAGI services with a visual dialplan constructor for Asterisk PBX
Stars: ✭ 28 (-26.32%)
Mutual labels:  asterisk
docky
Docky - Helper for docker-compose mainly used in odoo context
Stars: ✭ 46 (+21.05%)
Mutual labels:  odoo
odoo-development-environment-tutorial
建立 odoo 開發環境 ( source code )
Stars: ✭ 25 (-34.21%)
Mutual labels:  odoo
callme
No description or website provided.
Stars: ✭ 45 (+18.42%)
Mutual labels:  asterisk
muk base
MuK Odoo Base Modules
Stars: ✭ 33 (-13.16%)
Mutual labels:  odoo
ami
integration asterisk manager interface (AMI) in laravel
Stars: ✭ 25 (-34.21%)
Mutual labels:  asterisk
Core
Free, easy to setup PBX for small business based on Asterisk 16 core
Stars: ✭ 190 (+400%)
Mutual labels:  asterisk
docker-freepbx
Docker Image with Asterisk 13, Freepbx 13, Ubuntu 14.04
Stars: ✭ 15 (-60.53%)
Mutual labels:  asterisk
goami
Asterisk Manager Interface (AMI) client in Go
Stars: ✭ 36 (-5.26%)
Mutual labels:  asterisk
webcdr
☎️ CDR viewer for Asterisk with search, call recording player, bulk downloads, Excel export
Stars: ✭ 54 (+42.11%)
Mutual labels:  asterisk
amiws
Asterisk Management Interface (AMI) to Web-socket proxy
Stars: ✭ 60 (+57.89%)
Mutual labels:  asterisk
dockerdoo
Flexible and streamlined Odoo image to be used with docker-compose, docker swarm or Kubernetes. Fully integrated to with VSCode devcontainers
Stars: ✭ 55 (+44.74%)
Mutual labels:  odoo
odoo backend theme
No description or website provided.
Stars: ✭ 16 (-57.89%)
Mutual labels:  odoo
angular-odoo
Call Odoo webservices from AngularJS
Stars: ✭ 41 (+7.89%)
Mutual labels:  odoo
extra-addons
Odoo addons
Stars: ✭ 14 (-63.16%)
Mutual labels:  odoo
caller-lookup
Reverse Caller Id using TrueCaller
Stars: ✭ 55 (+44.74%)
Mutual labels:  asterisk
magnusbilling7
MagnusBilling is a fast, secure, efficient, high availability, VOIP Billing.
Stars: ✭ 136 (+257.89%)
Mutual labels:  asterisk
Katari
Katari - Python Session Initiated Protocol Framework
Stars: ✭ 29 (-23.68%)
Mutual labels:  asterisk

NOTE

This project was a prototype. This code base is abandoned and is not supported.

As a result of experience of this work new solutions were sucessfully implemented.

Visit it here:

Asterisk inside Odoo - PBX & Dev platform

Imagine all Asterisk PBX features covered around by Odoo.

Static or RealTime, scaling from Embedded PBX to unlimited number of servers in the cloud with central management.

Project description

IMAGE ALT TEXT HERE

This project is Asterisk Management system and also Asterisk development platform based on Odoo.

Currently implemented features:

  • Multi server management - many Asterisk servers are managed from one place.
  • Asterisk .conf files editor with Asterisk syntax highlight. Configuration files are stored in Odoo database and delivered to Asterisk server via Asterisk internal HTTP server.
  • Asterisk WEB console with colors.
  • Stasis apps server implementing different business logic, e.g. set callerid name from Odoo contacts.
  • Call QoS reporting on every CDR.
  • CEL (Channel event logging) on every call.
  • Call Recording with automatic download and cleanup (embedded pbx ready).
  • Apps
  • SIP users and trunks management, peer registration history and statistics.
  • More to come...

Project Components

odoo-addons

This folder contains Odoo modules. You should update your odoo.conf and append path to this folder.

[options]
addons_path =  /usr/lib/python2.7/dist-packages/odoo/addons,/opt/odoo_asterisk/odoo-addons

Don't forget to activate developer mode and update apps list so that Odoo knows about these modules!

Also this folder contains requirements for Odoo, you can install them from pip:

sudo pip install -r requirements.txt

PostgreSQL preparations

Before installing Odoo Asterisk addon modules you have to create PostgreSQL role for Asterisk (set your own password!):

template1=# create user asterisk with password 'asterisk';
CREATE ROLE
template1=#

agent

This folder contains Asterisk agent that should be deployed on your Asterisk server. Currently the agent gives a WEB Asterisk CLI in Odoo.

You should create a python environment using requirements.txt and run the agent.

Clone this repo on your Asterisk server, create python virtual environment, go to agent folder and run

virtualenv env
source env/bin/activate
pip install -r requirements.txt
python asterisk_helper.py

After that go to Odoo and set Asterisk CLI URL in server's settings to (for example if your asterisk server is on 192.168.1.1):

ws://192.168.1.1:8010/websocket

Save, go to Console tab and click Edit to activate Asterisk CLI. Click Discard to leave the console.

services

This folder contains additional helper applications:

  • stasis_apps.py - Asterisk Stasis Application implementing different services, e.g. setting callerid name from Odoo contacts.
  • ami_broker.py - AMI client for asterisk used for example to catch Hangup event to download call recording.

You should create a virtualenvironment using this folder's requirements.txt and run both scripts. See conf.py for configuration settings

After installation

Trigger for CEL

Go to PgSQL console and run:

CREATE OR REPLACE FUNCTION update_cel_cdr_field() RETURNS trigger AS $$
        BEGIN
        UPDATE asterisk_cel set cdr = NEW.id
            WHERE asterisk_cel.uniqueid = NEW.uniqueid;
        RETURN NULL;
        END; $$ LANGUAGE 'plpgsql';

        DROP TRIGGER IF EXISTS update_cel_cdr_field  on asterisk_cdr;
        CREATE TRIGGER update_cel_cdr_field AFTER INSERT on asterisk_cdr
            FOR EACH ROW EXECUTE PROCEDURE update_cel_cdr_field();

Create role for Asterisk

GRANT ALL on asterisk_cdr to asterisk;
GRANT ALL on asterisk_sip_peer to asterisk;
GRANT ALL on asterisk_cdr_id_seq to asterisk;
GRANT ALL on asterisk_cel to asterisk;
GRANT ALL on asterisk_cel_id_seq to asterisk;
GRANT SELECT on asterisk_context to asterisk;
GRANT SELECT on asterisk_conf_extensions to asterisk;

Run odoo with --workers=N where N > 1. This automatically enables odoo to listen on port 8072 where ami_brocker.py service connects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].