mirror of git://git.sysmocom.de/ofono
examples: Add network name handling to history
This commit is contained in:
parent
b68fb125b8
commit
939d66db51
|
@ -68,6 +68,9 @@ static void example_history_call_ended(struct ofono_history_context *context,
|
||||||
else
|
else
|
||||||
ofono_debug("From: %s", from);
|
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));
|
strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&start));
|
||||||
buf[127] = '\0';
|
buf[127] = '\0';
|
||||||
ofono_debug("StartTime: %s", buf);
|
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);
|
from = phone_number_to_string(&call->phone_number);
|
||||||
|
|
||||||
ofono_debug("From: %s", from);
|
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));
|
strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&when));
|
||||||
buf[127] = '\0';
|
buf[127] = '\0';
|
||||||
ofono_debug("When: %s", buf);
|
ofono_debug("When: %s", buf);
|
||||||
|
|
Loading…
Reference in New Issue