/* some testing here, we need to get the channel variables */ chan = ast_channel_walk_locked(NULL); if (chan) { ast_log(LOG_NOTICE,"We got a channel structure\n"); dst = pbx_builtin_getvar_helper(chan, "VOCTEL_APPTYPE"); }