summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-12-16 18:39:15 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-12-16 18:40:19 -0600
commit939d66db51f1ab9cc0c2812a4072c5a66b998487 (patch)
tree3501e18f89a666876f07ccea0281e0abf6d1de22 /examples
parentb68fb125b80b98142245b1f5a2db0882a1667cfa (diff)
downloadofono-939d66db51f1ab9cc0c2812a4072c5a66b998487.tar.bz2
examples: Add network name handling to history
Diffstat (limited to 'examples')
-rw-r--r--examples/history.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/history.c b/examples/history.c
index b7aec061..0a1e8d7e 100644
--- a/examples/history.c
+++ b/examples/history.c
@@ -68,6 +68,9 @@ static void example_history_call_ended(struct ofono_history_context *context,
else
ofono_debug("From: %s", from);
+ if (call->cnap_validity == 0)
+ ofono_debug("Name from Network: %s\n", call->name);
+
strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&start));
buf[127] = '\0';
ofono_debug("StartTime: %s", buf);
@@ -96,6 +99,10 @@ static void example_history_call_missed(struct ofono_history_context *context,
from = phone_number_to_string(&call->phone_number);
ofono_debug("From: %s", from);
+
+ if (call->cnap_validity == 0)
+ ofono_debug("Name from Network: %s\n", call->name);
+
strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&when));
buf[127] = '\0';
ofono_debug("When: %s", buf);