[asterisk-bugs] [JIRA] (ASTERISK-22116) Bridge API Enhancements: Add the ability to selectively remove bridge feature hooks

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Jul 19 12:08:06 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=208090#comment-208090 ] 

Richard Mudgett commented on ASTERISK-22116:
--------------------------------------------

The necessity for this BUGBUG comment is lessened by the ast_bridge_hook_remove_flags enum defined just above the BUGBUG comment.  The bridge_features_remove() (soon to become ast_bridge_features_remove() with the DTMF atxfer work) is available to remove marked classes of hooks.
                
> Bridge API Enhancements: Add the ability to selectively remove bridge feature hooks
> -----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22116
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22116
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Bridging
>    Affects Versions: 12
>            Reporter: Matt Jordan
>              Labels: Asterisk12
>
> Right now, we don't have the ability to choose which feature hook gets removed easily.
> There should be an API call in the Bridging Framework that lets an external user of the framework request that a specific bridging hook be removed.
> {noformat}
> /* BUGBUG Need to be able to selectively remove DTMF, hangup, and interval hooks. */
> /*! \brief Structure that is the essence of a feature hook. */
> struct ast_bridge_hook {
> 	/*! Linked list information */
> 	AST_LIST_ENTRY(ast_bridge_hook) entry;
> 	/*! Callback that is called when hook is tripped */
> 	ast_bridge_hook_callback callback;
> 	/*! Callback to destroy hook_pvt data right before destruction. */
> 	ast_bridge_hook_pvt_destructor destructor;
> 	/*! Unique data that was passed into us */
> 	void *hook_pvt;
> 	/*! Flags determining when hooks should be removed from a bridge channel */
> 	struct ast_flags remove_flags;
> 	/*! Extra hook parameters. */
> 	union {
> 		/*! Extra parameters for a DTMF feature hook. */
> 		struct ast_bridge_hook_dtmf dtmf;
> 		/*! Extra parameters for an interval timer hook. */
> 		struct ast_bridge_hook_timer timer;
> 	} parms;
> };
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list