Skip to content
Snippets Groups Projects
Commit 87a82953 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

improve a bit of suboptimal code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1fba42de
No related branches found
No related tags found
No related merge requests found
...@@ -19865,11 +19865,7 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char ...@@ -19865,11 +19865,7 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char
} else if (!strcasecmp(args.param, "peername")) { } else if (!strcasecmp(args.param, "peername")) {
ast_copy_string(buf, p->peername, buflen); ast_copy_string(buf, p->peername, buflen);
} else if (!strcasecmp(args.param, "t38passthrough")) { } else if (!strcasecmp(args.param, "t38passthrough")) {
if (p->t38.state == T38_DISABLED) { ast_copy_string(buf, (p->t38.state == T38_DISABLED) ? "0" : "1", buflen);
ast_copy_string(buf, "0", sizeof("0"));
} else { /* T38 is offered or enabled in this call */
ast_copy_string(buf, "1", sizeof("1"));
}
} else if (!strcasecmp(args.param, "rtpdest")) { } else if (!strcasecmp(args.param, "rtpdest")) {
struct sockaddr_in sin; struct sockaddr_in sin;
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment