[asterisk-commits] mmichelson: branch mmichelson/features_config r389965 - in /team/mmichelson/f...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 28 16:43:09 CDT 2013


Author: mmichelson
Date: Tue May 28 16:43:06 2013
New Revision: 389965

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389965
Log:
Make the atxfer abort and threeway DTMF sequences configurable.


Modified:
    team/mmichelson/features_config/include/asterisk/features_config.h
    team/mmichelson/features_config/main/features_config.c

Modified: team/mmichelson/features_config/include/asterisk/features_config.h
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/features_config/include/asterisk/features_config.h?view=diff&rev=389965&r1=389964&r2=389965
==============================================================================
--- team/mmichelson/features_config/include/asterisk/features_config.h (original)
+++ team/mmichelson/features_config/include/asterisk/features_config.h Tue May 28 16:43:06 2013
@@ -54,6 +54,10 @@
 		AST_STRING_FIELD(xfersound);
 		/*! Sound to play to transferee when transfer fails */
 		AST_STRING_FIELD(xferfailsound);
+		/*! DTMF sequence used to abort an attempted atxfer */
+		AST_STRING_FIELD(atxferabort);
+		/*! DTMF sequence used to turn an attempted atxfer into a three-way call */
+		AST_STRING_FIELD(atxferthreeway);
 	);
 	/*! Milliseconds allowed between digit presses when dialing transfer destination */
 	unsigned int transferdigittimeout;

Modified: team/mmichelson/features_config/main/features_config.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/features_config/main/features_config.c?view=diff&rev=389965&r1=389964&r2=389965
==============================================================================
--- team/mmichelson/features_config/main/features_config.c (original)
+++ team/mmichelson/features_config/main/features_config.c Tue May 28 16:43:06 2013
@@ -488,6 +488,10 @@
 		ast_string_field_set(xfer, xfersound, value);
 	} else if (!strcasecmp(name, "xferfailsound")) {
 		ast_string_field_set(xfer, xferfailsound, value);
+	} else if (!strcasecmp(name, "atxferabort")) {
+		ast_string_field_set(xfer, atxferabort, value);
+	} else if (!strcasecmp(name, "atxferthreeway")) {
+		ast_string_field_set(xfer, atxferthreeway, value);
 	} else {
 		/* Unrecognized option */
 		res = -1;
@@ -515,6 +519,10 @@
 		ast_copy_string(buf, xfer->xfersound, len);
 	} else if (!strcasecmp(field, "xferfailsound")) {
 		ast_copy_string(buf, xfer->xferfailsound, len);
+	} else if (!strcasecmp(field, "atxferabort")) {
+		ast_copy_string(buf, xfer->atxferabort, len);
+	} else if (!strcasecmp(field, "atxferthreeway")) {
+		ast_copy_string(buf, xfer->atxferthreeway, len);
 	} else {
 		/* Unrecognized option */
 		res = -1;




More information about the asterisk-commits mailing list