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