[asterisk-users] Get second cipher in an extension

Eric Wieling EWieling at nyigc.com
Mon Jun 20 14:13:08 CDT 2011



> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Jonas Kellens
> Sent: Monday, June 20, 2011 3:09 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] Get second cipher in an extension
>
> Hello list,
>
> how can I get the second character/cipher of an extension ?
>
> If I have : exten => 12345,n,NoOP()
>
> How can I get "2" ?
>
> If I have : exten => 7877777,n,NoOP()
>
> How can I get "8" ?

https://wiki.asterisk.org/wiki/display/AST/Selecting+Characters+from+Variables



More information about the asterisk-users mailing list