Module: sip-router
Branch: master
Commit: 361ab5c90f2a8750bf58eb2921b8a40294dbfa80
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=361ab5c…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Aug 26 21:50:59 2010 +0200
dialog(k): declare variables at function start
Fixes compilation for gcc < 3.0.
---
modules_k/dialog/dlg_req_within.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules_k/dialog/dlg_req_within.c b/modules_k/dialog/dlg_req_within.c
index 7d50926..36e3012 100644
--- a/modules_k/dialog/dlg_req_within.c
+++ b/modules_k/dialog/dlg_req_within.c
@@ -237,6 +237,10 @@ error:
*/
static inline int send_bye(struct dlg_cell * cell, int dir, str *hdrs)
{
+ uac_req_t uac_r;
+ dlg_t* dialog_info;
+ str met = {"BYE", 3};
+ int result;
/* do not send BYE request for non-confirmed dialogs (not supported) */
if (cell->state != DLG_STATE_CONFIRMED_NA && cell->state !=
DLG_STATE_CONFIRMED) {
LM_ERR("terminating non-confirmed dialogs not supported\n");
@@ -244,10 +248,6 @@ static inline int send_bye(struct dlg_cell * cell, int dir, str
*hdrs)
}
/*verify direction*/
- uac_req_t uac_r;
- dlg_t* dialog_info;
- str met = {"BYE", 3};
- int result;
if ((dialog_info = build_dlg_t(cell, dir)) == 0){
LM_ERR("failed to create dlg_t\n");