[Freeswitch-svn] [commit] r11987 - freeswitch/trunk/src/mod/applications/mod_limit

FreeSWITCH SVN mrene at freeswitch.org
Fri Feb 13 09:10:51 PST 2009


Author: mrene
Date: Fri Feb 13 11:10:51 2009
New Revision: 11987

Log:
doh

Modified:
   freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c

Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	Fri Feb 13 11:10:51 2009
@@ -703,6 +703,7 @@
 
 #define LIMIT_USAGE "<realm> <id> [<max> [number  [dialplan [context]]]]"
 #define LIMIT_DESC "limit access to a resource and transfer to an extension if the limit is exceeded"
+static char *limit_def_xfer_exten = "limit_exceeded";
 
 SWITCH_STANDARD_APP(limit_function)
 {
@@ -747,7 +748,7 @@
 	if (argc >= 4) {
 		xfer_exten = argv[3];
 	} else {
-		xfer_exten = NULL;
+		xfer_exten = limit_def_xfer_exten;
 	}
 
 	
@@ -763,7 +764,7 @@
 	switch_safe_free(sql);
 	got = atoi(buf);
 
-	if (max >= 0 && xfer_exten && got + 1 > max) {
+	if (max >= 0 && got + 1 > max) {
 		switch_ivr_session_transfer(session, xfer_exten, argv[4], argv[5]);
 		goto done;
 	}



More information about the Freeswitch-svn mailing list