diff options
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 99bacf017..f4bdd112e 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -344,6 +344,7 @@ static const char *get_cid_name(char *name, int namelen, struct ast_channel *cha static void senddialevent(struct ast_channel *src, struct ast_channel *dst) { + /* XXX do we need also CallerIDnum ? */ manager_event(EVENT_FLAG_CALL, "Dial", "Source: %s\r\n" "Destination: %s\r\n" @@ -351,8 +352,8 @@ static void senddialevent(struct ast_channel *src, struct ast_channel *dst) "CallerIDName: %s\r\n" "SrcUniqueID: %s\r\n" "DestUniqueID: %s\r\n", - src->name, dst->name, src->cid.cid_num ? src->cid.cid_num : "<unknown>", - src->cid.cid_name ? src->cid.cid_name : "<unknown>", src->uniqueid, + src->name, dst->name, S_OR(src->cid.cid_num, "<unknown>"), + S_OR(src->cid.cid_name, "<unknown>"), src->uniqueid, dst->uniqueid); } |