Module: sip-router
Branch: 4.0
Commit: 46db36aedbe0aaee1dab3a5e57f8ab7e37106ded
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=46db36a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 31 12:35:56 2014 +0100
dialog: increase local cseq after REFER generated by dlg_bridge
- otherwise the next BYE can be rejected
(cherry picked from commit c76ee9facb771d2eae792214e6d4cef39c94a9eb)
Conflicts:
modules/dialog/dlg_transfer.c
---
modules/dialog/dlg_transfer.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/dialog/dlg_transfer.c b/modules/dialog/dlg_transfer.c
index f4837bf..a70f44c 100644
--- a/modules/dialog/dlg_transfer.c
+++ b/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);