Index: apps/app_confbridge.c =================================================================== --- apps/app_confbridge.c (revision 250962) +++ apps/app_confbridge.c (working copy) @@ -463,6 +463,12 @@ conference_bridge->markedusers++; } + /* Set the device state for this conference */ + if (conference_bridge->users == 1) { + ast_devstate_changed(AST_DEVICE_INUSE, "confbridge:%s", conference_bridge->name); + } + + /* If the caller is a marked user or is waiting for a marked user to enter pass 'em off, otherwise pass them off to do regular joining stuff */ if (ast_test_flag(&conference_bridge_user->flags, OPTION_MARKEDUSER | OPTION_WAITMARKED)) { post_join_marked(conference_bridge, conference_bridge_user); @@ -533,6 +539,9 @@ } } } else { + /* Set device state to "not in use" */ + ast_devstate_changed(AST_DEVICE_NOT_INUSE, "confbridge:%s", conference_bridge->name); + ao2_unlink(conference_bridges, conference_bridge); } Index: CHANGES =================================================================== --- CHANGES (revision 250962) +++ CHANGES (working copy) @@ -140,6 +140,8 @@ type features. * Added new application VMSayName that will play the recorded name of the voicemail user if it exists, otherwise will play the mailbox number. + * Added custom device states to ConfBridge bridges. Use 'confbridge:' to + retrieve state for a particular bridge, where is the conference name Dialplan Functions ------------------