FreePBX 14.0.1.36 (official Distro) on Asterisk 13
In our old implementation of Asterisk stand-alone (v 1.8), when an employee would leave the company, we would just change their extension to dial someone else’s extension in the dialplan so that it looked something like this:
Employee assigned ext 338 leaves & we fwd phone to their manager who has ext 332:
exten => 338,1(lbl_3xx-extensions_11),Gosub(oneline,s,1(SIP/332,332))
…
;Dial an extension for 20 seconds, then drop to voicemail
[oneline]
exten => s,1,GotoIf(${ARG2}?:lbl_macro-oneline_0)
exten => s,n,Dial(${ARG1},20,rtT)
exten => s,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_macro-oneline_1:)
exten => s,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_macro-oneline_1:)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?lbl_macro-oneline_2:)
exten => s,n(lbl_macro-oneline_1),VoiceMail(${ARG2}@default,u)
exten => s,n,Hangup()
exten => s,n(lbl_macro-oneline_2),VoiceMail(${ARG2}@default,b)
exten => s,n,Hangup()
exten => s,n(lbl_macro-oneline_0),Dial(${ARG1},20,rtT)
[macro-oneline]
exten => s,1,Gosub(oneline,s,1(${ARG1},${ARG2}))
I’ve researched this a bit and haven’t found a way yet to do the same thing. We haven’t opened up the UCP to our users yet (just went live with this new server yesterday), but if that’s the best way we can do that. Any recommendations would be much appreciated!