Follow Me hangs up on caller

OK I figured out a dialplan where the follow me for an extension will not hang up on the caller if refused, it will go to that extensions VM…Vital has always had an issue with their follow me. If you set “prompt callee” it will play a message that you have an incoming call, press 1 to accept or 2 to reject, ufortunately Vital has never had a failover / reject destination, it just hangs up on the caller! without going back to the extensions VM.

To fix this…log into vital pbx with WinSCP, go to the /etc/asterisk/vitalpbx directory, create a file called…extensions_90-custom.conf (90 could be any available number, and inset this …
[T107_FW1019-confirm]
exten => s,100,NoOp(Confirm Call)
same => n,Set(DIALED_NUMBER=${CUT(DIALEDPEERNUMBER,@,1)})
same => n,Set(RECFILE=${ARG1})
same => n,Set(SOUND=${IF($[“${LEN(${RECFILE})}”=“0”]?followme/no-recording:followme/call-from&${RECFILE})})
same => n,GotoIf(${DB_EXISTS(${TENANT}/extensions/${DIALED_NUMBER}/name)}?accept)
same => n,Set(GOSUB_RESULT=CONTINUE)
same => n,Read(CONFIRM,${SOUND}&followme/options,1,1,5)
; same => n,GotoIf($[“${CONFIRM}”=“1”]?:end)
; same => n(accept),NoOp(Accept Call)
; same => n,Return()
; same => n(end),NoOp(Reject Call)
same => n(accept),Set(_GOSUB_RESULT=${IF($[“${CONFIRM}” = “1”]?:${GOSUB_RESULT})})
same => n,Return()

the exten 100 above is the extension number that you wnat to utilize the follow me. Now of course I take NO credit for this, i just found this work-around with a lot of research, but IT WORKS! now if reject the call it will revert to the extensions VM.

1 Like