[macro-stdexten]
exten => s,1,Dial(${ARG1},20)
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Hangup
exten => s,102,Voicemail(b${MACRO_EXTEN})
exten => s,103,Hangup
; DID
exten => 3212069666,1,Macro(stdexten,sip/2002)
results in:
-- Executing VoiceMail("Zap/11-1", "u3212069666") in new stack
Sep 13 10:39:41 WARNING[-1281385552]: app_voicemail.c:1958 leave_voicemail: No entry in voicemail config file for '3212069666'
Other than with AGI, is there a way to rewrite this macro so that it knows to use the RHS of the sip/#### as the voicemail extension?