Hi peeps,
I have this macro:
[macro-extern7]
exten => s,1,GotoIfTime(,,1,jan?afterhours)
exten => s,n,NoOp(${CALLERID(num)})
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Background(winkel_kilomeet_welkom)
exten => s,n,Hangup()
exten => s,n(afterhours),Answer()
exten => s,n,Playback(winkel_kilomeet_outofoffice)
exten => s,n,Wait(1)
exten => s,n,Hangup()
exten => 1,1,Wait(1)
exten => 1,n,Playback(dispatching_welkom)
exten => 1,n,Dial(${RINGROUP1},60,tm)
exten => 1,n,Hangup()
exten => 2,1,Wait(1)
exten => 2,n,Dial(SIP/3900,30,t)
exten => 2,n,Dial(SIP/0499511255,60,t)
exten => 2,n,Hangup()
The “1” or “2” extensions are not being recognized (“Invalid extension”). It does work when I put the lines for the 1 and 2 extension outside of the macro, but then I can only use 1 IVR.
Why is the IVR in the macro not working?
Cheers,
BC