From 303013ecca9b51a7a78e17b96c9cba9675824c26 Mon Sep 17 00:00:00 2001 From: Richard Cho Date: Wed, 15 Feb 2023 23:18:10 -0800 Subject: [PATCH] fix transfer logic --- .../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);