Nth Permutation Mathematics

    @jambonz/mw-registrar

    0.2.2 • Public • Published

    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');
    

    Install

    npm i @jambonz/mw-registrar

    DownloadsWeekly Downloads

    95

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    16.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • beachdog