mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Don't split unless it's got echo training
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1635,7 +1635,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
|
||||
snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "M*%s#", c + p->stripmsd);
|
||||
} else
|
||||
snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "T%sw", c + p->stripmsd);
|
||||
if (strlen(p->dop.dialstr) > 4) {
|
||||
if (p->echotraining && (strlen(p->dop.dialstr) > 4)) {
|
||||
memset(p->echorest, 'w', sizeof(p->echorest) - 1);
|
||||
strcpy(p->echorest + (p->echotraining / 400) + 1, p->dop.dialstr + strlen(p->dop.dialstr) - 2);
|
||||
p->echorest[sizeof(p->echorest) - 1] = '\0';
|
||||
|
Reference in New Issue
Block a user