context sales-HQ { 0 => goto s|HQsaleschoices; 2 => &std-exten-HQ(3204,"SIP"); // Tony 3 => &std-exten-HQ(3111,"SIP"); // Pam 4 => goto salessafety|s|1; // Sales _3XXX => &std-exten-HQ(${EXTEN},"SIP"); * => goto mainmenu-HQ|s|repeat; # => goto s|HQsaleschoices; s => { Set(TIMEOUT(digit)=5); Answer(); Wait(1); HQsaleschoices: Background(HQ-sounds/hq-sales-list); Background(HQ-sounds/previous-menu-press-star); Background(HQ-sounds/menu-again-press-pound); } t => &std-exten-HQ(3111,"SIP"); // timeout goes to Pam i => { Playback(invalid-extension); goto s|HQsaleschoices; } };