exten => 222,1,Answer()
the call is answered
exten => 222,2,NoOp(Channel : ${CHANNEL})
This will display in CLI the channel name
exten => 222,3,NoOp(Context : ${CONTEXT})
${CONTEXT} is variable that returns the context name you are calling. Here this will display in CLI test.
exten => 222,4,NoOp(Extensions : ${EXTEN})
${EXTEN} is predefined variable that returns the extension you have dialed
exten => 222,5,NoOp(Date/time call : ${DATETIME})
${DATETIME} is predefined variable that returns the current date and time (DDMMYYYY-HH:MM:SS)
exten => 222,6,Set(new_var=ABC)
New variable named new_var is created and value "ABC" is assigned to it. For more information concerning the variables declaration see Set.
exten => 222,7,NoOp(${new_var})
the value of new_var is displayed in the CLI
exten => 222,8,HangUp()
Hangup() closes the line
