Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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:

VariableValueComments
ORIGINATE_CHANNELLocal/${CALLERID(num)}@queueCallbackIn/nqueueCallbackIn is the name of Context 3
ORIGINATE_CONTEXTqueueCallbackOutqueueCallbackOut is the name of Context 4
ORIGINATE_EXTEN${CALLERID(num)}number to callback
ORIGINATE_PRIORITY1
ORIGINATE_CALLERID${CALLERID(name)} <${CALLERID(num)}>setting the caller's number and name
ORIGINATE_TIMEOUT3600000waiting time (in milliseconds) for operator response before timeout. In the example - 1 hour.
ORIGINATE_ASYNCtrueenabling asynchronous mode. If it's true - the dialplan will continue without waiting for the operator's response.
ORIGINATE_VARIABLESQUEUENAME=${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

...