diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index d054bbe9e6..02c1753884 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -159,6 +159,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
The name of the active channel for the Agent (AgentLogin)
+
+ The untruncated name of the active channel for the Agent (AgentLogin)
+
@@ -2291,6 +2294,10 @@ static int function_agent(struct ast_channel *chan, const char *cmd, char *data,
if (tmp)
*tmp = '\0';
}
+ } else if (!strcasecmp(args.item, "fullchannel")) {
+ if (agent->chan) {
+ ast_copy_string(buf, agent->chan->name, len);
+ }
} else if (!strcasecmp(args.item, "exten")) {
buf[0] = '\0';
}