Skip to content

Commit 3dad8f5

Browse files
authored
fix(outbound) read error message from twilio auth header (#427)
fix(outbound) report twilio auth header errors
1 parent 7196623 commit 3dad8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sip/outbound.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ authLoop:
792792
}
793793
if body := resp.Body(); len(body) != 0 {
794794
err.Status = string(body)
795-
} else if s := resp.GetHeader("X-Twillio-Error"); s != nil {
795+
} else if s := resp.GetHeader("X-Twilio-Error"); s != nil {
796796
err.Status = s.Value()
797797
}
798798
return nil, fmt.Errorf("INVITE failed: %w", err)

0 commit comments

Comments
 (0)