Module: kamailio
Branch: 5.1
Commit: 20fa560da4868eb454c064baad397975d25c4098
URL:
https://github.com/kamailio/kamailio/commit/20fa560da4868eb454c064baad39797…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-14T11:22:46+01:00
async: docs - some improvements to examples
(cherry picked from commit 15731d40ff1af78bf568d19bdbe4704d35931afd)
---
Modified: src/modules/async/doc/async_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/20fa560da4868eb454c064baad39797…
Patch:
https://github.com/kamailio/kamailio/commit/20fa560da4868eb454c064baad39797…
---
diff --git a/src/modules/async/doc/async_admin.xml
b/src/modules/async/doc/async_admin.xml
index f7de934bdb..d829679b2d 100644
--- a/src/modules/async/doc/async_admin.xml
+++ b/src/modules/async/doc/async_admin.xml
@@ -10,9 +10,9 @@
<!-- Module User's Guide -->
<chapter>
-
+
<title>&adminguide;</title>
-
+
<section>
<title>Overview</title>
<para>
@@ -24,7 +24,7 @@
</para>
<para>
Note that after invoking the asynchronous operation, the processing
- will continue later in another application process. Therefore variables
+ will continue later in another application process. Therefore variables
stored in private memory should not be used, try to use shared memory if you
want to get values after the processing is resumed (e.g., $avp(...),
$xavp(...), $shv(...), htable $sht(...)).
@@ -72,7 +72,7 @@
<title><varname>workers</varname> (int)</title>
<para>
Number of worker processes to be started to handle the asynchronous
- tasks for async_route() and async_sleep().
+ tasks for async_route() and async_sleep().
</para>
<para>
<emphasis>
@@ -124,8 +124,11 @@ modparam("async", "workers", 2)
<title><function>async_route</function> usage</title>
<programlisting format="linespecific">
...
-async_route("RESUME", "4");
-...
+request_route {
+ ...
+ async_route("RESUME", "4");
+ ...
+}
route[RESUME] {
send_reply("404", "Not found");
exit;
@@ -184,7 +187,7 @@ exit;
<title><function>async_workers</function> usage</title>
<programlisting format="linespecific">
...
-; Enable 8 worker processes used by async and other modules
+# Enable 8 worker processes used by async and other modules
async_workers=8
...
</programlisting>
@@ -212,8 +215,11 @@ async_workers=8
<title><function>async_task_route</function> usage</title>
<programlisting format="linespecific">
...
-async_task_route("RESUME");
-...
+request_route {
+ ...
+ async_task_route("RESUME");
+ ...
+}
route[RESUME] {
t_relay();
exit;
@@ -224,4 +230,3 @@ route[RESUME] {
</section>
</section>
</chapter>
-