Browse Source

dispatcher: give faked msg to event routes execuition

- some funtions may return prematurely if no msg exists
- reported by Mino Haluz
Daniel-Constantin Mierla 13 years ago
parent
commit
412d4d2544
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules_k/dispatcher/dispatch.c

+ 2 - 2
modules_k/dispatcher/dispatch.c

@@ -2072,7 +2072,7 @@ static void ds_run_route(sip_msg_t *msg, str *uri, char *route)
 		return;
 	}
 
-	LM_DBG("ds_run_route\n");
+	LM_DBG("ds_run_route event_route[%s]\n", route);
 
 	rt = route_get(&event_rt, route);
 	if (rt < 0 || event_rt.rlist[rt] == NULL)
@@ -2098,7 +2098,7 @@ static void ds_run_route(sip_msg_t *msg, str *uri, char *route)
 	backup_rt = get_route_type();
 	set_route_type(REQUEST_ROUTE);
 	init_run_actions_ctx(&ctx);
-	run_top_route(event_rt.rlist[rt], msg, 0);
+	run_top_route(event_rt.rlist[rt], fmsg, 0);
 	set_route_type(backup_rt);
 }