How to use the jssip.debug function in jssip

To help you get started, we’ve selected a few jssip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bipbop / harlan / src / js / internals / modules / softphone.js View on Github external
/*jshint -W083 */

import JsSIP from 'jssip';
JsSIP.debug.enable('JsSIP:*');

let useragent /* jssip instance */;
let runningConfiguration /* jssip configuration */;
let makecall /* callback for registered jssip */;
let cachedPCConfig /* cached peer connection config */;

module.exports = controller => {

    controller.registerTrigger('findDatabase::instantSearch', 'softphone', (args, callback) => {
        callback();
        let [text, modal] = args;

        if (!/phone|limpar|configuração/i.test(text)) {
            return;
        }