diff --git a/callerid.c b/callerid.c index 7fd0641147..b5b55e14f6 100755 --- a/callerid.c +++ b/callerid.c @@ -589,8 +589,12 @@ void ast_shrink_phone_number(char *n) if (bracketed) n[y++] = n[x]; break; + case '.': + if (!n[x+1]) + n[y++] = n[x]; + break; default: - if (!strchr("( ).", n[x])) + if (!strchr("( )", n[x])) n[y++] = n[x]; } }