“context” variable in queues.conf allows a caller waiting in queue to press “any” single digit to get out of queue. I want to know whether it is possible to limit the “any” to a specific key e.g “0”?
if not then can a caller that pressed any digit and it was not “0” and i want to send him back to the queue in the same position he was in?
According to the code, the extension must actually exist for the digit to have any effect.
/* We have an exact match */
if (!ast_goto_if_exists(qe->chan, qe->context, qe->digits, 1)) {
qe->valid_digits = 1;
/* Return 1 on a successful goto */
return 1;
}
return 0;
}
You could just make a context with only a 0 extension, that would make it possible to only press that digit, anything else should leave the caller in the queue.
That’s what I effectively said. The code was there to demonstrate that non-existent extensions would be faulted by the queue application, before any attempt to transfer to them,