Module: sip-router
Branch: master
Commit: 412d4d254474be9d99602ca0f1d4c2aba6e7ffde
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=412d4d2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 29 12:53:57 2011 +0100
dispatcher: give faked msg to event routes execuition
- some funtions may return prematurely if no msg exists
- reported by Mino Haluz
---
modules_k/dispatcher/dispatch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/dispatcher/dispatch.c b/modules_k/dispatcher/dispatch.c
index 7547897..2196992 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/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);
}