From vm to cell phone - follow me


#1

I would like to add in my voicemail message “press * to try my cell phone”. I’ve found [macro-vm], and the ‘a’, but I dont know how to change it so it will forward the call to my cell phone.

Any help would be appreciated! Thanks

[macro-vm]
exten => s,1,Macro(user-callerid)
exten => s,2,Goto(s-${ARG2},1)
exten => s-BUSY,1,Macro(get-vmcontext,${ARG1})
exten => s-BUSY,2,Voicemail(b${ARG1}@${VMCONTEXT})   ; Voicemail Busy 
message
exten => s-BUSY,3,Hangup()
exten => _s-.,1,Macro(get-vmcontext,${ARG1})
exten => _s-.,2,Voicemail(u${ARG1}@${VMCONTEXT})     ; Voicemail 
Unavailable message
exten => _s-.,3,Hangup()
exten => o,1,Background(one-moment-please)      ; 0 during vm message 
will hangup
exten => o,2,GotoIf($["foo${FROM_DID}" = 
"foo"]?from-pstn,s,1:from-pstn,${FROM_DID},1)
exten => a,1,Macro(get-vmcontext,${ARG1})
exten => a,2,VoiceMailMain(${ARG1}@${VMCONTEXT})
exten => a,3,Hangup

#2

Ok, well here’s what I’ve found, but now if I press # to reject the call, the caller gets hung up on. I would like it to go back to my voicemail. Thanks!

extensions_custom.conf

[code][custom-findme]
; This is an example Follow me script. We first dial the first number to see
; if they are there and will take the call
exten => 1210,1,Playback(pls-wait-connect-call)
exten => 1210,2,Dial(${OUT_3}/17655555555,30,mM(findme))
exten => 1220,1,Playback(pls-wait-connect-call)
exten => 1220,2,Dial(${OUT_3}/18655555555,30,mM(findme))

[macro-findme]
exten => s,1,wait(1)
exten => s,2,Set(TIMEOUT(response=10))
exten => s,3,Set(TIMEOUT(digit=5))
exten => s,4,Set(MACRO_RESULT=BUSY)
exten => s,5,Background(1-yes-2-no)
exten => s,6,Read(NUMBER,5)
; press ‘1#’ to accept the call and ‘#’ to reject
exten => s,7,Gotoif($[ ${NUMBER} = 1]:8?20)
exten => s,8,Set(MACRO_RESULT=CONTINUE)
exten => s,9,Playback(goodbye)
exten => s,10,Hangup()

; if it makes it to this step that means we want to accept the call
exten => s,20,Set(MACRO_RESULT=)
[/code]

extensions.conf

[quote][macro-vm]


exten => a,1,Macro(get-vmcontext,${ARG1})
exten => a,2,Goto(custom-findme,1${ARG1},1)
exten => a,3,Playback(
exten => a,4,Hangup[/quote]