NumminorihSF / ami-io

Use node.js or io.js to manage Asterisk through AMI
MIT License
30 stars 16 forks source link

Action.Muteaudio is not a constructor #11

Closed JasonScopServ closed 6 years ago

JasonScopServ commented 7 years ago

Having a problem where I tried to send a MuteAudio action to the AMI but fails with:

TypeError: amiio.Action.Muteaudio is not a constructor

The line that fails:

var action = new amiio.Action.MuteAudio();

Any ideas?

NumminorihSF commented 7 years ago

The problem is that there is not such action in package. Now you can create this action by manual call main action constructor:

var action = new amiio.Action.Action('MuteAudio');

I'll update README and add some improvement for such case into library.

JasonScopServ commented 7 years ago

Thank you very much :+1: It works.