--- asterisk-1.4.23/main/pbx.c 2008-12-16 16:15:58.000000000 +0100 +++ asterisk-1.4.23-pidflo/main/pbx.c 2009-03-19 13:13:44.000000000 +0100 @@ -3565,7 +3565,10 @@ dpc->total_prio++; /* write extension name and first peer */ - snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e)); + if (e->matchcid) + snprintf(buf, sizeof(buf), "'%s' (CID match '%s') => ", ast_get_extension_name(e), e->cidmatch); + else + snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e)); print_ext(e, buf2, sizeof(buf2));