Based on a customer request, we needed to have some virtual extensions (Voice Mail enabled) but the problem was that they wanted the incoming calls to extensions to ring 4 times before falling back to voice mail. Since by default FreePBX will get the extension status as UNAVAILABLE and I couldn’t get virtual extension running with this version of freepbx, i did this trick:
add the following context to /etc/asterisk/extensions_custom.conf
[custom-vring] exten => 1,1,Noop(this is for option 1) exten => 1,n,playtones(ring) exten => 1,n,wait(20) exten => 1,n,goto(ivr-12,s,1) exten => 2,1,Noop(this is for option 2) exten => 2,n,playtones(ring) exten => 2,n,wait(20) exten => 2,n,goto(ivr-16,s,1) exten => 3,1,Noop(this is for option 3) exten => 3,n,playtones(ring) exten => 3,n,wait(20) exten => 3,n,goto(ivr-14,s,1)
Then I forwarded the calls to these extensions.