mirror of https://github.com/asterisk/asterisk
When a text message was received any associated variable was not written to the ARI TextMessageReceived event. This occurred because Asterisk only wrote out "send" variables. However, even those "send" variables would fail ARI validation due to a TextMessageVariable formatting bug. Since it seems the TextMessageReceived event has never been able to include actual variables it was decided to remove the TextMessageVariable object type from ARI, and simply return a JSON object of key/value pairs for variables. This aligns more with how the ARI sendMessage handles variables, and other places in ARI. That being the case, and since this is technically an API breaking change (no one should really be affected since things never really worked) the ARI version was updated to reflect that. ASTERISK-28755 #close Change-Id: Ia6051c01a53b30cf7edef84c27df4ed4479b8b6f16.9
parent
d86cd96c87
commit
fc1d93cf97
@ -0,0 +1,26 @@
|
||||
Subject: ARI
|
||||
Subject: res_stasis
|
||||
|
||||
The "TextMessageReceived" event used to include a list of "TextMessageVariable"
|
||||
objects as part of its output. Due to a couple of bugs in Asterisk a list of
|
||||
received variables was never included even if ones were available. However,
|
||||
variables set to send would be (which they should have not been), but would
|
||||
fail validation due to the bad formatting.
|
||||
|
||||
So basically there was no way to get a "TextMessageReceived" event with
|
||||
variables. Due to this the API has changed. The "TextMessageVariable" object
|
||||
no longer exists. "TextMessageReceived" now returns a JSON object of key/value
|
||||
pairs. So for instance instead of a list of "TextMessageVariable" objects:
|
||||
|
||||
[ TextMessageVariable, TextMessageVariable, TextMessageVariable]
|
||||
|
||||
where a TextMessageVariable was supposed to be:
|
||||
|
||||
{ "key": "<var name>", "value":, "<var value>" }
|
||||
|
||||
The output is now just:
|
||||
|
||||
{ "<var name>": "<var value>" }
|
||||
|
||||
This aligns more with how variables are specified when sending a message, as
|
||||
well as other variable lists in ARI.
|
Loading…
Reference in new issue