Update to AGI(channel, command, commandId) to set the correct channel variables

Hello Marcelo,

I believe this pull request (my first so beare with me) fixes the AGI command action. At least I was able to get it to work with these changes.