From 1a5a7a12c3ce350f7cd076b106fa4a443f7b1dad Mon Sep 17 00:00:00 2001 From: richardcho-msft <95773682+richardcho-msft@users.noreply.github.com> Date: Thu, 16 Feb 2023 11:02:16 -0800 Subject: [PATCH] fix transfer logic (#34263) --- .../Azure.Communication.CallAutomation/src/CallConnection.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs b/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs index 49f19df4af8b..f4ac656f7720 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs @@ -296,6 +296,8 @@ private static TransferToParticipantRequestInternal CreateTransferToParticipantR request.TransfereeCallerId = options.CallInvite.SourceCallerIdNumber == null ? null : new PhoneNumberIdentifierModel(options.CallInvite.SourceCallerIdNumber.PhoneNumber); + request.CustomContext = new CustomContextInternal(); + foreach (var sipHeader in options.CallInvite.SipHeaders) { request.CustomContext.SipHeaders.Add(sipHeader.Key, sipHeader.Value);