- otherwise the next BYE can be rejected (cherry picked from commit c76ee9facb771d2eae792214e6d4cef39c94a9eb) Conflicts: modules/dialog/dlg_transfer.c
@@ -140,7 +140,11 @@ void dlg_refer_tm_callback(struct cell *t, int type, struct tmcb_params *ps)
goto error;
}
- memset(&uac_r, '\0', sizeof(uac_req_t));
+ memset(&uac_r, 0, sizeof(uac_req_t));
+
+ /* after REFER, the CSeq must be increased */
+ dialog_info->loc_seq.value++;
set_uac_req(&uac_r, &met, NULL, NULL, dialog_info, 0, NULL, NULL);
result = d_tmb.t_request_within(&uac_r);