bridging: Add creation timestamps

This small feature will help to checking the bridge's status to
figure out which bridge is in old/zombie or not. Also added
detail items for the 'bridge show *' cli to provide more detail
info. And added creation item to the ARI as well.

ASTERISK-28279

Change-Id: I460238c488eca4d216b9176576211cb03286e040
This commit is contained in:
sungtae kim
2019-02-08 22:32:18 +01:00
parent 61585af9bd
commit 0d7012044a
7 changed files with 48 additions and 5 deletions

View File

@@ -358,6 +358,8 @@ struct ast_bridge {
/*! Type mapping used for media routing */
struct ast_vector_int media_types;
/*! The time of bridge creation */
struct timeval creationtime;
};
/*! \brief Bridge base class virtual method table. */

View File

@@ -62,6 +62,8 @@ struct ast_bridge_snapshot {
unsigned int num_active;
/*! The video mode of the bridge */
enum ast_bridge_video_mode_type video_mode;
/*! The time of bridge creation */
struct timeval creationtime;
};
/*!