A Node client library for the OpenSIPS management interface.
npm install opensips-mi
var opensips = require("opensips-mi");
var client = opensips.create("datagram", { host : "38.29.39.19" });
client.usrloc.showContact("location", "sip:tester@testing-domain.com")
.then(function (contacts) {
// do something with the list of contacts
})
.error(function (error) {
// do something to handle the error
});
Look in the documentation for more information.