放置phonecall包括扩展名 [英] Placing a phonecall including extension
问题描述
我一直在试图通过各种方法我Appcelerator的钛应用程序中调用一个号码。现在的问题是,这是应拨一个扩展为好。我曾尝试格式电话:1234567890,34,联系电话:1234567890p34,1234567890w34。我已经尝试使用它:
I have been trying to call a number from within my Titanium Appcelerator application using various methods. The problem is, that is should dial an extension as well. I have tried the formats "tel:1234567890,34", "tel:1234567890p34", "1234567890w34". And I have tried it using:
// method 1
var intent = Ti.Android.createIntent({
action : Ti.Android.ACTION_CALL,
data : phoneNumber
});
Ti.Android.currentActivity.startActivity(intent);
// method 2
Ti.Platform.openURL(phoneNumber);
格式和方法的所有组合都不起作用。的P被改写为7。使用逗号,逗号之后一切都忽略不计。我怎样才能让一个呼出包括扩展名?
All combinations of formats and methods do not work. The "p" is rewritten to "7". Using a comma, everything after the comma is neglected. How can I make an outbound call including an extension?
推荐答案
不知道是否适用于Android,但我知道在iPhone上时,我想拨打电话与分机我会用4逗号(,,,, )
Not sure if it works on Android but I know on iPhone when I wanted to place a phone call with an extension I would use 4 commas (,,,,)
让我知道,如果它的作品我很好奇。
Let me know if it works I'm curious
例如:
1-555-455-4443 ,,,, 8888
Example: 1-555-455-4443,,,,8888
*注意我用的是原生SDK的(不Appcelerator的钛)
*Note I was using the native SDK's (NOT Titanium Appcelerator)
这篇关于放置phonecall包括扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!