There was a post in the ‘wiki’ for an
application to provide an outcall when there is a voicemail is left on
asterisk. I am having a problem
that this application will only work if the caller presses the pound sign at
the end of recording. As most people just hang up, this application
isn’t working. Can any offer
suggestions to accomplish this out call?
http://voip-info.org/wiki-Asterisk+tips+callback
[macro-leave_voicemail]
; Leave a voicemail message, then do post-processing.
; o Call configured phones, with an announcement that a message
; is waiting, and the option to listen to the voicemail(s)
; ${ARG1} = u or b for 'unavailable' or 'busy' message
; ${ARG2} = mailbox
;
${ARG3} = Call user flag
; USAGE:
; exten => s,15,Macro(leave_voicemail,u,310,1)
exten => s,1,ResponseTimeout(30)
exten => s,2,Voicemail2(${ARG1}${ARG2})
exten
=> s,3,GoToIf($[${ARG3} = 0]?s|5)
exten => s,4,system(${SCRIPTS_DIR}/voicemail_callback.sh ${ARG2})
exten => s,5,NoOp
exten => h,1,GoToIf($<A&NBSP;CLASS='WIKI'&NBSP;&NBSP;HREF=''>${ARG3} = 0?h|3)
exten => h,2,system(${SCRIPTS_DIR}/voicemail_callback.sh ${ARG2})
exten => h,3,NoOp
exten => t,1,GoToIf($<A&NBSP;CLASS='WIKI'&NBSP;&NBSP;HREF=''>${ARG3} = 0?t|3)
exten => t,2,system(${SCRIPTS_DIR}/voicemail_callback.sh ${ARG2})
exten => t,3,NoOp
Thanks,
Kevin