From 23b022fa338b258eec1117d0c5146396b50a57f1 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Nov 2008 14:34:20 +0000 Subject: [PATCH] add patch from MODAPP-161 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10288 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_limit/mod_limit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index 79980b98b6..28a716b2e5 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -547,7 +547,7 @@ SWITCH_STANDARD_APP(limit_function) 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 @@ SWITCH_STANDARD_APP(limit_function) 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; }