Get Full Variable

Since 1.2.0 AGI Commands Found this useful? Upvote it. ×

Evaluates a channel expression

Last reviewed 2026-04-14

get full variable expression channelname
Description

Evaluates the given expression against the channel specified by channelname, or the current channel if channelname is not provided.

Unlike GET VARIABLE, the expression is processed in a manner similar to dialplan evaluation, allowing complex and built-in variables to be accessed, e.g. The time is ${EPOCH}

Returns 0 if no channel matching channelname exists, 1 otherwise.

Example return code: 200 result=1 (The time is 1578493800)

Arguments
  • expression required
  • channelname

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.