From d059925b6e64525e773d8d136361911ec27058be Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 13 Feb 2009 17:09:52 +0000 Subject: [PATCH] move gdbinit to support-d git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11986 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_limit/mod_limit.c | 5 ++--- scripts/gdbinit => support-d/.gdbinit | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename scripts/gdbinit => support-d/.gdbinit (100%) diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index 2d221790d4..15dadf80fe 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -703,7 +703,6 @@ SWITCH_STANDARD_APP(group_function) #define LIMIT_USAGE " [ [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) { @@ -748,7 +747,7 @@ SWITCH_STANDARD_APP(limit_function) if (argc >= 4) { xfer_exten = argv[3]; } else { - xfer_exten = limit_def_xfer_exten; + xfer_exten = NULL; } @@ -764,7 +763,7 @@ SWITCH_STANDARD_APP(limit_function) switch_safe_free(sql); got = atoi(buf); - if (max >= 0 && got + 1 > max) { + if (max >= 0 && xfer_exten && got + 1 > max) { switch_ivr_session_transfer(session, xfer_exten, argv[4], argv[5]); goto done; } diff --git a/scripts/gdbinit b/support-d/.gdbinit similarity index 100% rename from scripts/gdbinit rename to support-d/.gdbinit