Skip to content

.NET Library for the SIP-DECT OM Application XML Interface used by Mitel OMM.

License

Notifications You must be signed in to change notification settings

eventphone/mitel-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitel-api

.NET Library for the SIP-DECT OM Application XML Interface used by Mitel OMM. This project was inspired by python-mitel.

status

Currently only the base types, events and functions are implemented (as needed). The library is fully async and also supports events sent from OMM. All functionality is based on the publicly available api documentation (v6.1) from mitel, wireshark traces captured from OMP to OMM and MOM to OMM and contains some undocumented features like ppnOld on PPUserType or SetPP.

usage

Login

var client = new OmmClient("example.com");
await client.LoginAsync("omm", "god");

Request / Reponse

var user = new PPUserType()
{
    Name = "John Doe",
    Num = "1337",
    Hierarchy1 = "Lorem Ipsum",
    AddId = "1337",
    Pin = "0000",
    SipAuthId = "1337",
    SipPw = "god"
};
var user = await client.CreatePPUser(user, cancellationToken);

Events

var resetEvent = new ManualResetEventSlim();
//attach event handler
client.DECTSubscriptionModeChanged += (s, e) =>
{
    var data = e.Event;
    Console.WriteLine($"{data.Mode}");
    resetEvent.Set();
};
//subscribe to event
await client.Subscribe(EventType.DECTSubscriptionMode, cancellationToken);
//wait for event
resetEvent.Wait(TimeSpan.FromSeconds(5));

About

.NET Library for the SIP-DECT OM Application XML Interface used by Mitel OMM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages