[svn-commits] mmichelson: branch group/CCSS r213789 - in /team/group/CCSS: apps/ include/as...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Aug 23 16:56:12 CDT 2009


Author: mmichelson
Date: Sun Aug 23 16:56:09 2009
New Revision: 213789

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213789
Log:
Add new AST_CONTROL_CC frame plus a comment for how to handle
it in app_dial

Modified:
    team/group/CCSS/apps/app_dial.c
    team/group/CCSS/include/asterisk/frame.h
    team/group/CCSS/main/channel.c

Modified: team/group/CCSS/apps/app_dial.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/apps/app_dial.c?view=diff&rev=213789&r1=213788&r2=213789
==============================================================================
--- team/group/CCSS/apps/app_dial.c (original)
+++ team/group/CCSS/apps/app_dial.c Sun Aug 23 16:56:09 2009
@@ -1127,6 +1127,17 @@
 				case AST_CONTROL_FLASH:
 					/* Ignore going off hook and flash */
 					break;
+				case AST_CONTROL_CC:
+					if (!ignore_cc) {
+						/* Oh snap! We need to create a new ast_cc_interface
+						 * and add it to the datastore on chan. This one will
+						 * be a "device" type, so it will have stats like:
+						 * - name: Tech/device
+						 * - id: atomic add of the dial_cc_interface_counter
+						 * - parent_id: chan's datastore's dial_parent_id
+						 */
+					}
+					break;
 				case -1:
 					if (!ast_test_flag64(outgoing, OPT_RINGBACK | OPT_MUSICBACK)) {
 						ast_verb(3, "%s stopped sounds\n", c->name);

Modified: team/group/CCSS/include/asterisk/frame.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/include/asterisk/frame.h?view=diff&rev=213789&r1=213788&r2=213789
==============================================================================
--- team/group/CCSS/include/asterisk/frame.h (original)
+++ team/group/CCSS/include/asterisk/frame.h Sun Aug 23 16:56:09 2009
@@ -325,6 +325,7 @@
 	AST_CONTROL_CONNECTED_LINE = 22,/*!< Indicate connected line has changed */
 	AST_CONTROL_REDIRECTING = 23,    /*!< Indicate redirecting id has changed */
 	AST_CONTROL_T38_PARAMETERS = 24, /*! T38 state change request/notification with parameters */
+	AST_CONTROL_CC = 25, /*! Indication that Call completion service is possible */
 };
 
 enum ast_control_t38 {

Modified: team/group/CCSS/main/channel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/channel.c?view=diff&rev=213789&r1=213788&r2=213789
==============================================================================
--- team/group/CCSS/main/channel.c (original)
+++ team/group/CCSS/main/channel.c Sun Aug 23 16:56:09 2009
@@ -3521,6 +3521,7 @@
 	case AST_CONTROL_TRANSFER:
 	case AST_CONTROL_T38_PARAMETERS:
 	case _XXX_AST_CONTROL_T38:
+	case AST_CONTROL_CC:
 		break;
 
 	case AST_CONTROL_CONGESTION:
@@ -3662,6 +3663,7 @@
 	case AST_CONTROL_TRANSFER:
 	case AST_CONTROL_CONNECTED_LINE:
 	case AST_CONTROL_REDIRECTING:
+	case AST_CONTROL_CC:
 		/* Nothing left to do for these. */
 		res = 0;
 		break;




More information about the svn-commits mailing list