diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 3ff7b7a8..3d238266 100644 --- 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'; |