Skip to content

Commit

Permalink
sipexer: do not retransmit for non-UDP transport in early dlg state
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed May 25, 2022
1 parent a5ff0c3 commit 2a73107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sipexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a73107

Please sign in to comment.