Skip to content

Commit 0658b5d

Browse files
committed
fix test
1 parent 683d30f commit 0658b5d

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
@@ -362,7 +362,8 @@ func (s *Server) processInvite(req *sip.Request, tx sip.ServerTransaction) (retE
362362
if !ok {
363363
// No to-tag on the invite means we need to generate one per RFC 3261 section 12.
364364
// Generate a new to-tag early, to make sure both INVITES have the same ID.
365-
toParams.Add("tag", utils.NewGuid(""))
365+
toTag = utils.NewGuid("")
366+
toParams.Add("tag", toTag)
366367
}
367368
inviteProgress := s.getInvite(sipCallID, toTag, fromTag)
368369
callID := inviteProgress.lkCallID

0 commit comments

Comments
 (0)