Now if I dial “abc1111111111” I get response that ‘abc1111111111’ is not found in context. I have ‘1111111111’ in context… thats why I need to remove ‘abc’.
But {EXTEN} is the caller, right? I don’t care the number of the caller… I know how to cut/remove digits from the caller but don’t know from the number B ( called number )
exten => _X.,1,Set(SAFE_EXTEN=${FILTER(0-9,${EXTEN})})
exten => _X.,n,Voicemail(${EXTEN}@VoiceMail)
exten => _X.,n,Playback(Goodbye)
exten => _X.,n,Hangup
also with this
exten => _[a-z]XXXXXXXXXXXX,1,Goto{${EXTEN:3},1)
exten => _XXXXXXXXXXXX,1,Dial(SIP/${EXTEN},1)
exten => _XXXXXXXXXXXX,n,Voicemail(${EXTEN}@VoiceMail)
Still when I try to make test call to ‘asd12345’ I got that this number is not found in the context… number 12345 is in the context.