How to use the drachtio-srf.SipError function in drachtio-srf

To help you get started, we’ve selected a few drachtio-srf 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 davehorton / drachtio-rtpengine-webrtcproxy / lib / call-processor.js View on Github external
const parseUri = require('drachtio-srf').parseUri ;
const SipError = require('drachtio-srf').SipError;
const config = require('config');
const debug = require('debug')('drachtio-rtpengine-webrtcproxy') ;

class CallProcessor {

  /**
   * creates an instance of the call processor.  this is intended to be a singleton instance.
   * you call the 'start' method to kick it off
   */
  constructor(logger) {
    this._logger = logger;

    // we need to track these only so we can fixup REFER messages for attended transfer
    this.calls = new Map() ;
  }
github davehorton / drachtio-rtpengine-webrtcproxy / lib / subscriber.js View on Github external
const parseUri = require('drachtio-srf').parseUri ;
const SipError = require('drachtio-srf').SipError;

class Subscriber {

  constructor(logger) {
    this._logger = logger;
  }

  get logger() {
    return this._logger;
  }

  start(srf, registrar) {
    srf.subscribe((req, res) => {

      this.logger.info(`UAC subscribing: ${req.protocol}/${req.source_address}:${req.source_port}`) ;

drachtio-srf

drachtio signaling resource framework

MIT
Latest version published 3 days ago

Package Health Score

75 / 100
Full package analysis

Popular drachtio-srf functions

Similar packages