You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There does not appear to be any support for custom AMI actions (custom AMI events work fine, obviously).
I looked through all of the files in Actions and did not find anything. The two things I tried:
Using ActionMessage. I get an error that I cannot instantiate an abstract class, since all the other actions simply extend this.
Using the UserEvent action and then doing setKey('Action', $myEventName) afterwards to override. This fails since setKey is a protected method.
In other words, it seems things are set up to prevent users from sending custom AMI actions.
This capability is important, since a) this library is unlikely to keep up with the new AMI actions being added to Asterisk and b) there will always be custom AMI actions that cannot be anticipated in advance.
Can there simply be an action, like "CustomAction" that is similar to UserEvent except it accepts the action name, rather than setting it to "UserEvent", and then an array of keys to set?
There does not appear to be any support for custom AMI actions (custom AMI events work fine, obviously).
I looked through all of the files in Actions and did not find anything. The two things I tried:
In other words, it seems things are set up to prevent users from sending custom AMI actions.
This capability is important, since a) this library is unlikely to keep up with the new AMI actions being added to Asterisk and b) there will always be custom AMI actions that cannot be anticipated in advance.
Can there simply be an action, like "CustomAction" that is similar to UserEvent except it accepts the action name, rather than setting it to "UserEvent", and then an array of keys to set?
Something like this is what we need:
The text was updated successfully, but these errors were encountered: