This module provides asynchronous operations for handling SIP requests in the configuration file. Async uses t_suspend() and t_continue() from the TM and TMX modules. Note that after invoking the asynchronous operation, the processing 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(...)).
| Parámetro | Tipo | Descripción |
|---|---|---|
| workers | int | 3.2. ms_timer (int) 3.3. return (int) 3.4. mode (int) |
| ms_timer | int | 3.3. return (int) 3.4. mode (int) |
| return | int | 3.4. mode (int) |
| mode | int | 3.1. workers (int) |
| workers | int | Number of worker processes to be started to handle the asynchronous tasks for async_route() and async_sleep(). |
| ms_timer | int | Enables millisecond timer for async_ms_sleep() and async_ms_route() functions. The integer value is the timer resolution in milliseconds. A smaller timer resolution will generate a higher load on the |
| return | int | The value to be returned by async functions on success. It does not apply for async data functions, only for those that suspend the SIP transaction. |
| mode | int | Control if the module should bind (0) to tm or not (1). It may not be needed to use tm functions (e.g., when needing async_tkv_emit() only). |
4.2. async_ms_route(routename, milliseconds) 4.3. async_sleep(seconds) 4.4. async_ms_sleep(milliseconds) 4.5. async_task_route(routename) 4.6. async_task_group_route(routename, groupname) 4.7. async_task_data(routename, data) 4.8. async_task_group_da
4.3. async_sleep(seconds) 4.4. async_ms_sleep(milliseconds) 4.5. async_task_route(routename) 4.6. async_task_group_route(routename, groupname) 4.7. async_task_data(routename, data) 4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv
4.4. async_ms_sleep(milliseconds) 4.5. async_task_route(routename) 4.6. async_task_group_route(routename, groupname) 4.7. async_task_data(routename, data) 4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv_emit(type, key, value)
4.5. async_task_route(routename) 4.6. async_task_group_route(routename, groupname) 4.7. async_task_data(routename, data) 4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv_emit(type, key, value)
4.6. async_task_group_route(routename, groupname) 4.7. async_task_data(routename, data) 4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv_emit(type, key, value)
4.7. async_task_data(routename, data) 4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv_emit(type, key, value)
4.8. async_task_group_data(routename, groupname, data) 4.9. async_tkv_emit(type, key, value)
4.9. async_tkv_emit(type, key, value)
4.1. async_route(routename, seconds)
Simulate a sleep of 'seconds' and then continue the processing of the SIP request with the route[routename]. In case of internal errors, the function returns false, otherwise the function exits the execution of the script at that moment (return 0 beh
Simulate a sleep of 'milliseconds' and then continue the processing of the SIP request with the route[routename]. In case of internal errors, the function returns false, otherwise the function exits the execution of the script at that moment (return
Simulate a sleep of 'seconds' and then continue the processing of SIP request with the next action. Note that the processing continues till the last action in the current route block. Consider using async_route() instead if you want to control better
Similar to async_sleep(), but with a 'milliseconds' parameter. This function works only if the ms_timer parameter has a value greater than 0.
Continue the processing of the SIP request with the route[routename] in one of the processes from first group of core asynchronous framework. The core parameter async_workers has to be set to enable asynchronous framework. The task is executed as soo
Similar to async_task_route(), but allows to specify the name of the group for asynchronous workers. See also 'async_workers_group' core global parameter.
Send the data to an asynchronous task process (in the first group) that executes the route[rountename] and makes the data available via $async(data).
Similar to async_task_route(), but allows to specify the name of the group for asynchronous workers. See also 'async_workers_group' core global parameter.
Emit a type-key-value event.
Copyright © 2011-2016 asipto.com