[Home]

Summary:ASTERISK-26492: ARI: Add ability to specify channel variables on websocket events
Reporter:Mark Michelson (mmichelson)Labels:
Date Opened:2016-10-21 09:12:16Date Closed:2016-11-15 11:30:47.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_ari
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ari_vars.diff
Description:I'm attaching a patch to this issue that is a work in progress for a patch to add channel variables to channel snapshots that are part of Stasis websocket events.

I call this "work in progress" only because it does not have formal tests written for it yet. However, in my own small-scale testing, it did exactly what I expected it to do.

This works the same as for AMI. You set "channelvars=foo,bar" in your ari.conf general section, and then the channel variables "foo" and "bar" (along with their values), will appear in every Stasis websocket event.

I'm putting the patch up on this issue so that people can try it out and see if this is a good approach for doing this task.
Comments:By: Mark Michelson (mmichelson) 2016-10-21 09:21:48.780-0500

I've uploaded ari_vars.diff. Let me know how it works out. This patch is against Asterisk 14.

By: Sébastien Duthil (sduthil) 2016-11-07 10:22:01.353-0600

This patch is quite simple and does its job really well. I intend to add some tests and propose it through Gerrit.

By: Friendly Automation (friendly-automation) 2016-11-15 11:30:48.357-0600

Change 4400 merged by zuul:
rest_api/events/variables: Add test for variables in ARI events.

[https://gerrit.asterisk.org/4400|https://gerrit.asterisk.org/4400]

By: Friendly Automation (friendly-automation) 2016-11-15 13:50:20.771-0600

Change 4398 merged by Joshua Colp:
res_ari: Add support for channel variables in ARI events.

[https://gerrit.asterisk.org/4398|https://gerrit.asterisk.org/4398]

By: Friendly Automation (friendly-automation) 2016-11-15 14:49:44.271-0600

Change 4399 merged by Joshua Colp:
res_ari: Add support for channel variables in ARI events.

[https://gerrit.asterisk.org/4399|https://gerrit.asterisk.org/4399]

By: Friendly Automation (friendly-automation) 2016-11-28 09:03:39.620-0600

Change 4504 merged by zuul:
tests/rest_api/events/variables: Stop test on StasisEnd.

[https://gerrit.asterisk.org/4504|https://gerrit.asterisk.org/4504]