Warning |
---|
WarningWARNING: This is alpha version of Callback feature. It is planned to be released soon. |
...
To return to the queue with the music on hold, use the following custom application:
Example |
---|
Queue(${QUEUENAME},C,,,,,,,,${QUEUEPOSITION},default) |
, where "default" is the name of the MoH class.
To return to the queue without music on hold, use the following custom application variant:
Example |
---|
Queue(${QUEUENAME},Cr,,,,,,,,${QUEUEPOSITION}) |
1 - number to create a new call instead of the current one
To execute Originate(), you need to set the following channel variables:
Variable | Value | Comments |
---|---|---|
ORIGINATE_CHANNEL | Local/${CALLERID(num)}@queueCallbackIn/n | queueCallbackIn is the name of Context 3 |
ORIGINATE_CONTEXT | queueCallbackOut | queueCallbackOut is the name of Context 4 |
ORIGINATE_EXTEN | ${CALLERID(num)} | number to callback |
ORIGINATE_PRIORITY | 1 | |
ORIGINATE_CALLERID | ${CALLERID(name)} <${CALLERID(num)}> | setting the caller's number and name |
ORIGINATE_TIMEOUT | 3600000 | waiting time (in milliseconds) for operator response before timeout. In the example - 1 hour. |
ORIGINATE_ASYNC | true | enabling asynchronous mode. If it's true - the dialplan will continue without waiting for the operator's response. |
ORIGINATE_VARIABLES | QUEUENAME=${QUEUENAME},QUEUEPOSITION=${QUEUEPOSITION} | setting in a new channel variables that we need further |
and execute Custom application -> Originate().
...
To return to the queue with the music on hold, use the following application:
Example |
---|
Queue(${QUEUENAME},C,,,,,,,,${QUEUEPOSITION},default) |
, where default is the name of the MoH class.
To return to the queue without music on hold, use the following application variant:
Example |
---|
Queue(${QUEUENAME},Cr,,,,,,,,${QUEUEPOSITION}) |
Context 4: queueCallbackOut
...