more NULL "" equivalence in CID fields.
Mark a potentially missing item in managerevent git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21818 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
0964951348
commit
3bb9782c4d
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue