diff options
author | George Joseph <george.joseph@fairview5.com> | 2014-08-30 17:33:08 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2014-08-30 17:33:08 +0000 |
commit | 5aefecd81e38623c8d55e79e6afbae47a561bc62 (patch) | |
tree | 0450e6d533ccfecc11f47a84c858d0026b0cd475 /apps/app_confbridge.c | |
parent | 59d4dbd3d0c6063b4699d363ead936e9a4effcde (diff) |
confbridge: Add Duration to ConfbridgeList event
The ConfbridgeList event doesn't include how long the user has been a
member of the conference. This patch adds Duration (seconds) which
is based on user->chan->answertime.
Tested by: George Joseph
Review: https://reviewboard.asterisk.org/r/3955/
........
Merged revisions 422444 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 422445 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_confbridge.c')
-rw-r--r-- | apps/app_confbridge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index c010a52c3..18ea804c0 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -2837,6 +2837,7 @@ static void action_confbridgelist_item(struct mansession *s, const char *id_text "EndMarked: %s\r\n" "Waiting: %s\r\n" "Muted: %s\r\n" + "AnsweredTime: %d\r\n" "\r\n", id_text, conference->name, @@ -2848,7 +2849,8 @@ static void action_confbridgelist_item(struct mansession *s, const char *id_text ast_test_flag(&user->u_profile, USER_OPT_WAITMARKED) ? "Yes" : "No", ast_test_flag(&user->u_profile, USER_OPT_ENDMARKED) ? "Yes" : "No", waiting ? "Yes" : "No", - user->muted ? "Yes" : "No"); + user->muted ? "Yes" : "No", + ast_channel_get_up_time(user->chan)); } static int action_confbridgelist(struct mansession *s, const struct message *m) |