Browse code

dispatcher(k): allow functions from route block

- they do not depend on sip message itself, but script variables
(cherry picked from commit 25680d4bc14a4502e118951873c6da8edfc7e9a7)

Daniel-Constantin Mierla authored on 06/05/2010 16:51:45 • Andrei Pelinescu-Onciul committed on 28/05/2010 18:46:09
Showing 1 changed files
... ...
@@ -140,10 +140,10 @@ static int mi_child_init(void);
140 140
 static cmd_export_t cmds[]={
141 141
 	{"ds_select_dst",    (cmd_function)w_ds_select_dst,    2, fixup_igp_igp, 0, REQUEST_ROUTE|FAILURE_ROUTE},
142 142
 	{"ds_select_domain", (cmd_function)w_ds_select_domain, 2, fixup_igp_igp, 0, REQUEST_ROUTE|FAILURE_ROUTE},
143
-	{"ds_next_dst",      (cmd_function)w_ds_next_dst,      0, ds_warn_fixup, 0, FAILURE_ROUTE},
144
-	{"ds_next_domain",   (cmd_function)w_ds_next_domain,   0, ds_warn_fixup, 0, FAILURE_ROUTE},
145
-	{"ds_mark_dst",      (cmd_function)w_ds_mark_dst0,     0, ds_warn_fixup, 0, FAILURE_ROUTE},
146
-	{"ds_mark_dst",      (cmd_function)w_ds_mark_dst1,     1, ds_warn_fixup, 0, FAILURE_ROUTE},
143
+	{"ds_next_dst",      (cmd_function)w_ds_next_dst,      0, ds_warn_fixup, 0, REQUEST_ROUTE|FAILURE_ROUTE},
144
+	{"ds_next_domain",   (cmd_function)w_ds_next_domain,   0, ds_warn_fixup, 0, REQUEST_ROUTE|FAILURE_ROUTE},
145
+	{"ds_mark_dst",      (cmd_function)w_ds_mark_dst0,     0, ds_warn_fixup, 0, REQUEST_ROUTE|FAILURE_ROUTE},
146
+	{"ds_mark_dst",      (cmd_function)w_ds_mark_dst1,     1, ds_warn_fixup, 0, REQUEST_ROUTE|FAILURE_ROUTE},
147 147
 	{"ds_is_from_list",  (cmd_function)w_ds_is_from_list0, 0, 0, 0, REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE},
148 148
 	{"ds_is_from_list",  (cmd_function)w_ds_is_from_list1, 1, fixup_uint_null, 0, REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE},
149 149
 	{0,0,0,0,0,0}