Versions Compared

Key

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

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:

...

  1. 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)




  2. Set a new QUEUE context, in the QUEUE Advanced Settings (e.g "callback")




  3. Define the new context in the Asterisk configuration file /etc/asterisk/extensions_xcally_custom.conf

    Code Block
    languagetext
    themeConfluence
    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"

  4. Save the file and reload the Asterisk configuration

    Code Block
    languagec#
    themeEmacs
    [root@localhost ~]# asterisk -r
     
    localhost*CLI> reload



Tip
With this configuration, the caller goes
out of
to the
queue
CALLBACK block only when:
  • reach the queue timeout
  • press the digit 1

 

 

 

Page Properties
hiddentrue
Related issues