aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_agi.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-04 19:11:25 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-04 19:11:25 +0000
commit5d7c4bb03e33da0be5f91f34313498f3773ef1e3 (patch)
tree6b28979729f7e9ea49043ca3e54b7889d188209f /apps/app_agi.c
parent3047e6772d30c76768a9cf9cce54714cad2c7f6d (diff)
strlen fixes and don't destroy SIP channels that still have pending things on them (bug #1552 et al)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2890 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-xapps/app_agi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index 14fa27e49..fb73338d0 100755
--- a/apps/app_agi.c
+++ b/apps/app_agi.c
@@ -36,6 +36,7 @@
#include <asterisk/app.h>
#include <asterisk/dsp.h>
#include <asterisk/musiconhold.h>
+#include <asterisk/utils.h>
#include "../asterisk.h"
#include "../astconf.h"
@@ -1465,7 +1466,7 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
int pid;
char *stringp;
AGI agi;
- if (!data || !strlen(data)) {
+ if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "AGI requires an argument (script)\n");
return -1;
}