mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Cleanup some formatting in app_agi.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -741,8 +741,7 @@ static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char
|
|||||||
if (argv[2])
|
if (argv[2])
|
||||||
ast_set_callerid(chan, argv[2], 0);
|
ast_set_callerid(chan, argv[2], 0);
|
||||||
|
|
||||||
/* strncpy(chan->callerid, argv[2], sizeof(chan->callerid)-1);
|
fdprintf(agi->fd, "200 result=1\n");
|
||||||
*/ fdprintf(agi->fd, "200 result=1\n");
|
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -786,7 +785,7 @@ static int handle_getvariable(struct ast_channel *chan, AGI *agi, int argc, char
|
|||||||
{
|
{
|
||||||
char *tempstr;
|
char *tempstr;
|
||||||
|
|
||||||
if ((tempstr = pbx_builtin_getvar_helper(chan, argv[2])) )
|
if ((tempstr = pbx_builtin_getvar_helper(chan, argv[2])))
|
||||||
fdprintf(agi->fd, "200 result=1 (%s)\n", tempstr);
|
fdprintf(agi->fd, "200 result=1 (%s)\n", tempstr);
|
||||||
else
|
else
|
||||||
fdprintf(agi->fd, "200 result=0\n");
|
fdprintf(agi->fd, "200 result=0\n");
|
||||||
|
Reference in New Issue
Block a user