[asterisk-bugs] [JIRA] (ASTERISK-27443) Add a dynamic feature on callee channel
Thomas Sevestre (JIRA)
noreply at issues.asterisk.org
Wed Nov 22 11:37:07 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Sevestre updated ASTERISK-27443:
---------------------------------------
Description:
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
was:
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
> 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