This issue was discussed 22 months ago here: http://community.freepbx.org/t/double-vm-after-set-ivr-to-retn-after-vm/18685, however a resolution was not apparently reached.
The issue is that when direct dialing an extension from an IVR menu where the "Return to IVR after VM" is checked, the caller gets prompted to leave two VM's before the system will properly exit the voicemail system and return to the IVR from which the call came.
It does not matter if it is a direct dial from a directory or by adding a destination option in the IVR (i.e. option 500 calls extension 500)
Note: the 'review' option is enabled on this VM box (after pressing #, enter 1 to accept, 2 to review, 3 to re-record and 4 to mark as urgent)
TESTS (duplicated from @markcrobinson tests in Aug 2013)
TEST 1
Option 500 within IVR goes to VM-unavail on extension 500
Return to IVR after VM option in the IVR is unchecked
After leaving a message, press # when finished, then 1 to accept this message.
"Your message has been saved..."
System says "Goodbye", as it should
TEST 2
Option 500 in IVR goes to VM-unavail on extension 500
Return to IVR after VM option in the IVR is checked
Leave Message, press #, 1 to accept.
"You have exited the Voicemail system.."
Returns to the IVR, as it should
TEST 3
Option 500 in IVR goes to Extension 500, phone rings, let it go to VM
"The person at 101 is unavailable..."
Leave a message, press#, press 1,
"Your message has been saved..."
"The person at 101 is unavailable..."
Leave a message, press #, press 1,
"Your message has been saved..."
"You have exited the Voicemail system.." returns to IVR
*Duplicate message*
Is there a patch for this? Has someone found a problem in the dial plan?
I have the log file of the third test call.