Author: gtjoseph
Date: Sat Aug 30 12:28:04 2014
New Revision: 422444

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422444
Log:
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/

Modified:
    branches/12/apps/app_confbridge.c

Modified: branches/12/apps/app_confbridge.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/12/apps/app_confbridge.c?view=diff&rev=422444&r1=422443&r2=422444
==============================================================================
--- branches/12/apps/app_confbridge.c (original)
+++ branches/12/apps/app_confbridge.c Sat Aug 30 12:28:04 2014
@@ -2784,6 +2784,7 @@
                "EndMarked: %s\r\n"
                "Waiting: %s\r\n"
                "Muted: %s\r\n"
+               "AnsweredTime: %d\r\n"
                "\r\n",
                id_text,
                conference->name,
@@ -2795,7 +2796,8 @@
                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)


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to