3 posts / 0 new
Last post
etornetworks
etornetworks's picture
Joined: 2017/02/24
Points: 0

I do not see the tl-goto-voicemail-direct script in the star codes.

Can someone post it?

volodya
volodya's picture
Joined: 2017/01/05
Points: 260

Hello,

Description:
Allows to transfer caller to voicemail.
Expects to be invoked through 3 character feature access code (like *96.), and treats the rest of the characters as the mailbox.

Dialplan:
exten => s,1,Wait(3)
exten => s,n,Voicemail(${MACRO_EXTEN:3}@default${TL_DASH}${tenant},u)
exten => s,n,Hangup

Can you please tell how it disappeared?

eeman
eeman's picture
Joined: 2007/11/06
Points: 290

goto-voicemail-direct was a mistake since day 1. It was requested to be implemented because the requestor failed to realize that tl-transfer-to-voicemail ALREADY supported all of those features but the person was too inept to realize the script already existed. By the time I discovered the new script it was too late to get it removed from the release. Its completely not needed. You should be using tl-transfer-to-voicemail. Not only do you get the flexibility of picking HOW MANY digits you want to require (instead of mandating 3), you also get an Operator extension, as well as the ability to Star-out and enter your PIN to check your voicemail.

exten => s,1,GotoIf($["${ARG1}" != ""]?vm)
exten => s,n,Set(ARG1=1)
exten => s,n(vm),VoiceMail(${MACRO_EXTEN:${ARG1}}@default${TL_DASH}${tenant},${ARG2})

exten => o,1,GotoIf($["${ARG3}" = ""]?check)
exten => o,n,Set(OPERATOR=${ARG3})
exten => o,n(check),GotoIf($["${OPERATOR}" != ""]?dial)
exten => o,n,Set(OPERATOR=0)
exten => o,n(dial),Dial(Local/${OPERATOR}@from-inside${TL_DASH}${tenant})

exten => a,1,VoiceMailMain(${MACRO_EXTEN:${ARG1}}@default${TL_DASH}${tenant})
exten => a,n,Hangup

Erik Smith
dCAP
Thirdlane/Asterisk Support available
esmith.bgnv@gmail.com