【发布时间】:2015-02-10 17:07:30
【问题描述】:
我正在使用 Cordova 开发一个电话应用程序(目前专注于 android),我希望能够让用户通过他的 SIP 客户端进行呼叫。目前,我正在使用 Sipdroid 进行测试。
这将是 Sipdroid 的 Intent-Filters: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");});
};
【问题讨论】:
标签: javascript android cordova mobile sip