@@ -258,8 +258,8 @@ private AnswerCallRequestInternal CreateAnswerCallRequest(AnswerCallOptions opti
258258 request . AnsweredBy = Source == null ? null : new CommunicationUserIdentifierModel ( Source . Id ) ;
259259 request . OperationContext = options . OperationContext ;
260260 request . CustomCallingContext = new CustomCallingContextInternal (
261- options . CustomCallingContext ? . SipHeaders ?? new ChangeTrackingDictionary < string , string > ( ) ,
262- options . CustomCallingContext ? . VoipHeaders ?? new ChangeTrackingDictionary < string , string > ( ) ) ;
261+ options . CustomCallingContext ? . VoipHeaders ?? new ChangeTrackingDictionary < string , string > ( ) ,
262+ options . CustomCallingContext ? . SipHeaders ?? new ChangeTrackingDictionary < string , string > ( ) ) ;
263263
264264 return request ;
265265 }
@@ -295,8 +295,8 @@ public virtual async Task<Response> RedirectCallAsync(RedirectCallOptions option
295295 RedirectCallRequestInternal request = new RedirectCallRequestInternal ( options . IncomingCallContext , CommunicationIdentifierSerializer . Serialize ( options . CallInvite . Target ) ) ;
296296
297297 request . CustomCallingContext = new CustomCallingContextInternal (
298- options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ,
299- options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ) ;
298+ options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ,
299+ options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ) ;
300300
301301 return await AzureCommunicationServicesRestClient . RedirectCallAsync ( request , cancellationToken ) . ConfigureAwait ( false ) ;
302302 }
@@ -338,8 +338,8 @@ public virtual Response RedirectCall(RedirectCallOptions options, CancellationTo
338338 RedirectCallRequestInternal request = new RedirectCallRequestInternal ( options . IncomingCallContext , CommunicationIdentifierSerializer . Serialize ( options . CallInvite . Target ) ) ;
339339
340340 request . CustomCallingContext = new CustomCallingContextInternal (
341- options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ,
342- options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ) ;
341+ options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ,
342+ options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ) ;
343343
344344 return AzureCommunicationServicesRestClient . RedirectCall ( request , cancellationToken ) ;
345345 }
@@ -729,8 +729,8 @@ private CreateCallRequestInternal CreateCallRequest(CreateCallOptions options)
729729 } ;
730730
731731 request . CustomCallingContext = new CustomCallingContextInternal (
732- options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ,
733- options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ) ;
732+ options . CallInvite . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . VoipHeaders ,
733+ options . CallInvite . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CallInvite . CustomCallingContext . SipHeaders ) ;
734734
735735 // Add CallIntelligenceOptions such as custom cognitive service domain name
736736 string cognitiveServicesEndpoint = options . CallIntelligenceOptions ? . CognitiveServicesEndpoint ? . AbsoluteUri ;
@@ -766,8 +766,8 @@ private CreateCallRequestInternal CreateCallRequest(CreateGroupCallOptions optio
766766 } ;
767767
768768 request . CustomCallingContext = new CustomCallingContextInternal (
769- options . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CustomCallingContext . SipHeaders ,
770- options . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CustomCallingContext . VoipHeaders ) ;
769+ options . CustomCallingContext . VoipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CustomCallingContext . VoipHeaders ,
770+ options . CustomCallingContext . SipHeaders == null ? new ChangeTrackingDictionary < string , string > ( ) : options . CustomCallingContext . SipHeaders ) ;
771771
772772 // Add CallIntelligenceOptions such as custom cognitive service domain name
773773 string cognitiveServicesEndpoint = options . CallIntelligenceOptions ? . CognitiveServicesEndpoint ? . AbsoluteUri ;
0 commit comments