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];
}