All pastes #926 Raw Edit

macro problem

public text v1 · immutable
#926 ·published 2004-09-13 15:01 UTC
rendered paste body
[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?