Re-entering Queue in same position after keypress

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Re-entering Queue in same position after keypress

Postby mcurry7 » Thu Sep 24, 2015 11:16 am

Hello,

I am using version 11.19.0 and am trying to make it so when a caller in a queue presses a key other than the one that has been specified as the exit key it ignores the input entirely. that is the ideal situation. Right now however it is set up so that if a key other that the designated one is pressed it will go back to the queue and reset the position of the caller. Here is an example of how the key press is designated and handled currently:

Code: Select all
exten => #,1,Set(ENTERED_EXIT_KEY=${EXTEN})
  same => n,Goto(exit,1)

exten => exit,1,NoOp(Exiting Queue due to ${ENTERED_EXIT_KEY} press for queue ${QUEUE_NAME})
    same => n,ExecIf($[ "${EXIT_APP}" = "" || "${EXIT_KEY}" = "" ]?GoTo(f-queue,s,1))
  same => n,ExecIf($[ "${EXIT_KEY}" != "${ENTERED_EXIT_KEY}" ]?GoTo(f-queue,s,1))
mcurry7
Newsterisk
 
Posts: 1
Joined: Thu Sep 24, 2015 10:57 am

Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 26 guests