[asterisk-commits] tilghman: branch 1.6.2 r294571 - /branches/1.6.2/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 10 17:17:15 CST 2010


Author: tilghman
Date: Wed Nov 10 17:16:58 2010
New Revision: 294571

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=294571
Log:
Actually pay attention to documented settings in features.conf.

(closes issue #16757)
 Reported by: voxter
 Patches: 
       20101012__issue16757.diff.txt uploaded by tilghman (license 14)
 
Review: https://reviewboard.asterisk.org/r/994/

Modified:
    branches/1.6.2/main/features.c

Modified: branches/1.6.2/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/features.c?view=diff&rev=294571&r1=294570&r2=294571
==============================================================================
--- branches/1.6.2/main/features.c (original)
+++ branches/1.6.2/main/features.c Wed Nov 10 17:16:58 2010
@@ -3680,6 +3680,17 @@
 			}
 		} else if (!strcasecmp(confvar->name, "findslot")) {
 			parkinglot->parkfindnext = (!strcasecmp(confvar->value, "next"));
+		} else if (!strcasecmp(confvar->name, "parkedcalltransfers") ||
+				!strcasecmp(confvar->name, "parkedcallreparking") ||
+				!strcasecmp(confvar->name, "parkedcallhangup") ||
+				!strcasecmp(confvar->name, "parkedcallrecording")) {
+			if (!strcasecmp(confvar->value, "both")) {
+				parkinglot->parkedcalltransfers = AST_FEATURE_FLAG_BYBOTH;
+			} else if (!strcasecmp(confvar->value, "caller")) {
+				parkinglot->parkedcalltransfers = AST_FEATURE_FLAG_BYCALLER;
+			} else if (!strcasecmp(confvar->value, "callee")) {
+				parkinglot->parkedcalltransfers = AST_FEATURE_FLAG_BYCALLEE;
+			}
 		}
 		confvar = confvar->next;
 	}




More information about the asterisk-commits mailing list