]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix the shrink_number to not remove the trailing '.'
authorMark Spencer <markster@digium.com>
Fri, 22 Oct 2004 13:08:35 +0000 (13:08 +0000)
committerMark Spencer <markster@digium.com>
Fri, 22 Oct 2004 13:08:35 +0000 (13:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3

callerid.c

index 7fd0641147850b29b8973a3983b75e660355a907..b5b55e14f60070944d15ee401d26730f93e2332d 100755 (executable)
@@ -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];
                }
        }