Asterisk Variable Manipulation: Substrings, Math and Caller ID Rewriting
Most real dialplan work is string surgery. Strip a prefix, add a country code, extract a DID from a header, normalise a caller ID. Asterisk's variable syntax handles all of it, but the substring notat