Skip to content

Commit

Permalink
Merge pull request #1322 from nikbyte/master
Browse files Browse the repository at this point in the history
Allow ds_select_dst and ds_select_domain in branch route
(cherry picked from commit 2168cfa)
  • Loading branch information
bogdan-iancu committed Mar 30, 2018
1 parent acb8aa4 commit 89ffe9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/dispatcher/README
Expand Up @@ -771,7 +771,7 @@ modparam("dispatcher", "max_freeswitch_weight", 1000)
position of each dispatching id in the list: first one has the
higher priority, followed by the second one and so on.

This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
This function can be used from REQUEST_ROUTE, BRANCH_ROUTE and FAILURE_ROUTE.

Example 1.33. ds_select_dst usage
...
Expand Down Expand Up @@ -802,7 +802,7 @@ ds_select_dst("$var(part_name):$var(setid)","$var(alg)","$var(flags)");
can use 'ds_next_domain()' to use next address to achieve
serial forking to all possible destinations.

This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
This function can be used from REQUEST_ROUTE, BRANCH_ROUTE and FAILURE_ROUTE.

1.4.3. ds_next_dst([partition_name])

Expand Down
8 changes: 4 additions & 4 deletions modules/dispatcher/dispatcher.c
Expand Up @@ -195,16 +195,16 @@ static int set_probing_list(unsigned int type, void * val);
static cmd_export_t cmds[]={
{"ds_select_dst", (cmd_function)w_ds_select_dst, 2,
ds_select_fixup, NULL,
REQUEST_ROUTE|FAILURE_ROUTE},
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE},
{"ds_select_dst", (cmd_function)w_ds_select_dst_limited, 3,
ds_select_fixup, NULL,
REQUEST_ROUTE|FAILURE_ROUTE},
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE},
{"ds_select_domain", (cmd_function)w_ds_select_domain, 2,
ds_select_fixup, NULL,
REQUEST_ROUTE|FAILURE_ROUTE},
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE},
{"ds_select_domain", (cmd_function)w_ds_select_domain_limited, 3,
ds_select_fixup, NULL,
REQUEST_ROUTE|FAILURE_ROUTE},
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE},
{"ds_next_dst", (cmd_function)w_ds_next_dst, 0,
NULL , NULL,
REQUEST_ROUTE|FAILURE_ROUTE},
Expand Down
4 changes: 2 additions & 2 deletions modules/dispatcher/doc/dispatcher_admin.xml
Expand Up @@ -1014,7 +1014,7 @@ modparam("dispatcher", "max_freeswitch_weight", 1000)
first one has the higher priority, followed by the second one and so on.
</para>
<para>
This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
This function can be used from REQUEST_ROUTE, BRANCH_ROUTE and FAILURE_ROUTE.
</para>
<example>
<title><function>ds_select_dst</function> usage</title>
Expand Down Expand Up @@ -1054,7 +1054,7 @@ ds_select_dst("$var(part_name):$var(setid)","$var(alg)","$var(flags)");
destinations.
</para>
<para>
This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
This function can be used from REQUEST_ROUTE, BRANCH_ROUTE and FAILURE_ROUTE.
</para>
</section>
<section>
Expand Down

0 comments on commit 89ffe9f

Please sign in to comment.