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

Thomas Sevestre (JIRA) noreply at issues.asterisk.org
Wed Nov 22 11:35:08 CST 2017


Thomas Sevestre created ASTERISK-27443:
------------------------------------------

             Summary: 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 :
Set(*DYNAMIC_FEATURES=test)

This can be implementeded in channel.c / ast_channel_inherit_variables

by replacing this line :
		if (varname[0] == '_') {

with this one :
		if (varname[0] == '_' || varname[0] == '*') {

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