jambonz-mw-registrar
v0.1.3
Published
jambonz middleware that provides access to the database of active registrations maintained as part of the SBC function
Downloads
21
Readme
jambonz-mw-registrar
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});
registrar.add('[email protected]', '10.10.1.1', '192.168.1.1', 'udp', 2);
// aor, contact, sbcAddress, expires
const registrationDetails = await registrar.query('[email protected]');
// {"contact":"10.10.1.1","sbcAddress":"192.168.1.1","protocol":"udp"}
registrar.remove('[email protected]');