Skip to content

Commit 3bcbc8c

Browse files
committed
fix test
1 parent 301744f commit 3bcbc8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/sip/inbound.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ func (s *Server) processInvite(req *sip.Request, tx sip.ServerTransaction) (retE
374374
if !ok {
375375
// No to-tag on the invite means we need to generate one per RFC 3261 section 12.
376376
// Generate a new to-tag early, to make sure both INVITES have the same ID.
377-
toParams.Add("tag", utils.NewGuid(""))
377+
toTag = utils.NewGuid("")
378+
toParams.Add("tag", toTag)
378379
}
379380
inviteProgress := s.getInvite(sipCallID, toTag, fromTag)
380381
callID := inviteProgress.lkCallID

0 commit comments

Comments
 (0)