message & stasis/messaging: make text message variables work in ARI
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. ASTERISK-28755 #close Change-Id: Ia6051c01a53b30cf7edef84c27df4ed4479b8b6f
Showing
- doc/UPGRADE-staging/ari_messaging.txt 26 additions, 0 deletionsdoc/UPGRADE-staging/ari_messaging.txt
- include/asterisk/message.h 13 additions, 0 deletionsinclude/asterisk/message.h
- main/message.c 17 additions, 4 deletionsmain/message.c
- res/ari/ari_model_validators.c 2 additions, 57 deletionsres/ari/ari_model_validators.c
- res/ari/ari_model_validators.h 1 addition, 22 deletionsres/ari/ari_model_validators.h
- res/stasis/messaging.c 4 additions, 7 deletionsres/stasis/messaging.c
- rest-api/api-docs/endpoints.json 2 additions, 18 deletionsrest-api/api-docs/endpoints.json
Loading
Please register or sign in to comment