How to handle queue exit with digit (EXITCONTEXT) in VitalPBX 4.5?

Hi everyone, I’m using VitalPBX 4.5. I’ve built a custom IVR that routes calls to a queue (Q9999), and I want to implement the following logic:

  • If the caller presses a digit (e.g., 1) while waiting in the queue, the call should exit to a custom context and trigger an AGI script (for callback).
  • If the caller abandons the queue without pressing any digit (timeout or hangup), I also want to trigger the AGI with a different parameter.

I’ve added Set(__EXITCONTEXT=exitqueue) directly in my custom dialplan (extensions__99-custom.conf), and it works perfectly. However, every time I apply changes via the GUI, this line gets overwritten.

I couldn’t find any option in the GUI to enable digit escape or EXITCONTEXT for queues. Is there an official way to preserve this behavior without losing it on reload? Any workaround or best practice would be appreciated.

Thanks in advance!

Inside vitalPbx there is an advanced tab in queues where you can chose an IVR. This is what you are searching for.
On timeout you can go directly to your custom context.

1 Like