summaryrefslogtreecommitdiff
path: root/apps/app_dumpchan.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-07-03 03:34:47 +0000
committerRussell Bryant <russell@russellbryant.com>2006-07-03 03:34:47 +0000
commita717eef7c17f2f2481abf3eee609fb3993db77d9 (patch)
tree585aca1a4d6ff32981badcd2ce8c975a5927cda4 /apps/app_dumpchan.c
parent4075e5721bb864a6421bd46f60e89bd3a5a10ae5 (diff)
add RDNIS to the DumpChan application (issue #7432, junky)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r--apps/app_dumpchan.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index f57afe407..8a06baef3 100644
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -86,6 +86,7 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
"CallerID= %s\n"
"CallerIDName= %s\n"
"DNIDDigits= %s\n"
+ "RDNIS= %s\n"
"State= %s (%d)\n"
"Rings= %d\n"
"NativeFormat= %s\n"
@@ -107,9 +108,10 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
c->name,
c->tech->type,
c->uniqueid,
- (c->cid.cid_num ? c->cid.cid_num : "(N/A)"),
- (c->cid.cid_name ? c->cid.cid_name : "(N/A)"),
- (c->cid.cid_dnid ? c->cid.cid_dnid : "(N/A)" ),
+ S_OR(c->cid.cid_num, "(N/A)"),
+ S_OR(c->cid.cid_name, "(N/A)"),
+ S_OR(c->cid.cid_dnid, "(N/A)"),
+ S_OR(c->cid.cid_rdnis, "(N/A)"),
ast_state2str(c->_state),
c->_state,
c->rings,