Hmmm... As it turns out, the regexp matching and replacement /is/ implemented correctly in asterisk... It just required an escaped backslash (\\) in the zone file. So all works correctly on that front. However the question remains, for the purposes of generic Dial commands that want to insert ${EXTEN}, how do we do it in a a way that doesn't require what protocol is being used? -w