信奇应用程序到电话线的服务能否用于呼叫911急救服务(使用他们的iOS和安卓SDK)?
iOS MainViewController上的代码段。我设法调用callPhoneNumber方法来使用sinch调用常规的PSTN线路。但是,我不能测试911呼叫,因为我不想占用真正的紧急线路。
如果目标电话号码是911,我如何验证此代码是否有效?
谢谢,
@implementation MainViewController
- (id<SINClient>)client {
return [(AppDelegate *)[[UIApplication sharedApplication] delegate] client];
}
- (IBAction)call:(id)sender {
if ([self.destination.text length] > 0 && [self.client isStarted]) {
id<SINCall> call = [self.client.callClient callPhoneNumber:self.destination.text];
[self performSegueWithIdentifier:@"callView" sender:call];
}发布于 2014-12-16 16:21:58
Sinch不支持呼叫紧急号码。一般情况下,使用Sinch呼叫时,应根据E.164号码格式(http://en.wikipedia.org/wiki/E.164)建议指定电话号码,并且电话号码应以‘+’为前缀。
https://stackoverflow.com/questions/27371337
复制相似问题