Merged revisions 181985 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r181985 | kpfleming | 2009-03-13 11:55:38 -0500 (Fri, 13 Mar 2009) | 1 line
  
  improve a bit of suboptimal code
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@181987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2009-03-13 16:58:00 +00:00
parent a4948990e2
commit 65ed9947f7

View File

@@ -18950,11 +18950,7 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char
} else if (!strcasecmp(args.param, "peername")) {
ast_copy_string(buf, p->peername, buflen);
} else if (!strcasecmp(args.param, "t38passthrough")) {
if (p->t38.state == T38_DISABLED) {
ast_copy_string(buf, "0", sizeof("0"));
} else { /* T38 is offered or enabled in this call */
ast_copy_string(buf, "1", sizeof("1"));
}
ast_copy_string(buf, (p->t38.state == T38_DISABLED) ? "0" : "1", buflen);
} else if (!strcasecmp(args.param, "rtpdest")) {
struct sockaddr_in sin;