Excerpt |
---|
In this article we'll see how to use the callback function on a queue without taking the caller out of the queue. |
...
To prevent the caller is released and back again in the queue, we can use the "ExitWithKey" queue option.
It allows the caller to exit from a queue with a key (a single digit) for further action.
Using this option we built a different IVR configuration:
...
- The Menu block audio file ("...press 1 for callback..") becomes the queue periodic announce in the QUEUE General Settings (the audio file must be previously uploaded in the audio section)
- Set a new QUEUE context, in the QUEUE Advanced Settings (e.g "callback")
Define the new context in the Asterisk configuration file /etc/asterisk/extensions_xcally_custom.conf
Code Block language text theme Confluence title /etc/asterisk/extensions_xcally_custom.conf [from-sip-custom] [callback] exten => _1,1,NoOp("TO CALLBACK")
With this row we allow only the digit 1 (_1) for the context "callback"Save the file and reload the Asterisk configuration
Code Block language c# theme Emacs [root@localhost ~]# asterisk -r localhost*CLI> reload
Tip |
---|
With this configuration, the caller goesout ofto thequeueCALLBACK block only when:
|
Page Properties | ||
---|---|---|
| ||
|