【问题标题】:How to send a phone number to a SIP client with Cordova?如何使用 Cordova 向 SIP 客户端发送电话号码?
【发布时间】: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


    【解决方案1】:

    我建议使用sipjs拨打电话。看my answer here

    【讨论】:

      【解决方案2】:

      问题在于 sip 方案。 'sip:' 应该只包含一个像 5555555555 这样的数字。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-07-13
        • 2012-03-09
        • 1970-01-01
        • 2010-12-22
        • 2023-04-02
        相关资源
        最近更新 更多