don't try to print out username before its copied

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara
2004-01-11 17:51:35 +00:00
parent 9b960f3555
commit da6648f3c9

View File

@@ -822,11 +822,11 @@ static struct ast_channel *oh323_request(char *type, int format, void *data)
p->nonCodecCapability &= ~AST_RTP_DTMF;
}
if (ext) {
strncpy(p->username, ext, sizeof(p->username) - 1);
}
ast_log(LOG_DEBUG, "Host: %s\tUsername: %s\n", host, p->username);
if (ext)
strncpy(p->username, ext, sizeof(p->username) - 1);
tmpc = oh323_new(p, AST_STATE_DOWN, host);
if (!tmpc)
oh323_destroy(p);