--- chan_h323.c.orig 2006-12-04 23:13:06.000000000 +0100 +++ chan_h323.c 2006-12-03 21:24:16.000000000 +0100 @@ -240,14 +240,21 @@ const char *host) { struct ast_channel *ch = NULL; + char *cid_num, *cid_name; int fmt; if(gH323Debug) ast_log(LOG_DEBUG, "--- ooh323_new - %s\n", host); + cid_num = i->callerid_num; + + cid_name = i->callerid_name; + /* Don't hold a h323 pvt lock while we allocate a channel */ ast_mutex_unlock(&i->lock); - ch = ast_channel_alloc(1); + ch = ast_channel_alloc(1, state, cid_num, cid_name, "OOH323/%s", host); ast_mutex_lock(&i->lock); if(ch)