[asterisk-bugs] [JIRA] (ASTERISK-28796) func_channel: cannot read fields exten, context, userfield, channame from dialplan
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Wed Apr 8 09:50:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250183#comment-250183 ]
Friendly Automation commented on ASTERISK-28796:
------------------------------------------------
Change 14131 merged by George Joseph:
func_channel: allow reading 4 fields from dialplan
[https://gerrit.asterisk.org/c/asterisk/+/14131|https://gerrit.asterisk.org/c/asterisk/+/14131]
> 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: Sébastien Duthil
> 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