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

Freeswitch SVN anthm at freeswitch.org
Fri Nov 7 11:42:42 PST 2008


Author: anthm
Date: Fri Nov  7 09:34:20 2008
New Revision: 10288

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

Log:
add patch from MODAPP-161

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 Nov  7 09:34:20 2008
@@ -547,7 +547,7 @@
 	id = argv[1];
 	max = atoi(argv[2]);
 
-	if (argc == 4) {
+	if (argc >= 4) {
 		xfer_exten = argv[3];
 	} else {
 		xfer_exten = limit_def_xfer_exten;
@@ -568,7 +568,7 @@
 	got = atoi(buf);
 
 	if (got + 1 > max) {
-		switch_ivr_session_transfer(session, xfer_exten, NULL, NULL);
+		switch_ivr_session_transfer(session, xfer_exten, argv[4], argv[5]);
 		goto done;
 	}
 



More information about the Freeswitch-svn mailing list