Fix outgoing call stats for normal calls.
Also check against EMPTY_INFO.
Bug: 10909434
Change-Id: I71eeaa1c3c98eeb750a866e8aceaf40f16c1d3ba
diff --git a/src/com/android/phone/PhoneUtils.java b/src/com/android/phone/PhoneUtils.java
index d512b88..d132ea5 100644
--- a/src/com/android/phone/PhoneUtils.java
+++ b/src/com/android/phone/PhoneUtils.java
@@ -1475,7 +1475,7 @@
// querying a new CallerInfo using the connection's phone number.
String number = c.getAddress();
- if (info != null) {
+ if (info != null && info != CallGatewayManager.EMPTY_INFO) {
// Gateway number, the connection number is actually the gateway number.
// need to lookup via dialed number.
number = info.trueNumber;