Skip to content

TypeError: Cannot read property 'recvSSRC' of null #28

@garryavx

Description

@garryavx

I was having issues with my hepipe.js, so I deleted and recloned the repo. installed with npm, setup my config
I'm just capturing rtcp events from the ESL

my config is:

var config = {
  hep_config: {
    debug: true,
    HEP_SERVER: '192.168.20.3',
    HEP_PORT: 9060
  },
  esl_config: {
    debug: true,
    ESL_SERVER: '127.0.0.1',
    ESL_PORT: 8021,
    ESL_PASS: 'ClueCon',
    HEP_PASS: 'freeswitchESL',
    HEP_ID: 2222,
    report_call_events: false,
    report_rtcp_events: true,
    report_qos_events: false,
    report_custom_events: false
  }
};

module.exports = config;

when I run with nodejs hepipe.js it runs for a bit then I get this:

Unique-ID: 79d05382-0dac-423a-b631-19b1dc5e3585
DEFAULT! null
Processing RTCP Report... {
  headers: [
    { name: 'Event-Name', value: 'RECV_RTCP_MESSAGE' },
    {
      name: 'Core-UUID',
      value: '84cb85c5-36fa-4c32-bdba-9202b741b08d'
    },
    { name: 'FreeSWITCH-Hostname', value: 'beta.auravoice.us' },
    { name: 'FreeSWITCH-Switchname', value: 'beta.auravoice.us' },
    { name: 'FreeSWITCH-IPv4', value: '216.128.129.251' },
    { name: 'FreeSWITCH-IPv6', value: '::1' },
    { name: 'Event-Date-Local', value: '2022-01-13 17:21:11' },
    { name: 'Event-Date-GMT', value: 'Thu, 13 Jan 2022 23:21:11 GMT' },
    { name: 'Event-Date-Timestamp', value: '1642116071841091' },
    { name: 'Event-Calling-File', value: 'switch_core_media.c' },
    {
      name: 'Event-Calling-Function',
      value: 'switch_core_media_read_frame'
    },
    { name: 'Event-Calling-Line-Number', value: '3068' },
    { name: 'Event-Sequence', value: '4885560' },
    {
      name: 'Unique-ID',
      value: '79d05382-0dac-423a-b631-19b1dc5e3585'
    },
    { name: 'SSRC', value: '36951dfd' },
    { name: 'NTP-Most-Significant-Word', value: '3851104871' },
    { name: 'NTP-Least-Significant-Word', value: '1022164992' },
    { name: 'RTP-Timestamp', value: '103680000' },
    { name: 'Sender-Packet-Count', value: '106067' },
    { name: 'Octect-Packet-Count', value: '8107388' },
    { name: 'Last-RTP-Timestamp', value: '103680000' },
    { name: 'RTP-Rate', value: '48000' },
    { name: 'Capture-Time', value: '1642116071843040' },
    { name: 'Source0-SSRC', value: '19ea8dff' },
    { name: 'Source0-Fraction', value: '0' },
    { name: 'Source0-Lost', value: '263' },
    { name: 'Source0-Loss-Avg', value: '0' },
    {
      name: 'Source0-Highest-Sequence-Number-Received',
      value: '55272'
    },
    { name: 'Source0-Jitter', value: '199' },
    { name: 'Source0-LSR', value: '845538989' },
    { name: 'Source0-DLSR', value: '124256' },
    { name: 'Rtt0-Avg', value: '0.046655' }
  ],
  hPtr: null,
  type: 'RECV_RTCP_MESSAGE',
  subclass: undefined,
  body: ''
}
/usr/src/hepipe.js/esl-client.js:212
    if (!call.recvSSRC) {
              ^

TypeError: Cannot read property 'recvSSRC' of null
    at getRTCPMessage (/usr/src/hepipe.js/esl-client.js:212:15)
    at module.exports.<anonymous> (/usr/src/hepipe.js/esl-client.js:181:27)
    at module.exports.EventEmitter.emit (/usr/src/hepipe.js/node_modules/eventemitter2/lib/eventemitter2.js:388:22)
    at module.exports.Connection._onEvent (/usr/src/hepipe.js/node_modules/modesl/lib/esl/Connection.js:797:10)
    at module.exports.EventEmitter.emit (/usr/src/hepipe.js/node_modules/eventemitter2/lib/eventemitter2.js:388:22)
    at module.exports.Parser._parseEvent (/usr/src/hepipe.js/node_modules/modesl/lib/esl/Parser.js:208:10)
    at module.exports.Parser._parseBody (/usr/src/hepipe.js/node_modules/modesl/lib/esl/Parser.js:100:10)
    at module.exports.Parser._parseHeaders (/usr/src/hepipe.js/node_modules/modesl/lib/esl/Parser.js:76:37)
    at module.exports.Parser._onData (/usr/src/hepipe.js/node_modules/modesl/lib/esl/Parser.js:36:21)
    at Socket.emit (events.js:314:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions