拨打包含#的号码。 (IPhone SDK)

时间:2022-12-16 10:42:01

I need to make call to a number, that start with #. For example phone number in Russia looks like +79123817711 and I need to call #79123817711. I'm trying this:

我需要拨打一个以#开头的号码。例如,俄罗斯的电话号码看起来像+79123817711,我需要拨打#79123817711。我正在尝试这个:

NSURL *url = [NSURL URLWithString:@"tel://#79123817711"];
[[UIApplication sharedLibrary] openURL:url];

But it's replaced # with %23, and sure, not make a call.

但是它被%23替换了#,肯定不会打电话。

Is there any way to make such calls.

有没有办法打这样的电话。

I know, that is not a call, it's USSD request. But function of this ussd looks like a call.

我知道,这不是电话,而是USSD请求。但这个ussd的功能看起来像一个电话。

1 个解决方案

#1


6  

iOS SDK (Apple URL scheme reference) tells: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

iOS SDK(Apple URL方案参考)告诉:为防止用户恶意重定向电话或更改电话或帐户的行为,Phone应用程序支持tel方案中的大多数但不是全部特殊字符。具体来说,如果URL包含*或#字符,则电话应用程序不会尝试拨打相应的电话号码。

So, no luck.

所以,没有运气。

#1


6  

iOS SDK (Apple URL scheme reference) tells: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

iOS SDK(Apple URL方案参考)告诉:为防止用户恶意重定向电话或更改电话或帐户的行为,Phone应用程序支持tel方案中的大多数但不是全部特殊字符。具体来说,如果URL包含*或#字符,则电话应用程序不会尝试拨打相应的电话号码。

So, no luck.

所以,没有运气。