From 2a7310734eb4c604f849203e659d44eec422462e Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 25 May 2022 12:55:44 +0200 Subject: [PATCH] sipexer: do not retransmit for non-UDP transport in early dlg state --- sipexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sipexer.go b/sipexer.go index f7c96da..553c14f 100644 --- a/sipexer.go +++ b/sipexer.go @@ -1440,7 +1440,7 @@ func SIPExerDialogLoop(tplstr string, tplfields map[string]interface{}, seDlg *S seDlg.RecvBuf = make([]byte, cliops.buffersize) // retransmissions loop for { - if (seDlg.ProtoId != sgsip.ProtoUDP) || seDlg.Resend { + if (seDlg.ProtoId != sgsip.ProtoUDP && seDlg.State != SIPExerDialogEarly) || seDlg.Resend { SIPExerSetWriteTimeout(seDlg) ret = SIPExerSendBytes(seDlg, wmsg) if ret < 0 {