How about "${EXTEN:-1:1}"? "The Definitive Guide" has a special paragraph with the title "*More Advanced Digit Manipulation".* jg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130820/0f2f2fb1/attachment.htm>