It is implemented in apps/app_queue.c
apps/app_queue.c
Available since Asterisk 1.6. @author srt @version $Id$ @since 1.0.0
147148149150151152153154155156157
{ throw new IllegalArgumentException("Penalty must not be negative"); } final ManagerResponse response = server.sendAction( new QueuePenaltyAction(location, penalty, queue.getName())); if (response instanceof ManagerError) { throw new InvalidPenaltyException("Unable to set penalty for '" + location + "' on '" + queue.getName() + "': " + response.getMessage()); }