diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-22 13:08:35 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-22 13:08:35 +0000 |
commit | e688dbc2151ac682a72b257744c1a78a32f48ac2 (patch) | |
tree | 4dd703962331407093e1ef7b926236a91e674a3f /callerid.c | |
parent | 7f2443e5c5d99373f1746673978b92beac555c5d (diff) |
Fix the shrink_number to not remove the trailing '.'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4042 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'callerid.c')
-rwxr-xr-x | callerid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/callerid.c b/callerid.c index 7fd064114..b5b55e14f 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]; } } |