I noted this on the dev list but got no response, so I just did it myself.
[asterisk/asterisk.git] / include / asterisk / features.h
index 2fb9e7a..1a5d760 100644 (file)
@@ -29,6 +29,7 @@
 #define FEATURE_APP_ARGS_LEN   256
 #define FEATURE_SNAME_LEN      32
 #define FEATURE_EXTEN_LEN      32
+#define FEATURE_MOH_LEN                80  /* same as MAX_MUSICCLASS from channel.h */
 
 /*! \brief main call feature structure */
 struct ast_call_feature {
@@ -41,6 +42,7 @@ struct ast_call_feature {
        unsigned int flags;
        char app[FEATURE_APP_LEN];              
        char app_args[FEATURE_APP_ARGS_LEN];
+       char moh_class[FEATURE_MOH_LEN];
        AST_LIST_ENTRY(ast_call_feature) feature_entry;
 };
 
@@ -92,4 +94,11 @@ void ast_register_feature(struct ast_call_feature *feature);
     \param feature the ast_call_feature object which was registered before*/
 void ast_unregister_feature(struct ast_call_feature *feature);
 
+/*! \brief look for a call feature entry by its sname
+       \param name a string ptr, should match "automon", "blindxfer", "atxfer", etc. */
+struct ast_call_feature *ast_find_call_feature(const char *name);
+
+void ast_rdlock_call_features(void);
+void ast_unlock_call_features(void);
+
 #endif /* _AST_FEATURES_H */