[asterisk-bugs] [JIRA] (ASTERISK-28796) func_channel: cannot read fields exten, context, userfield, channame from dialplan
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Apr 1 16:49:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-28796:
-------------------------------------
Status: Waiting for Feedback (was: Waiting for Feedback)
> func_channel: cannot read fields exten, context, userfield, channame from dialplan
> ----------------------------------------------------------------------------------
>
> Key: ASTERISK-28796
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28796
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Functions/func_channel
> Affects Versions: 17.3.0
> Environment: Debian 10 Buster, Asterisk 17.3.0
> Reporter: Sébastien Duthil
> Assignee: Asterisk Team
> Severity: Minor
>
> Given the following dialplan:
> {noformat}
> [default]
> exten = 123456,1,NoOp(CHANNEL function demo)
> same = n,Set(CHANNEL(userfield)=something)
> same = n,NoOp(exten: ${CHANNEL(exten)})
> same = n,NoOp(context: ${CHANNEL(context)})
> same = n,NoOp(userfield: ${CHANNEL(userfield)})
> same = n,NoOp(channame: ${CHANNEL(channame)})
> same = n,Hangup
> {noformat}
> When I call 123456
> Then I see in the console:
> {noformat}
> Executing [123456 at default:1] NoOp("PJSIP/caller-00000001", "CHANNEL function demo")
> Executing [123456 at default:2] Set("PJSIP/caller-00000001", "CHANNEL(userfield)=something")
> WARNING[0001][C-00000001]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'exten'
> Executing [123456 at default:3] NoOp("PJSIP/caller-00000001", "exten: ")
> WARNING[0001][C-00000001]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'context'
> Executing [123456 at default:4] NoOp("PJSIP/caller-00000001", "context: ")
> WARNING[0001][C-00000001]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'userfield'
> Executing [123456 at default:5] NoOp("PJSIP/caller-00000001", "userfield: ")
> WARNING[0001][C-00000001]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'channame'
> Executing [123456 at default:6] NoOp("PJSIP/caller-00000001", "channame: ")
> {noformat}
> Expected: I don't see warnings, and I can see the value of exten, context, userfield and channame.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list