我正在使用 Cordova 开发一个电话应用程序(目前专注于 android),我希望能够让用户通过他的 SIP 客户端进行调用。目前,我正在使用 Sipdroid 进行测试。
这将是 Sipdroid 的 Intent 过滤器:http://pastie.org/pastes/8442254
我正在尝试使用 WebIntent ( https://github.com/Initsogar/cordova-webintent ) 传递一个数字并启动兼容 SIP 客户端的“打开方式...”列表。用户选择客户后,该客户将调用传递的号码。
我已经尝试用 Javascript 中的这段代码来做到这一点:
//number is in the format of tel:555-555-5555
var call = function(number){
window.plugins.webintent.startActivity({
action: android.intent.action.CALL,
sip: number},
function() {},
function() {alert("Error");});
};
最佳答案
我建议使用 sipjs打电话。看my answer here
关于javascript - 如何使用 Cordova 将电话号码发送到 SIP 客户端?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28437599/