0

sinch app-to-phoneline 服务能否用于拨打 911 紧急服务(使用他们的 iOS 和 Android 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];
}
4

1 回答 1

2

Sinch 不支持拨打紧急电话。作为一般准则,使用 Sinch 呼叫时,应根据 E.164 号码格式 ( http://en.wikipedia.org/wiki/E.164 ) 建议指定电话号码,并应以“+”为前缀.

于 2014-12-16T08:21:58.370 回答