Index: channels/chan_ooh323.c =================================================================== --- channels/chan_ooh323.c (revision 604) +++ channels/chan_ooh323.c (working copy) @@ -248,7 +248,7 @@ struct ast_channel *ch = NULL; int fmt; if(gH323Debug) - ast_log(LOG_DEBUG, "--- ooh323_new - %s\n", host); + ast_verbose("--- ooh323_new - %s\n", host); /* Don't hold a h323 pvt lock while we allocate a channel */ @@ -350,7 +350,7 @@ if(ch) ast_mutex_unlock(&ch->lock); if(gH323Debug) - ast_log(LOG_DEBUG, "+++ h323_new\n"); + ast_verbose("+++ h323_new\n"); return ch; } @@ -362,7 +362,7 @@ struct ooh323_pvt *pvt = NULL; struct in_addr ipAddr; if(gH323Debug) - ast_log(LOG_DEBUG, "--- ooh323_alloc\n"); + ast_verbose("--- ooh323_alloc\n"); pvt = (struct ooh323_pvt*) malloc(sizeof(struct ooh323_pvt)); if(!pvt) @@ -445,7 +445,7 @@ ast_mutex_unlock(&iflock); if(gH323Debug) - ast_log(LOG_DEBUG, "+++ ooh323_alloc\n"); + ast_verbose("+++ ooh323_alloc\n"); return pvt; } @@ -1338,11 +1338,11 @@ if(p->callerid_name) { - p->username = strdup(p->callerid_name); - user = find_user(p->username, call->remoteIP); + user = find_user(p->callerid_name, call->remoteIP); if(user) { ast_mutex_lock(&user->lock); + p->username = strdup(user->name); strncpy(p->context, user->context, sizeof(p->context)-1); strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1); p->amaflags = user->amaflags; @@ -1412,8 +1412,7 @@ if(!ast_strlen_zero(p->caller_dialedDigits)){ if(gH323Debug) { - ast_log(LOG_DEBUG, "Setting dialed digits %s\n", - p->caller_dialedDigits); + ast_verbose("Setting dialed digits %s\n", p->caller_dialedDigits); } ooCallAddAliasDialedDigits(call, p->caller_dialedDigits); }