GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eventphone/python-mitel: Mitel SIP-DECT OMM (Mitel Open Mobility Manager) API Python SDK

BranchesTags
Open more actions menu

Latest commit

 

History

47 Commits
47 Commits

Folders and files

NameName
Last commit message
Last commit date
OMMClient
OMMClient
 
 
docs
docs
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
requirements.txt
requirements.txt
 
 
test.py
test.py
 
 
testconfig_template.py
testconfig_template.py
 
 

Repository files navigation

python-mitel (Python API for Mitel SIP-DECT)

Overview and Purpose

The Mitel SIP-DECT solution is a scalable IP-based multicell DECT-System. Multiple DECT basestations (RFPs) can be used to extend coverage. Up to 10.000 handsets (PPs) can be registered to use the system. All RFPs are orchestrated by one central component. It is called Open Mobility Manager (OMM). RFPs and PPs can be configured using a web based GUI as well as a java client application. The java client application called OMP connects to OMM using a custom xml-based protocol over an SSL-socket. The idea behind this Python Module is to reverse-engenieer that protocol to be able to script all changes inside the OMM.

This library has been replaced by https://github.com/eventphone/mitel-api and is no longer actively maintained.

Documentation

Documentation Status

Documentation can be found here: http://python-mitel.readthedocs.io/.

References

After reverse engineering the api interface between OMP and OMM google came up with a vendor api documentation which can be found here:

SIP-DECT OM Application XML Interface OMM V 6.1

Following features are targeted:

  • Configure subscription mode (Off, Subscription, Wildcard) ✅
  • Handle subscription mode change ✅
  • Create new user profiles ✅
  • Create new devices (PPs) using known IPEI/IPUI
  • Attach existing profiles to devices ✅
  • Detach a user profile from a device ✅
  • Reset a user's PIN to move a dynamic profile ✅

Use cases:

  • Build a custom yate-script to login a user profile to a PP
  • Keep the system in wildcard registration mode
  • Synchronisation of user profiles from external data source

Implemented Features:

System-Wide

  • Subscribe to defined OMM-Events
  • Send a PING request to OMM
  • Get System Name
  • Get System SARI
  • Get System Limits (Maximum Values)
  • Get Protocol Versions per OMM-call
  • Set DECT Subscription-Mode
  • Get OMM User Account by ID
  • Login Default and Login as OMM-Sync

Users (User Profiles)

  • Create new user profile
  • Get User by ID
  • Reset User-PIN
  • Attach User to Device
  • Detach User from Device
  • Convert User-Device Relation to Fixed
  • Convert User-Device Relation to Dynamic

Devices (Protable Parts)

  • Delete Device (PP)
  • Get Device State

Usage example:

The following example logs into OMM and executes some operations. It also handles the event of a subscription mode change.

# Implement Event Handler for subcription mode change
def SubscriptionHandler(message, attributes, children):
    print("Subscription Mode changed!")
    print("New mode: "+attributes["mode"])

# Login to OMM
test = OMMClient.OMMClient("<omm host>", 12622)
test.login("omm", "<super secure password>")

# Attach Event Handler
test.on_DECTSubscriptionMode += SubscriptionHandler

# Get some Basic Infos
print("SARI: "+test.get_sari())
print("OMM: "+test.get_systemname())
print(test.get_limits())

# Disable DECT registration
print(test.set_subscription("Off"))

# Reset the PIN of User number 55 to 1234
print(test.set_user_pin(55,"1234"))

# Ping OMM 5 times
while i<5:
    i +=1
    sleep(0.5)
    test.ping()

#Close OMM connection
test.logout()

About

Mitel SIP-DECT OMM (Mitel Open Mobility Manager) API Python SDK

Topics

mitelopenmobilitymanagersip-dect

Resources

Readme
MIT license
Activity
Custom properties

Stars

18 stars

Watchers

7 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.