Index: chan_zap.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v retrieving revision 1.206 diff -u -r1.206 chan_zap.c --- chan_zap.c 12 Apr 2004 22:00:12 -0000 1.206 +++ chan_zap.c 14 Apr 2004 15:43:57 -0000 @@ -6341,10 +6341,15 @@ #ifndef PRI_COPY_DIGITS_CALLED_NUMBER #error Please update the libpri package #endif - if (e->e==PRI_EVENT_RING) - strncpy(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1); - else - strncat(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1); + if (e->e==PRI_EVENT_RING) { + strncpy(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1); + } else { + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_3 "Digit [%s] on Channel 'Zap/%d-1'\n",e->ring.callednum,pri->pvt[chan]->channel); + strncat(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1); + if (pri->pvt[chan]->owner) + strncat(pri->pvt[chan]->owner->exten, e->ring.callednum, sizeof(pri->pvt[chan]->owner->exten)-1); + } strncpy(pri->pvt[chan]->dnid, e->ring.callednum, sizeof(pri->pvt[chan]->dnid)); } #if 0