StripMSD( )
|
Strips the specified number of leading (most
significant) digits from the current extension
|
StripMSD(count)
Strips the leading count digits
from the channel's associated extension and continues processing at
the next priority for the resulting extension. So, for example, if
priority 1 of extension 5551212 is StripMSD(3), the first
3 digits will be stripped from 5551212 and the next step executed
will be priority 2 of extension 1212. If you switch into an
extension that has no priority n+1 (where n is
the current priority), the PBX will treat it as though the user
dialed an invalid extension.
Always returns 0.
This application is deprecated and has been
replaced with the substring expression
${EXTEN:X:Y}.
exten => 5551212,1,StripMSD(3)
exten => 1212,2,SayDigits(${EXTEN})
; a better way of doing the same thing
exten => 5551234,1,SayDigits(${EXTEN:3})
See Also
StripLSD( ),
README.variables, variable
substring syntax
|