login | register
Thu 04 of Dec, 2008 [01:46 UTC]

voip-info.org

Discuss [0] History

Asterisk func set

Created by: murf,Last modification on Wed 18 of Jan, 2006 [06:47 UTC] by Corydon76

Synopsis:

 SET assigns a value to a channel variable

Description:

 ${SET(<varname>=[<value>])}

Notes


  • Might be useful to assign the value of a complex expression to a variable, while still using that value to evaluate still another expression.

Return value

Returns the value set

Example

 Set(one=${SET(two=${SET(three=${SET(four=0)})})})

Sets variables ${one}, ${two}, ${three}, and ${four} to 0.

See also



Comments