0.2.7 • Published 5 months ago

@jambonz/mw-registrar v0.2.7

Weekly downloads
37
License
MIT
Repository
github
Last release
5 months ago

mw-registrar CI

Jambonz class that handles inserting, removing, and querying the database of active sip registrations

const Registrar = require('jambonz-mw-registrar');
const registrar = new Registrar({host: '127.0.0.1', port: 6379});

// add a registration, optionally with an expires value in secs
registrar.add('daveh@drachtio.org', {
  contact: '10.10.1.1',
  sbcAddress: '192.168.1.1',
  protocol: 'udp'
}, 40);

const registrationDetails = await registrar.query('daveh@drachtio.org');
// {"contact":"10.10.1.1","sbcAddress":"192.168.1.1","protocol":"udp"}

// get count of users for a realm
const userCount = await registrar.getCountOfUsers('drachtio.org');

// remove a user
registrar.remove('daveh@drachtio.org');
0.2.7

5 months ago

0.2.6

5 months ago

0.2.5

7 months ago

0.2.4

11 months ago

0.2.3

1 year ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago