On Mon, Jun 20, 2011 at 2:09 PM, Jonas Kellens <[email protected]>wrote:

> **
> Hello list,
>
> how can I get the second character/cipher of an extension ?
>
> <snip>

I vaguely recall that to get a substring out of an extension variable, you
would use it in the format ${EXTEN:offset:length}, so for your example it
would be

${EXTEN:1:1}

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to