Module: sip-router
Branch: 3.2
Commit: b651fb89bc797e6d473cb83d2d319b495ca2c847
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b651fb8…
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
(cherry picked from commit 412d4d254474be9d99602ca0f1d4c2aba6e7ffde)
---
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 7aa33fd..e338eb6 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -2074,7 +2074,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)
@@ -2100,7 +2100,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);
}