aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_stack.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-19 13:03:50 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-19 13:03:50 +0000
commitf3bcb6129e8fab018b544d6982b7e4dd51a184c2 (patch)
tree129d0fe7f186a9c7ca0a8c8f0ffb287de2e736c2 /apps/app_stack.c
parent51e9bc3e570340dbe63a0bdac28f99d8e529417c (diff)
Merged revisions 157706 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r157706 | kpfleming | 2008-11-19 06:42:19 -0600 (Wed, 19 Nov 2008) | 5 lines make some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines also, move UPGRADE.txt to UPGRADE-1.6.txt and make the new UPGRADE.txt contain information about upgrading between Asterisk 1.6 releases ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@157719 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r--apps/app_stack.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c
index 9888571a9..a5763a9b2 100644
--- a/apps/app_stack.c
+++ b/apps/app_stack.c
@@ -409,11 +409,11 @@ static int handle_gosub(struct ast_channel *chan, AGI *agi, int argc, char **arg
/* Lookup the priority label */
if ((priority = ast_findlabel_extension(chan, argv[1], argv[2], argv[3], chan->cid.cid_num)) < 0) {
ast_log(LOG_ERROR, "Priority '%s' not found in '%s@%s'\n", argv[3], argv[2], argv[1]);
- ast_agi_fdprintf(chan, agi->fd, "200 result=-1 Gosub label not found\n");
+ ast_agi_send(agi->fd, chan, "200 result=-1 Gosub label not found\n");
return RESULT_FAILURE;
}
} else if (!ast_exists_extension(chan, argv[1], argv[2], priority, chan->cid.cid_num)) {
- ast_agi_fdprintf(chan, agi->fd, "200 result=-1 Gosub label not found\n");
+ ast_agi_send(agi->fd, chan, "200 result=-1 Gosub label not found\n");
return RESULT_FAILURE;
}
@@ -424,7 +424,7 @@ static int handle_gosub(struct ast_channel *chan, AGI *agi, int argc, char **arg
if (!(theapp = pbx_findapp("Gosub"))) {
ast_log(LOG_ERROR, "Gosub() cannot be found in the list of loaded applications\n");
- ast_agi_fdprintf(chan, agi->fd, "503 result=-2 Gosub is not loaded\n");
+ ast_agi_send(agi->fd, chan, "503 result=-2 Gosub is not loaded\n");
return RESULT_FAILURE;
}
@@ -458,19 +458,19 @@ static int handle_gosub(struct ast_channel *chan, AGI *agi, int argc, char **arg
struct ast_pbx *pbx = chan->pbx;
/* Suppress warning about PBX already existing */
chan->pbx = NULL;
- ast_agi_fdprintf(chan, agi->fd, "100 result=0 Trying...\n");
+ ast_agi_send(agi->fd, chan, "100 result=0 Trying...\n");
ast_pbx_run(chan);
- ast_agi_fdprintf(chan, agi->fd, "200 result=0 Gosub complete\n");
+ ast_agi_send(agi->fd, chan, "200 result=0 Gosub complete\n");
if (chan->pbx) {
ast_free(chan->pbx);
}
chan->pbx = pbx;
} else {
- ast_agi_fdprintf(chan, agi->fd, "200 result=%d Gosub failed\n", res);
+ ast_agi_send(agi->fd, chan, "200 result=%d Gosub failed\n", res);
}
ast_free(gosub_args);
} else {
- ast_agi_fdprintf(chan, agi->fd, "503 result=-2 Memory allocation failure\n");
+ ast_agi_send(agi->fd, chan, "503 result=-2 Memory allocation failure\n");
return RESULT_FAILURE;
}