[asterisk-bugs] [JIRA] (ASTERISK-28796) func_channel: cannot read fields exten, context, userfield, channame from dialplan
Sébastien Duthil (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:comment-tabpanel&focusedCommentId=250098#comment-250098 ]
Sébastien Duthil commented on ASTERISK-28796:
---------------------------------------------
Yes, I have a patch for this issue, and tests too. I'm just trying to get them to Gerrit, but for now, I'm stuck with this error:
{noformat}
remote: error: branch refs/publish/17/ASTERISK-28796:
remote: You need 'Create' rights to create new references.
remote: User: sduthil
remote: Contact an administrator to fix the permissions
remote:
remote: Processing changes: refs: 1
remote: Processing changes: refs: 1, done
To ssh://gerrit.asterisk.org:29418/asterisk.git
! [remote rejected] HEAD -> refs/publish/17/ASTERISK-28796 (prohibited by Gerrit: not permitted: create)
error: failed to push some refs to 'ssh://sduthil@gerrit.asterisk.org:29418/asterisk.git
{noformat}
I will try to understand that and push again later.
> 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