[general] static=yes writeprotect=no context=inbound ... [macro-mf] exten => s,1,GoSub(mf-tones,${MACRO_EXTEN}0,1) exten => s,n,Playtones(mfst) exten => s,n,Wait,.1 [mf-tones] exten => _X!,1,Playtones(mfkp) exten => _X!,2,Wait,.1 exten => _X!,3,NoOp(${EXTEN}) exten => _X!,4,Playtones(mf${EXTEN:0:1}) exten => _X!,5,Wait,.1 exten => _X!,6,GosubIf($[${LEN(${EXTEN})} != 2]?mf-tones,${EXTEN:1},3:7) exten => _X!,7,Return ... [mainmenu] ; Calling context ; Main menu music exten => s,1,Answer exten => s,2,ResponseTimeout(10) exten => s,n,DigitTimeout(2) exten => s,n,BackGround(buttes/music/intro-pt1) exten => s,n,BackGround(buttes/music/intro-pt2) exten => s,n,Goto(mainmenu,s,3) exten => t,1,Goto(mainmenu,s,2) exten => T,1,Hangup exten => _X.,1,Macro(mf) exten -> _X.,2,Goto(destinations,${EXTEN},1) ... LOG FOLLOWS -- Executing Answer("SIP/tehdely-af400e78", "") in new stack -- Executing ResponseTimeout("SIP/tehdely-af400e78", "10") in new stack -- Set Response Timeout to 10 -- Executing DigitTimeout("SIP/tehdely-af400e78", "2") in new stack -- Set Digit Timeout to 2 -- Executing BackGround("SIP/tehdely-af400e78", "buttes/music/intro-pt1") in new stack -- Playing 'buttes/music/intro-pt1' (language 'en') == CDR updated on SIP/tehdely-af400e78 -- Executing Macro("SIP/tehdely-af400e78", "mf") in new stack -- Executing Gosub("SIP/tehdely-af400e78", "mf-tones|310|1") in new stack == Channel 'SIP/tehdely-af400e78' jumping out of macro 'mf' -- Executing PlayTones("SIP/tehdely-af400e78", "mfkp") in new stack -- Executing Wait("SIP/tehdely-af400e78", ".1") in new stack -- Executing NoOp("SIP/tehdely-af400e78", "310") in new stack -- Executing PlayTones("SIP/tehdely-af400e78", "mf3") in new stack -- Executing Wait("SIP/tehdely-af400e78", ".1") in new stack -- Executing GosubIf("SIP/tehdely-af400e78", "1?mf-tones|10|3:7") in new stack -- Executing NoOp("SIP/tehdely-af400e78", "10") in new stack -- Executing PlayTones("SIP/tehdely-af400e78", "mf1") in new stack -- Executing Wait("SIP/tehdely-af400e78", ".1") in new stack -- Executing GosubIf("SIP/tehdely-af400e78", "0?mf-tones|0|3:7") in new stack -- Executing Return("SIP/tehdely-af400e78", "") in new stack -- Executing Return("SIP/tehdely-af400e78", "") in new stack -- Executing Return("SIP/tehdely-af400e78", "") in new stack -- Executing PlayTones("SIP/tehdely-af400e78", "mfst") in new stack -- Executing Wait("SIP/tehdely-af400e78", ".1") in new stack ... Execution stops here. Dialed digits will trigger extensions in the macro context. This is out of spec.