Help building macro-exte

Hi forum is trying to build a macro for my dialplan this way, when they call to an extension and this busy one that it comes out that he plays the message of busy or to the telephone, when they mark to an extension that doesn’t exist that he plays the message that that extension doesn’t exist and return to the beginning, with the following macro I am not able to make that functionality

exten => s,1,Dial(SIP/${MACRO_EXTEN},38,tT)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(${MACRO_EXTEN}@default,u)
exten => s-BUSY,1,Voicemail(${MACRO_EXTEN}@default,b)
exten => s-CONGESTION,1,Voicemail(${MACRO_EXTEN}@default,b)
exten => s-CHANUNAVAIL,1,Voicemail(${MACRO_EXTEN}@default,u)
exten => a,1,VoicemailMain(${MACRO_EXTEN}@default)

any idea?


Executing [124@hotel:1] Macro(“SIP/130-08322bf8”, “inter|124”) in new stack
– Executing [s@macro-inter:1] Dial(“SIP/130-08322bf8”, “SIP/124|15|tT”) in new stack
– Called 124
– SIP/124-08326b70 is ringing
– SIP/124-08326b70 answered SIP/130-08322bf8
– Executing [130@hotel:1] Macro(“SIP/139-082bebe0”, “inter|130”) in new stack
– Executing [s@macro-inter:1] Dial(“SIP/139-082bebe0”, “SIP/130|15|tT”) in new stack
– Called 130
– SIP/130-08332948 is ringing
– Nobody picked up in 15000 ms
– Executing [s@macro-inter:2] Goto(“SIP/139-082bebe0”, “s-NOANSWER|1”) in new stack
– Goto (macro-inter,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-inter:1] VoiceMail(“SIP/139-082bebe0”, “130@default|u”) in new stack
– <SIP/139-082bebe0> Playing ‘vm-theperson’ (language ‘es’)
– <SIP/139-082bebe0> Playing ‘digits/1’ (language ‘es’)
– <SIP/139-082bebe0> Playing ‘digits/3’ (language ‘es’)
– <SIP/139-082bebe0> Playing ‘digits/0’ (language ‘es’)
– <SIP/139-082bebe0> Playing ‘vm-isunavail’ (language ‘es’)