diff --git a/apps/app_dial.c b/apps/app_dial.c index 99bacf0171..f4bdd112e0 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 : "", - src->cid.cid_name ? src->cid.cid_name : "", src->uniqueid, + src->name, dst->name, S_OR(src->cid.cid_num, ""), + S_OR(src->cid.cid_name, ""), src->uniqueid, dst->uniqueid); }