Continuing this thread: Follow Me with Prompt Callee Enabled - VitalPBX Community
This dialplan is working and does not cause any issues when the callee answers on their external cellphone, as well as it continues ringing after the initial ringtime without any interruption.
[cos-all-custom]
exten => 100,1,Noop(Testing follow me)
exten => 100,n,Dial(Local/deskphone-100@my-phones&Local/cellphone-100@my-phones,30)
exten => 100,n,Hangup
[my-phones]
exten => deskphone-100,1,Noop(Dialing extension 100)
exten => deskphone-100,n,Dial(SIP/100)
exten => cellphone-100,1,Noop(Calling cellphone of extension 100 and 5 seconds before dialing)
exten => cellphone-100,n,Wait(5)
exten => cellphone-100,n,Dial(local/812XXXXXXX@cos-all,,HhTtU(followme-confirmation))
[followme-confirmation]
exten => s,1,Noop(Entered follow me confirmation sub)
exten => s,n(start),Set(attempts=$[0${attempts}+1])
exten => s,n,Read(accept,followme/no-recording&followme/options,1,,1,5)
exten => s,n,GotoIf($[$["${accept}" != ""] | $["${attempts}" = "3"]]?end:start)
exten => s,n(end),ExecIf($["${accept}" = "1"]?Noop(Connecting Call...):Set(_GOSUB_RESULT=ABORT))
exten => s,n,Return()
Of course, this needs to be adjusted to not prompt for confirmation if the callee is an internal extension as well if the initial ring extension is not part of the follow me list. But this proof of concept is working.
It is quite crucial to get followme working reliable, since many people are using on-call queue setups with external cellphone numbers through followme.
Please let me know if you need any additional information.
Thank you