Skip to content

Commit

Permalink
Address CreateCall bugs (#34273)
Browse files Browse the repository at this point in the history
* fix transfer logic

* fix createCall issues
  • Loading branch information
richardcho-msft committed Feb 17, 2023
1 parent 074431d commit ffac496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ private CreateCallRequestInternal CreateCallRequest(CreateGroupCallOptions optio
? null
: new PhoneNumberIdentifierModel(options?.SourceCallerIdNumber?.PhoneNumber),
SourceDisplayName = options?.SourceDisplayName,
SourceIdentity = CommunicationIdentifierSerializer.Serialize(Source),
SourceIdentity = Source == null ? null : CommunicationIdentifierSerializer.Serialize(Source),
};
// Add custom cognitive service domain name
if (options.AzureCognitiveServicesEndpointUrl != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ internal CallConnectionProperties(CallConnectionPropertiesInternal callConnectio

if (callConnectionPropertiesDtoInternal.SourceCallerIdNumber != null)
{
var communicationIdentifierModel = new CommunicationIdentifierModel
{
PhoneNumber = callConnectionPropertiesDtoInternal.SourceCallerIdNumber,
};
SourceCallerIdNumber = (PhoneNumberIdentifier)CommunicationIdentifierSerializer.Deserialize(communicationIdentifierModel);
SourceCallerIdNumber = new PhoneNumberIdentifier(callConnectionPropertiesDtoInternal.SourceCallerIdNumber.Value);
}
}

Expand Down

0 comments on commit ffac496

Please sign in to comment.