mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
ast_shrink_phone_number() must ignore whitespace, otherwise my CIDCO callerid box gets LINE ERROR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -886,7 +886,8 @@ void ast_shrink_phone_number(char *n)
|
|||||||
n[y++] = n[x];
|
n[y++] = n[x];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!strchr("()", n[x]))
|
/* ignore parenthesis and whitespace */
|
||||||
|
if (!strchr("( )", n[x]))
|
||||||
n[y++] = n[x];
|
n[y++] = n[x];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user