[asterisk-users] Cut off last character of EXTEN

Pat Collins drdialtone at optonline.net
Tue Aug 20 06:57:18 CDT 2013


From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steven Howes
Sent: Tuesday, August 20, 2013 7:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Cut off last character of EXTEN

 

 

On 20 Aug 2013, at 12:25, Pat Collins wrote: 

Here ya go:

 

112233# use ${EXTEN:0:6})

123# use ${EXTEN:0:3})

123456789# use ${EXTEN:0:9})

 

I think 'variable length' implied 'unknown length'...

 

S

 

Yea, I realized that after I replied....

Got ahead of myself again.

That was the only way I was able to get rid of the '#' tho....

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130820/8f42ed43/attachment.htm>


More information about the asterisk-users mailing list