【问题标题】:Error: No drachtio_mrf sip profile found on the media server错误:在媒体服务器上找不到 drachtio_mrf sip 配置文件
【发布时间】:2017-06-13 11:27:31
【问题描述】:

我正在尝试执行 drachtio-fsmrf 示例,但显示 drachtio_mrf sip profile is not found 错误。媒体 SIP 服务器是 freeswitch,我测试了一些代码 examples 时出现相同的错误。

完整的错误跟踪如下:

/home/ubuntu/my-drachtio-example/node_modules/drachtio-fsmrf/lib/mediaserver.js:117 if( null === results ) { throw new Error('No drachtio_mrf sip profile found on the media server: ' + status);} ^ 错误:在媒体服务器上找不到 drachtio_mrf sip 配置文件:名称类型数据状态 ==================================================== ================================================ 外部 ipv6 配置文件 sip:mod_sofia@[::1]:5080 正在运行 (0) 174.31.10.112 别名内部 ALIASED 外部配置文件 sip:mod_sofia@174.31.10.112:5080 正在运行 (0) external::example.com 网关 sip:joeuser@example.com NOREG 内部 ipv6 配置文件 sip:mod_sofia@[::1]:5060 正在运行 (0) 内部配置文件 sip:mod_sofia@174.31.10.112:5060 RUNNING (0) ==================================================== ================================================ 4 个人资料 1 别名 在媒体服务器。 (/home/ubuntu/my-drachtio-example/node_modules/drachtio-fsmrf/lib/mediaserver.js:117:40) 在 。 (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Connection.js:141:16) 在 EventEmitter.emit (/home/ubuntu/my-drachtio-example/node_modules/eventemitter2/lib/eventemitter2.js:339:22) 在 Connection._onEvent (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Connection.js:805:10) 在 EventEmitter.emit (/home/ubuntu/my-drachtio-example/node_modules/eventemitter2/lib/eventemitter2.js:339:22) 在 Parser._parseEvent (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Parser.js:208:10) 在 Parser._parseBody (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Parser.js:100:10) 在 Parser._parseHeaders (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Parser.js:76:37) 在 Parser._parseHeaders (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Parser.js:84:37) 在 Parser._parseHeaders (/home/ubuntu/my-drachtio-example/node_modules/modesl/lib/esl/Parser.js:84:37)

我按照存储库中的自述说明进行操作,我认为错误可能在于将其设置为 drachtio-fs-ansimbre 项目的步骤中。我不知道如何执行/应用此步骤。

应用代码为:

var app = require('drachtio')() ;
var Mrf = require('drachtio-fsmrf') ;
var mrf = new Mrf(app) ;
var Srf = require('drachtio-srf') ;
var srf = new Srf(app) ;

srf.connect({
  host: '127.0.0.1',
  port: 9022,
  secret: 'cymru',
})
.on('connect', (err, hostport) => { console.log(`connected to drachtio listening on ${hostport}`) ;})
.on('error', (err) => { console.error(`Error connecting to drachtio at ${err || err.message}`) ; }) ;


mrf.connect( {
  address: '127.0.0.1',
  port: 8021,
  secret: 'ClueCon'
}, (ms) => {
  console.log(`connected to media server `);
  // save the media server object as in app locals so it can be retrieved from middleware
  srf.locals.ms = ms ;
}) ;

【问题讨论】:

    标签: node.js sip freeswitch


    【解决方案1】:

    官方项目仓库https://github.com/davehorton/drachtio-fsmrf/issues/3的这个线程已经解决了这个错误

    【讨论】:

      猜你喜欢
      • 2018-01-17
      • 2012-02-28
      • 2014-11-11
      • 1970-01-01
      • 1970-01-01
      • 2022-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多