Merge pull request #4 from jazzz/hotfix/callerid

Properly update callerid for incoming calls
This commit is contained in:
Frederic Jacobs 2014-05-07 14:41:17 +02:00
commit bd1741e94f
1 changed files with 3 additions and 1 deletions

View File

@ -97,9 +97,11 @@
return;
}
Contact* callingContact = [[[Environment getCurrent] contactsManager] latestContactForPhoneNumber:session.initiatorNumber];
CallController* callController = [self cancelExistingCallAndInitNewCallWork:false
remote:session.initiatorNumber
optionalContact:nil];
optionalContact:callingContact];
id<CancelToken> lifetime = [callController untilCancelledToken];
Future* futureConnected = [CallConnectUtil asyncRespondToCallWithSessionDescriptor:session