Forward transfer headers to internal request (#3615)

This patch ensures that SIP headers provided in TransferSIPParticipantRequest requested by an agent are correctly forwarded to the internal SIP transfer request.

Previously, req.Headers was accepted but never passed along, causing headers from the initiating agent to be dropped.

This change adds a single line to include req.Headers in the internal request.
This commit is contained in:
Andrea Lovicu
2025-04-22 20:43:23 +02:00
committed by GitHub
parent d9ee921445
commit 4955ebe423
+1
View File
@@ -707,5 +707,6 @@ func (s *SIPService) transferSIPParticipantRequest(ctx context.Context, req *liv
SipCallId: callID,
TransferTo: req.TransferTo,
PlayDialtone: req.PlayDialtone,
Headers: req.Headers,
}, nil
}