以编程方式拨打电话号码并使用iPhone

以编程方式拨打电话号码并使用iPhone

本文介绍了以编程方式拨打电话号码并使用iPhone SDK传递DTMF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式从iPhone SDK执行以下操作:

How do you programmatically do the following from the iPhone SDK:


  1. 通过iPhone SDK以编程方式拨打电话号码

  1. Programmatically Dial a Phone Number through the iPhone SDK

绕过iPhone出现的拨号/取消提示

Bypass the dial / cancel prompt that the iPhone brings up

在拨打号码后发送额外的DTMF,就像您将暂停编程到普通电话中一样。

Send additional DTMF after the number is dialed just like how you would program pauses into a regular phone.

我知道你可以赚 tel:// 但是问题是它会调出拨号/取消提示,然后它会阻止任何未来的DTMF被发送。

I know you can make a tel:// call but the issue is that it brings up the dial / cancel prompt and after that it prevents any future DTMF from being sent.

推荐答案

iPhone SDK不允许您直接访问拨号号码(想象一下,如果手机上有坏程序并拨打静音支付的每分钟号码,那么您就不会注意到这一点。)

The iPhone SDK does NOT give you direct access to dial numbers (imagine if a 'bad' program got on your phone and dialed a pay per minute number on mute so you didn't notice).

但是,如果您使用电话链接,那么您应该能够发送,插入暂停的字符。

However, if you use the tel link, then you should be able to send it "," characters which inserts pauses.

所以要拨打555-1212,然后等待4秒,然后按照你要使用的触摸音做12345#电话:5551212 ,, 12345#

So to dial 555-1212, then wait 4 seconds, then do 12345# on the touch tone you would use tel:5551212,,12345#

查看

-Adam

这篇关于以编程方式拨打电话号码并使用iPhone SDK传递DTMF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 02:19