FollowMe is a dialplan application which can be used to implement the following scenario:
- Call comes in, outside caller dials "100"
- Desk phone for user Joe rings. No answer
- Joe's house phone rings.
- Joe's wife picks up and hears a voice "Please press any key to accept a call for extension 100."
- Joe's wife hangs up.
- Joe's cell phone rings.
- Joe picks up and hears a voice "Please press any key to accept a call for extension 100."
- Joe presses 1 and says "Hello this is Joe".
Alternately, in the penultimate step
- Cell voice mail picks up.
- Voice says "Please press any key to accept a call for extension 100". No keys pressed since it's a voice mail
- Call is routed to Asterisk voicemail.
The syntax for using the FollowMe Application in extensions.conf is:
FollowMe(followmeid|options)
Options:
s - Playback the incoming status message prior to starting the follow-me step(s)
a - Record the caller's name so it can be announced to the callee on each step
n - Playback the unreachable status message if we've run out of steps to reach the
or the callee has elected not to be reachable.
The a follow-me number to call is specified in followme.conf. You can specify as many of these numbers as you like. They will be dialed in the order that you specify them in the config file.
A sample config for implementing this feature for the extension 4411 would be:
extensions.conf:
exten => _4411,1,Answer
exten => _4411,2,Dial(SIP/${EXTEN},12,t)
exten => _4411,3,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?:4:5)
exten => _4411,4,Followme(${EXTEN})
exten => _4411,5,VoiceMail(u${EXTEN})
exten => _4411,6,Hangup
followme.conf:
[4411]
musicclass=>default
context=>tutorial
call-from-prompt=>followme/call-from
followme-norecording-prompt=>followme/no-recording
followme-options-prompt=>followme/options
followme-pls-hold-prompt=>followme/pls-hold-while-try
followme-status-prompt=>followme/status
followme-sorry-prompt=>followme/sorry
number=>4410,30
number=>4420,30
takecall=>1
declinecall=>2