javascript - 我如何在 3CX 中使用 sipml5?

标签 javascript websocket sip sipml 3cx

我尝试使用 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。

最佳答案

我也无法连接,它返回这样的错误:

> 错误:ERR_INVALID_PARAMETER_VALUE:'listener' 不能为空

关于javascript - 我如何在 3CX 中使用 sipml5?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30590723/

相关文章:

javascript - 如何使用 react-grid-layout 创建动态拖放布局

JavaScript 回调错误或不运行

javascript - Extjs从一个 View 访问另一个 View

javascript - Websockets - 是否需要额外的框架?

android - 我想使用安卓 SIP API

Javascript 前导零函数参数

javascript - Angular 中的 WebSocket 服务更新范围(使用 ngWebSocket)?

android - Websocket 在非浏览器设备上的开销

Android 2.3 使用外部 JAIN-SIP(J-SIP) 堆栈 |类路径

java - PeerUnavailableException 在 Android 上使用 JAIN SIP API