Module: sip-router
Branch: kamailio_3.0
Commit: d457367259419b776f0cde56ef35e9de9b5fffb9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d457367…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu May 6 18:51:45 2010 +0200
dispatcher(k): allow functions from route block
- they do not depend on sip message itself, but script variables
(cherry picked from commit 25680d4bc14a4502e118951873c6da8edfc7e9a7)
---
modules_k/dispatcher/dispatcher.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules_k/dispatcher/dispatcher.c b/modules_k/dispatcher/dispatcher.c
index 5f9901c..8b26be7 100644
--- a/modules_k/dispatcher/dispatcher.c
+++ b/modules_k/dispatcher/dispatcher.c
@@ -140,10 +140,10 @@ static int mi_child_init(void);
static cmd_export_t cmds[]={
{"ds_select_dst", (cmd_function)w_ds_select_dst, 2, fixup_igp_igp, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
{"ds_select_domain", (cmd_function)w_ds_select_domain, 2, fixup_igp_igp, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
- {"ds_next_dst", (cmd_function)w_ds_next_dst, 0, ds_warn_fixup, 0,
FAILURE_ROUTE},
- {"ds_next_domain", (cmd_function)w_ds_next_domain, 0, ds_warn_fixup, 0,
FAILURE_ROUTE},
- {"ds_mark_dst", (cmd_function)w_ds_mark_dst0, 0, ds_warn_fixup, 0,
FAILURE_ROUTE},
- {"ds_mark_dst", (cmd_function)w_ds_mark_dst1, 1, ds_warn_fixup, 0,
FAILURE_ROUTE},
+ {"ds_next_dst", (cmd_function)w_ds_next_dst, 0, ds_warn_fixup, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
+ {"ds_next_domain", (cmd_function)w_ds_next_domain, 0, ds_warn_fixup, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
+ {"ds_mark_dst", (cmd_function)w_ds_mark_dst0, 0, ds_warn_fixup, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
+ {"ds_mark_dst", (cmd_function)w_ds_mark_dst1, 1, ds_warn_fixup, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
{"ds_is_from_list", (cmd_function)w_ds_is_from_list0, 0, 0, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE},
{"ds_is_from_list", (cmd_function)w_ds_is_from_list1, 1, fixup_uint_null, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE},
{0,0,0,0,0,0}