marcelog / Nami

Asterisk manager interface (ami) client for nodejs
http://marcelog.github.com/Nami
Apache License 2.0
99 stars 59 forks source link

Updated API for QueuePause and QueueUnpaused #32

Closed ibrahimab closed 10 years ago

ibrahimab commented 10 years ago

I have updated the API for QueuePause and QueueUnpause to allow parameter injection rather than messing with the internal instance properties. This is safer, as someone could forget to instantiate the Action, which would result in the context referred to inside the action being the global scope rather than the instance.

I also fixed a bug where QueueUnpause() would send 'QueueUnpause' as an action, rather than 'QueuePause' with paused = false.

marcelog commented 10 years ago

Thanks! :)