[asterisk-users] Get second cipher in an extension

Warren Selby wcselby at selbytech.com
Mon Jun 20 14:13:27 CDT 2011


On Mon, Jun 20, 2011 at 2:09 PM, Jonas Kellens <jonas.kellens at telenet.be>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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/ce304b1c/attachment-0001.htm>


More information about the asterisk-users mailing list