*** chan_vpb.c-orig Mon Dec 27 06:05:24 2004 --- chan_vpb.c Sat Jan 15 09:32:22 2005 *************** *** 1983,1990 **** tmp->pvt->rawreadformat = AST_FORMAT_SLINEAR; tmp->pvt->rawwriteformat = AST_FORMAT_SLINEAR; ast_setstate(tmp, state); ! if (state == AST_STATE_RING) tmp->rings = 1; tmp->pvt->pvt = me; /* set call backs */ tmp->pvt->send_digit = vpb_digit; --- 1983,1992 ---- tmp->pvt->rawreadformat = AST_FORMAT_SLINEAR; tmp->pvt->rawwriteformat = AST_FORMAT_SLINEAR; ast_setstate(tmp, state); ! if (state == AST_STATE_RING) { tmp->rings = 1; + tmp->callerid = strdup(me->callerid); + } tmp->pvt->pvt = me; /* set call backs */ tmp->pvt->send_digit = vpb_digit;