Skip to content

Commit 9b10ad8

Browse files
Disable call ID reuse across auth attempts (#229)
* try not reusing callid * Disable call ID reuse across auth attempts
1 parent 442b8de commit 9b10ad8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: pkg/sip/outbound.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,10 @@ func (c *sipOutbound) attemptInvite(ctx context.Context, prev *sip.Request, dest
721721
ctx, span := tracer.Start(ctx, "sipOutbound.attemptInvite")
722722
defer span.End()
723723
req := sip.NewRequest(sip.INVITE, to.Address)
724-
if prev != nil {
724+
725+
const reuseCallID = false // FIXME some service may require the call ID to be kept between auth attempts, but Telnyx requires it to change
726+
727+
if reuseCallID && prev != nil {
725728
if cid := prev.CallID(); cid != nil {
726729
req.RemoveHeader("Call-ID")
727730
req.AppendHeader(cid)

0 commit comments

Comments
 (0)