[asterisk-commits] may: branch 1.8 r311687 - /branches/1.8/addons/chan_ooh323.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Mar 27 16:47:20 CDT 2011
Author: may
Date: Sun Mar 27 16:47:13 2011
New Revision: 311687
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=311687
Log:
correct return values in ooh323_indicate for AST_CONTROL_T38_PARAMETERS
Modified:
branches/1.8/addons/chan_ooh323.c
Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=311687&r1=311686&r2=311687
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Sun Mar 27 16:47:13 2011
@@ -1192,6 +1192,7 @@
struct ooh323_pvt *p = (struct ooh323_pvt *) ast->tech_pvt;
char *callToken = (char *)NULL;
+ int res = -1;
if (!p) return -1;
@@ -1293,6 +1294,7 @@
if (!p->chmodepend && !p->faxmode) {
ooRequestChangeMode(p->callToken, 1);
p->chmodepend = 1;
+ res = 0;
}
break;
@@ -1301,6 +1303,7 @@
if (!p->chmodepend && p->faxmode) {
ooRequestChangeMode(p->callToken, 0);
p->chmodepend = 1;
+ res = 0;
}
break;
@@ -1326,7 +1329,7 @@
ast_verbose("++++ ooh323_indicate %d on %s\n", condition, callToken);
free(callToken);
- return -1;
+ return res;
}
static int ooh323_queryoption(struct ast_channel *ast, int option, void *data, int *datalen)
More information about the asterisk-commits
mailing list