...
About
Schedule a transfer in the future.
Expand |
---|
title | Click here to expand Table of Contents (click to expand) |
---|
|
Panel |
---|
borderColor | lightgray |
---|
bgColor | #f7f7f7 |
---|
borderWidth | 1 |
---|
borderStyle | dotted |
---|
| Table of Contents |
---|
maxLevelindent | 31em |
---|
outline | true |
---|
indent | 1emexclude | About |
---|
style | none |
---|
printableexclude | false |
---|
|
|
|
...
0. About
...
Usage
...
Schedule a transfer in the future.
Note |
---|
When a scheduled transfer is executed, the session variable last_sched_id is set to the task ID of the transfer. |
sched_cancel
is the only place where last_sched_id
isn't set. Shouldn't it be? last_sched_id
is not documented in Channel Variables Catalog, so should it be? It isn't defined in switch_types.h
, only set in mod_dptools.c
, but as far as I understand, channel variables and session variables are the same.1. Syntax
Code Block |
---|
language | xml |
---|
theme | Emacs |
---|
title | In the dialplan |
---|
|
<action application="sched_transfer" data="[+]<time> <extension>[ [<dialplan> <context>]" |
...
Code Block |
---|
theme | Emacs |
---|
title | As an API call |
---|
|
sched_transfer [+]<time> <uuid> <extension>[ [<dialplan> <context>]" |
Note |
---|
When a scheduled transfer is executed, the session variable "last_sched_id" is set to the taskid of the transfer. |
Example
Parameter | Description | Examples |
---|
[+]<time> | Time in seconds. If used with + then the call will be hung up after that number of seconds. If used without + then the given value is considered the number of seconds since the epoch, 1970-01-01 00:00:00 UTC |
+60 (hang up after 1 minute)
2003336820 (hang up at Jun 25 2033 11:27 AM)
|
<uuid> | The unique identifier (UUID) of the call leg. See Channel Variables. | f2120667-3cd6-42bc-8be6-8cf4207cf6bc |
<extension> |
See Dialplan. | 7519 |
<dialplan> | XML (see XML Dialplan) |
<context> | default |
2. Example
Code Block |
---|
|
<action application="sched_transfer" data="+600 9999 XML default"/> |
...