Module: sip-router
Branch: 3.2
Commit: 17773ed1cbc99f1b61a9920f42e5019336e8b5b3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=17773ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Dec 11 00:02:14 2011 +0100
async: cfg functions cannot be used in branch_route
- that routing block is processing outgoing brnaches, not requests
- reported by Jasmin Schnatterbeck, FS#190
(cherry picked from commit 22278ed608d598ac353b32cd44517e961faa41b3)
---
modules/async/async_mod.c | 4 ++--
modules/async/doc/async_admin.xml | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c
index 17c7179..26e94b7 100644
--- a/modules/async/async_mod.c
+++ b/modules/async/async_mod.c
@@ -56,9 +56,9 @@ struct tm_binds tmb;
static cmd_export_t cmds[]={
{"async_route", (cmd_function)w_async_route, 2, fixup_async_route,
- 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+ 0, REQUEST_ROUTE|FAILURE_ROUTE},
{"async_sleep", (cmd_function)w_async_sleep, 1, fixup_async_sleep,
- 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+ 0, REQUEST_ROUTE|FAILURE_ROUTE},
{0, 0, 0, 0, 0, 0}
};
diff --git a/modules/async/doc/async_admin.xml b/modules/async/doc/async_admin.xml
index 37b9a75..9087f62 100644
--- a/modules/async/doc/async_admin.xml
+++ b/modules/async/doc/async_admin.xml
@@ -112,6 +112,8 @@ modparam("async", "workers", 2)
that the execution of config after resume will end once the
route[routename] is finished.
</para>
+ <para>
+ This function can be used from REQUEST_ROUTE.
<example>
<title><function>async_sleep</function> usage</title>
<programlisting format="linespecific">
@@ -148,6 +150,8 @@ route[RESUME] {
that the execution of config after resume will end once the route block
where async_sleep() is called is finished.
</para>
+ <para>
+ This function can be used from REQUEST_ROUTE.
<example>
<title><function>async_sleep</function> usage</title>
<programlisting format="linespecific">