[asterisk-users] dial from voicemail

Doug Lytle support at drdos.info
Tue May 3 13:30:42 CDT 2011


Kelly Opal wrote:
> I would like my customers to have a choice of dialing 1 to get my cell
> phone while in voicemail
I use a combination of the follow me feature, along with the 'a' extension:


[s-NOANSWER]

exten => s,1,Gosub(mailbox_exist,s,1)
exten => s,n,Set(VoiceMailCount=${VMCOUNT(${ARG1}@sip)})
exten => s,n,Voicemail(${ARG1}@sip|u)

exten => h,1,Set(NewVoiceMailCount=${VMCOUNT(${ARG1}@sip)})
exten => h,n,GotoIf($["${NewVoiceMailCount}" > "${VoiceMailCount}"]?5:6)
exten => h,n,Hangup()

exten => a,1,Followme(${ARG1}|san)
exten => a,n,Voicemail(${ARG1}@sip|u)


-- 

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."




More information about the asterisk-users mailing list