login | register
Wed 03 of Dec, 2008 [22:53 UTC]

voip-info.org

History

Asterisk func fieldqty

Created by: murf,Last modification on Thu 02 of Oct, 2008 [14:54 UTC] by ViennaAustria

Synopsis

 Count the fields, with an arbitrary delimiter

Description

 FIELDQTY(<varname>,<delim>)
at least on asterisk 1.4.21.2 the parameters must be separated by "|" and not ","


Notes

  • *CLI> show function FIELDQTY

Return value

Returns the resulting count.

Example

 exten => s,1,Set(foo=${FIELDQTY(bigvar,#)})

See also




Comments