http://www.voip-info.org/wiki-Asterisk+variables
section: substrings
F.
Christian Reelfs <[EMAIL PROTECTED]> writes:
Hi, sorry for this noop question,
but does anybody know how to cut the first digit of a variable?
example:
044612345
should be after cut operation:
44612345
Look at README.variables! It says:
,----
| The format for removing characters from a variable can be expressed as:
|
| ${variable_name[:offset[:length]]}
|
| If you want to remove the first N characters from the string assigned
| to a variable, simply append a colon and the number of characters to
| remove from the beginning of the string to the variable name.
|
| ;Remove the first character of extension, save in "number" variable
| exten => _9X.,1,Set(number=${EXTEN:1})
`----
cu,
Wolfgang
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
___________________________________
Filip Drągowski
Mobile: +48(0)500 054045
E-mail: [EMAIL PROTECTED]
___________________________________
ONTP.NET Tomasz Karczewski
Aleja Wojska Polskiego 33 pokoj 122
65-077 Zielona Góra, Poland
Mobile: +48(0)501 653395
Office: +48(0)68 4141018
Fax: +48(0)68 4141017
http://www.ontp.net
___________________________________
|
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users