IVR Return on Invalid No seems not to work

Hi,

FreePBX 17 & Asterisk 20.
I’ve the below setup.
Inbound route > IVR (Return on Invalid - No) > Queue.

It looks like the option Return on Invalid set to No is not working as expected.
I’ve Invalid/Unavail agents on the queue and my test calls are returning to the IVR instead of going to the Final Destination queue… If I put valida agents in de Queue it works good so the agents are ringing.

Any idea? :slight_smile:

Thanks!

Found the solution.
Actually in this case the FollowMe on the extension is Enabled and there seems to be a bug in the core module (dialplan macro-blkvm-setifempty). This ‘macro’ should return the built-in variable GOSUB_RETVAL but it’s being reset by Return(). The return should be: Return(${GOSUB_RETVAL}) instead.

The ‘macro’ macro-blkvm-check is also returning this built-in variable but in the correct way :slight_smile: