[asterisk-commits] bmd: branch group/newcdr r117256 - /team/group/newcdr/funcs/func_channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 19 18:26:02 CDT 2008


Author: bmd
Date: Mon May 19 18:26:01 2008
New Revision: 117256

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117256
Log:
added linkedid to func_channel and documented accountcode, peeraccount, and linkedid in the function help

Modified:
    team/group/newcdr/funcs/func_channel.c

Modified: team/group/newcdr/funcs/func_channel.c
URL: http://svn.digium.com/view/asterisk/team/group/newcdr/funcs/func_channel.c?view=diff&rev=117256&r1=117255&r2=117256
==============================================================================
--- team/group/newcdr/funcs/func_channel.c (original)
+++ team/group/newcdr/funcs/func_channel.c Mon May 19 18:26:01 2008
@@ -94,6 +94,8 @@
 		locked_copy_string(chan, buf, chan->accountcode, len);
 	else if (!strcasecmp(data, "peeraccount"))
 		locked_copy_string(chan, buf, chan->peeraccount, len);
+	else if (!strcasecmp(data, "linkedid"))
+		locked_copy_string(chan, buf, chan->linkedid, len);
 	else if (!strcasecmp(data, "transfercapability"))
 		locked_copy_string(chan, buf, transfercapability_table[chan->transfercapability & 0x1f], len);
 	else if (!strcasecmp(data, "callgroup")) {
@@ -176,14 +178,17 @@
 	.syntax = "CHANNEL(item)",
 	.desc = "Gets/set various pieces of information about the channel.\n"
 		"Standard items (provided by all channel technologies) are:\n"
+		"R/W	accountcode        account code used for logging in CDRs and CELs\n"
 		"R/O	audioreadformat    format currently being read\n"
 		"R/O	audionativeformat  format used natively for audio\n"
 		"R/O	audiowriteformat   format currently being written\n"
 		"R/W	callgroup          call groups for call pickup\n"
 		"R/O	channeltype        technology used for channel\n"
 		"R/W	language           language for sounds played\n"
+		"R/O	linkdedid          unique id given to all participating channels in this call\n"
 		"R/W	musicclass         class (from musiconhold.conf) for hold music\n"
 		"R/W	parkinglot         parkinglot for parking\n"
+		"R/W	peeraccount        the account code that this channel is talking to\n"
 		"R/W	rxgain             set rxgain level on channel drivers that support it\n"
 		"R/O	state              state for channel\n"
 		"R/W	tonezone           zone for indications played\n"




More information about the asterisk-commits mailing list