From: Mark Spencer Date: Fri, 22 Oct 2004 13:08:35 +0000 (+0000) Subject: Fix the shrink_number to not remove the trailing '.' X-Git-Tag: 1.2.0-beta1~1986 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5091a2b3385951f68464e98ac0c4f66d9a3fc34;p=thirdparty%2Fasterisk.git Fix the shrink_number to not remove the trailing '.' git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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]; } }