Search:
     
3CX Phone System for Windows Download the Free Edition

Asterisk func fieldqty

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.

Examples

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

 exten => 123,1,Set(Var=hello#you#there#on#the#telephone)
 exten => 123,n,Set(Count=${FIELDQTY(Var|#)})    ; Count ist 6


See also



Created by: murf,Last modification on Sat 24 of Jul, 2010 [05:08 UTC] by JustRumours


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 





Search: