You'll need to do this first:

  switch_channel_t *channel = switch_core_session_get_channel(session); 

Then you have the channel to pass to switch_channel_set_variable.

/b



On Jul 11, 2008, at 2:04 AM, Michael Collins wrote:
Quick follow up: I found a reference to what looks like a great little function.  Is it really this easy?
 
 switch_channel_set_variable(channel,”my_var”,”my_val”);
 
Thanks,
MC

Brian West