Project

General

Profile

How to define subroutines or special functions

In order to create sub-routines the following variables are required:

  • membermacro
    calls a function with a predefined value which is executed when a member of the queue answers the call;
    it is used to identify the member who answered the call and display the Caller ID pop-up
    (in case your own CRM is integrated with While1 Voice and While1 Voice Notifier extension is installed!)
membermacro=queue-answer
  • context
    calls a special function; the available function you can call from a queue is queue_keypress.
    the queue_keypress function is executed when a certain key is pressed and it allows the caller to leave the current line;
    the default mapping is made for key 9 and allows you to activate the Voice Mail feature.
context=queue_keypress

Example - how to enable Voice Mail function:

If you want the caller to listen to the message Press 9 to leave a message, follow the below steps:

1. Record the message as a .wav file (E.g.: 9_for_voice_mail.wav)

2. Upload the sound file in PBX/Sound files

3. Access the desired queue and set the variables:

context=queue_keypress
periodic-announce=9_for_voice_mail
eventwhencalled=yes

The eventwhencalled value is set default yes in order to display queue events in the PBX's interface.
E.g.: AgentCalled, AgentDump, AgentConnect, AgentComplete

SEE ALSO: How to use announcements in queues


Available in other languages: RO

Go to top