diff --git a/.changeset/sip-outbound-identity-opt.md b/.changeset/sip-outbound-identity-opt.md new file mode 100644 index 00000000..aa3eec96 --- /dev/null +++ b/.changeset/sip-outbound-identity-opt.md @@ -0,0 +1,5 @@ +--- +"github.com/livekit/protocol": patch +--- + +Remove SIP outbound number normalization for Telnyx. diff --git a/rpc/sip.go b/rpc/sip.go index 384f9a45..3994f378 100644 --- a/rpc/sip.go +++ b/rpc/sip.go @@ -96,6 +96,10 @@ func NewCreateSIPParticipantRequest( if req.IncludeHeaders != 0 { includeHeaders = req.IncludeHeaders } + participantIdentity := req.ParticipantIdentity + if participantIdentity == "" { + participantIdentity = "sip_" + req.SipCallTo + } return &InternalCreateSIPParticipantRequest{ ProjectId: projectID, @@ -111,7 +115,7 @@ func NewCreateSIPParticipantRequest( WsUrl: wsUrl, Token: token, RoomName: req.RoomName, - ParticipantIdentity: req.ParticipantIdentity, + ParticipantIdentity: participantIdentity, ParticipantName: req.ParticipantName, ParticipantMetadata: req.ParticipantMetadata, ParticipantAttributes: attrs,