The "channel" option would chop the channel name at the last '-', which made
it useless for something like a channel transfer from the dialplan. The
"fullchannel" option will return the channel name as-is.
ABE-2218
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@270260
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
<enum name="channel">
<para>The name of the active channel for the Agent (AgentLogin)</para>
</enum>
+ <enum name="fullchannel">
+ <para>The untruncated name of the active channel for the Agent (AgentLogin)</para>
+ </enum>
</enumlist>
</parameter>
</syntax>
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';
}