Pattern matching trouble

I have pattern matching in my dialplan:

exten => _1XX,n,Goto(${EXTEN}-${DIALSTATUS},1) exten => _1XX-NOANSWER,1,Voicemail(u${EXTEN:0:3})

-- Executing Goto("SIP/100-7f10", "101-NOANSWER|1") in new stack -- Goto (test,101-NOANSWER,1) Apr 17 14:47:34 WARNING[3137]: pbx.c:2345 __ast_pbx_run: Channel 'SIP/100-7f10' sent into invalid extension '101-NOANSWER' in context 'test', but no invalid handler

But then I use . instead of NOANSWER to goes fine:

exten => _1XX,n,Goto(${EXTEN}-${DIALSTATUS},1) exten => _1XX-.,1,Voicemail(u${EXTEN:0:3})

-- Executing Goto("SIP/100-807d", "101-NOANSWER|1") in new stack -- Goto (test,101-NOANSWER,1) -- Executing VoiceMail("SIP/100-807d", "u101") in new stack

Does anybody know why _1XX-NOANSWER doesn’t match?

what does this show:

exten => _1XX-NOANSWER.,1,Voicemail(u${EXTEN:0:3})

I’m wondering if there are hidden quotes or spaces in it somwhere.

p

[quote=“p_lindheimer”]what does this show:

exten => _1XX-NOANSWER.,1,Voicemail(u${EXTEN:0:3})

I’m wondering if there are hidden quotes or spaces in it somwhere.

p[/quote]
There are no quotes whatever. The problem was that * expected static extensions, so I just used macro like that:

[macro-voicemailafterdial] exten => s,1,Set(LANGUAGE()=en) exten => s,n,Goto(s-${ARG1},1) exten => s-CHANUNAVAIL,1,Noop() exten => s-BUSY,1,Voicemail(b${MACRO_EXTEN:0:3}) exten => s-NOANSWER,1,Voicemail(u${MACRO_EXTEN:0:3})