projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea64348
)
voicecall: Use clip_validity in get_properties
author
Denis Kenzior
<denkenz@gmail.com>
Sun, 12 Dec 2010 11:03:36 +0000
(
05:03
-0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 17 Dec 2010 00:40:18 +0000
(18:40 -0600)
src/voicecall.c
patch
|
blob
|
history
diff --git
a/src/voicecall.c
b/src/voicecall.c
index
3ff7b7a
..
3d23826
100644
(file)
--- a/
src/voicecall.c
+++ b/
src/voicecall.c
@@
-339,7
+339,12
@@
static void append_voicecall_properties(struct voicecall *v,
ofono_bool_t mpty;
status = call_status_to_string(call->status);
- callerid = phone_number_to_string(&call->phone_number);
+
+ if (call->direction == CALL_DIRECTION_MOBILE_TERMINATED)
+ callerid = phone_and_clip_to_string(&call->phone_number,
+ call->clip_validity);
+ else
+ callerid = phone_number_to_string(&call->phone_number);
strncpy(buf, call->name, OFONO_MAX_CALLER_NAME_LENGTH);
buf[OFONO_MAX_CALLER_NAME_LENGTH] = '\0';