[asterisk-bugs] [JIRA] (ASTERISK-27443) Add a dynamic feature on callee channel

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Thu Nov 23 13:21:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett closed ASTERISK-27443.
--------------------------------------

    Resolution: Not A Bug

> Add a dynamic feature on callee channel
> ---------------------------------------
>
>                 Key: ASTERISK-27443
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27443
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>            Reporter: Thomas Sevestre
>
> I want to activate a dynamic feature on callee channel only.
> According to the documentation, "ActivatedBy is no longer honored. The feature is activated by which channel DYNAMIC_FEATURES includes the feature is on. Use predial to set different values of DYNAMIC_FEATURES on the channels" 
> https://wiki.asterisk.org/wiki/display/AST/Custom+Dynamic+Features
> With the variable inheritance system, it is not possible to set a variable on the callee channel only. With DYNAMIC_FEATURES, _DYNAMIC_FEATURES, __DYNAMIC_FEATURES caller channel will always have the feature enabled
> I've tried to add a the DYNAMIC_FEATURES variable on the callee channel after bridge, it doesn't work.
> We could add the ability to add a variable on the callee channel. for instance :
> {quote}
>     Set(*DYNAMIC_FEATURES=test)
> {quote}
> This can be implementeded in channel.c / ast_channel_inherit_variables
> by replacing this line :
> {quote}
> 		if (varname[0] == '_') {
> {quote}
> with this one :
> {quote}
> 		if (varname[0] == '_' || varname[0] == '*') {
> {quote}
> If interested I'll provide the patch in gerrit



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list