Hi!
I have several sources for incoming extensions. They may be signalled as
xxxxxx
0720 xxxxxx
0123 0720 xxxxxx
1001 xxxxxx
1001 0720 xxxxxx
1001 0123 0720 xxxxxx
So my idea is, to normalize all incoming extensions before processing them any further. Something like
exten => _1001.,1,Set(EXTEN=${EXTEN:4}
exten => _01230720.,1,Set(EXTEN=${EXTEN:8}
exten => _0720.,1,Set(EXTEN=${EXTEN:4}
or
exten => _1001.,1,StripMSD(4)
exten => _01230720.,1,StripMSD( 8 )
exten => _0720.,1,StripMSD(4)
But neither solution works. If I set EXTEN, it’s obviously not the extension that is being processed. The Solution with StripMSD simply does nothing. The call goes nowhere.
I believe I need a function between StripMSD() and WaitExten().
If somebody has an idea…?
Thank you,
Thomas