[asterisk-bugs] [JIRA] (ASTERISK-28717) ARI Data Model DialplanCEP - Missing required properties
Lukas Stermann (JIRA)
noreply at issues.asterisk.org
Tue Jan 28 12:01:25 CST 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249577#comment-249577 ]
Lukas Stermann commented on ASTERISK-28717:
-------------------------------------------
Hey [~bford],
thank you for your quick response!
The issue occurred in a live environment and was sent automatically to my bug reporting service. The error was constantly sent in the same context.
What I can provide is the ARI Channel data model JSON representation, which was associated with an incoming ChannelHangupRequest Event emitted by the ARI:
"{"id":"1580135719.6973","name":"PJSIP/class4-00001b16","state":"Down","caller":{"name":"","number":"+XXXXXXXXXX"},"connected":{"name":"","number":"+XXXXXXXXXX"},"accountcode":"XXXXXXXXXXXXXX.XXXX","dialplan":{"context":"stasis-InboundCall","exten":"s","priority":1},"creationtime":"2020-01-XXT14:35:19.075+0000","language":"en","channelvars":{.........}}"
Where 'X' and '........' is of course hiding sensitive information here.
Does that help?
> ARI Data Model DialplanCEP - Missing required properties
> --------------------------------------------------------
>
> Key: ASTERISK-28717
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28717
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Documentation, Resources/res_ari_channels
> Affects Versions: 16.3.0
> Reporter: Lukas Stermann
> Assignee: Lukas Stermann
> Severity: Minor
> Labels: ARI
>
> In the documentation of the ARI data model 'DialplanCEP' the properties 'app_data' and 'app_name' are marked as required (https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+REST+Data+Models#Asterisk16RESTDataModels-DialplanCEP).
> Expectation:
> 'app_name' and 'app_data' properties are provided by any ARI Message that holds a 'DialplanCEP' model.
> Reality:
> If a Channel's state is 'Down', both 'app_name' and 'app_data' properties are not present in the 'DialplanCEP' model (e.g. in case of a ChannelHangupRequest event)
> Possible solution:
> Mark 'app_name' and 'app_data' as not required in the documentation of the 'DialplanCEP' data model.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list