I am trying to add an extension that will send the caller directly to a person’s voicemail.
Currently in my extensions.conf I have:
[phone]
exten => 10,1,Macro(voicemail|SIP/10|10)
[macro-voicemail]
exten => s,1(dial),Dial{$ARG1}|${PHONE-VOICEMAIL-SECONDS}|rtj)
exten => s,n,Voicemail(u${ARG2})
exten => s,n,Hangup
exten => s,dial+101,Voicemail(b${ARG2})
exten => s,n,Hangup
So, I get that it is dialing argument #1 which would be SIP/10 for PHONE-VOICEMAIL-SECONDS (which is a global at 24 seconds). Then, it hangs up and dials voicemail using argument #2 for voicemail 10.
So… I added:
exten => 31,1,Macro(directtovm|10)
[macro-voicemail]
exten => s,dial+101,Voicemail(b${ARG2})
exten => s,n,Hangup
in hopes that it would just dial voicemail. but when i try it, i get a fast busy and an error output of app_marco.c:116 macro_exec: Context ‘macro-directtovm’ for macro ‘directtovm’ lacks ‘s’ extension, priority 1
So, what did I miss? I assume I am just being dense.
Thanks