Asterisk setinterfacevar. I am not sure of the situation in asterisk 1.

Asterisk setinterfacevar. Evaluates a channel expression.