From: Alexandr Anikin Date: Sun, 27 Mar 2011 21:47:13 +0000 (+0000) Subject: correct return values in ooh323_indicate for AST_CONTROL_T38_PARAMETERS X-Git-Tag: 1.8.5-rc1~11^2~255 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b64fbc06ce032533fe015b592503a8ab68c8a35;p=thirdparty%2Fasterisk.git correct return values in ooh323_indicate for AST_CONTROL_T38_PARAMETERS git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@311687 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 6edd7da853..8af04fd37e 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1192,6 +1192,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d 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 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d if (!p->chmodepend && !p->faxmode) { ooRequestChangeMode(p->callToken, 1); p->chmodepend = 1; + res = 0; } break; @@ -1301,6 +1303,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d if (!p->chmodepend && p->faxmode) { ooRequestChangeMode(p->callToken, 0); p->chmodepend = 1; + res = 0; } break; @@ -1326,7 +1329,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d 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)