【问题标题】:How can I use sipml5 with 3CX?如何将 sipml5 与 3CX 一起使用?
【发布时间】:2015-08-15 22:18:15
【问题描述】:

我尝试使用 sipml5 从浏览器调用 3CX 扩展。

SIPml.init(
    function (e) {
        var stack = new SIPml.Stack({
            realm: '192.168.*.**', impi: '2003', impu: 'sip:2003@192.168.2.**', password: '**********',
            websocket_proxy_url: 'ws://192.168.*.**:5060', // optional

            events_listener: {
                events: 'started', listener: function (e) {
                    var callSession = stack.newSession('call-audiovideo', {
                        video_local: document.getElementById('video-local'), // <video id="video-local" .../>
                        video_remote: document.getElementById('video-remote'), // <video id="video-remote" .../>
                        audio_remote: document.getElementById('audio-remote') // <audio id="audio-remote" .../>
                    });
                    callSession.call('2004');
                }
            }
        });
        stack.start();
    }
);

我使用了这个例子,但它无法连接到 3CX。

【问题讨论】:

    标签: javascript websocket sip sipml 3cx


    【解决方案1】:

    我也无法连接,它返回如下错误:

    > 错误:ERR_INVALID_PARAMETER_VALUE:“listener”不能为空

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-02
      • 2011-02-27
      • 1970-01-01
      • 2023-03-13
      • 2014-09-25
      • 2016-01-30
      • 2015-12-13
      • 2020-09-15
      相关资源
      最近更新 更多