[Asterisk-cvs] asterisk/res res_agi.c,1.10.2.5,1.10.2.6
russell at lists.digium.com
russell at lists.digium.com
Tue Jun 14 15:44:15 CDT 2005
- Previous message: [Asterisk-cvs] asterisk app.c, 1.31.2.2, 1.31.2.3 channel.c,
1.139.2.9, 1.139.2.10 file.c, 1.51.2.4, 1.51.2.5 pbx.c,
1.154.2.11, 1.154.2.12
- Next message: [Asterisk-cvs] asterisk/res res_agi.c,1.10.2.6,1.10.2.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv12499/res
Modified Files:
Tag: v1-0
res_agi.c
Log Message:
don't kill the call if tdd mode is not supported by a channel (bug #4370)
Index: res_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_agi.c,v
retrieving revision 1.10.2.5
retrieving revision 1.10.2.6
diff -u -d -r1.10.2.5 -r1.10.2.6
--- res_agi.c 5 Apr 2005 10:15:00 -0000 1.10.2.5
+++ res_agi.c 14 Jun 2005 19:45:49 -0000 1.10.2.6
@@ -396,11 +396,11 @@
if (!strncasecmp(argv[2],"mate",4)) x = 2;
if (!strncasecmp(argv[2],"tdd",3)) x = 1;
res = ast_channel_setoption(chan,AST_OPTION_TDD,&x,sizeof(char),0);
- fdprintf(agi->fd, "200 result=%d\n", res);
- if (res >= 0)
- return RESULT_SUCCESS;
+ if (res == RESULT_SUCCESS)
+ fprintf(agi->fd, "200 result=1\n");
else
- return RESULT_FAILURE;
+ fprintf(agi->fd, "200 result=0\n");
+ return RESULT_SUCCESS;
}
static int handle_sendimage(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
- Previous message: [Asterisk-cvs] asterisk app.c, 1.31.2.2, 1.31.2.3 channel.c,
1.139.2.9, 1.139.2.10 file.c, 1.51.2.4, 1.51.2.5 pbx.c,
1.154.2.11, 1.154.2.12
- Next message: [Asterisk-cvs] asterisk/res res_agi.c,1.10.2.6,1.10.2.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list