OSDN Git Service

AG: Accept '-' character in dial number string.
authorSatheesh Kumar Pallemoni <palsat@codeaurora.org>
Tue, 21 Jun 2016 04:57:13 +0000 (10:27 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:09:40 +0000 (08:09 -0600)
Some Headsets storing Number from CLCC response and sending
ATD<number with special Char '-'> for redial.We do not accept
special char '-' in number string and sending Error reponse.
We should add check for accept this special char '-' in
string for redial.

CRs-Fixed: 1031997
Change-Id: I7dfc6c98fdd902361e40752b10d0c41d7ca8fe7b

bta/sys/utl.c

index 10f0388..e75e973 100644 (file)
@@ -305,6 +305,7 @@ BOOLEAN utl_isdialstr(const char *p_s)
     {
         if(!(((p_s[i] >= '0') && (p_s[i] <= '9'))
             || (p_s[i] == '*') || (p_s[i] == '+') || (p_s[i] == '#') || (p_s[i] == ';')
+            || (p_s[i] == '-')
             || ((p_s[i] >= 'A') && (p_s[i] <= 'C'))
             || ((p_s[i] == 'p') || (p_s[i] == 'P')
             || (p_s[i] == 'w') || (p_s[i] == 'W'))))