Skip to content

Commit 81a3dfb

Browse files
authored
Remove SIP outbound number normalization for Telnyx. (#969)
1 parent 9ce0387 commit 81a3dfb

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.changeset/silly-tips-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"github.com/livekit/protocol": patch
3+
---
4+
5+
Remove SIP outbound number normalization for Telnyx.

rpc/sip.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ func NewCreateSIPParticipantRequest(
5555
}
5656
// A sanity check for the number format for well-known providers.
5757
switch {
58-
case strings.HasSuffix(hostname, "telnyx.com"):
59-
// Telnyx omits leading '+' by default.
60-
outboundNumber = strings.TrimPrefix(outboundNumber, "+")
6158
case strings.HasSuffix(hostname, "twilio.com"):
6259
// Twilio requires leading '+'.
6360
if !strings.HasPrefix(outboundNumber, "+") {

0 commit comments

Comments
 (0)