asterisk / node-ari-client

Node.js client for ARI. This library is best effort with limited support.
Other
253 stars 99 forks source link

ari.channels.create() and ari.channels.dial() function not working #83

Closed mpbanna closed 7 years ago

mpbanna commented 7 years ago

Hello , I am talking about issue #77. In this issue i am using ari.channels.create() then ari.channels.dial() but it gives type error:

/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/async.js:43 fn = function () { throw arg; }; ^

TypeError: client.channels.create is not a function at clientLoaded (/usr/local/lib/node_modules/sarvIVR/IVR/mahi_callTransfer.js:163:25) at tryCatcher (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/util.js:26:23) at Promise.successAdapter (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/nodeify.js:23:30) at Promise._settlePromiseAt (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/promise.js:582:21) at Promise._settlePromises (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/promise.js:700:14) at Async._drainQueue (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/async.js:123:16) at Async._drainQueues (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/async.js:133:10) at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/ari-client/node_modules/bluebird/js/main/async.js:15:14) at processImmediate [as _immediateCallback] (timers.js:383:17)

ruffrey commented 7 years ago

Hi mpbanna, will you post a sample of the code you are using before the error happens?

jcolp commented 7 years ago

As well, what version of Asterisk are you using? The create/dial functionality is only present in Asterisk 14.

mpbanna commented 7 years ago

all right , i am using old version of asterisk , now i upgrade it to asterisk 14 and it working.

gabrielmatau79 commented 6 years ago

Hi! everyone i have the same problem but i has be installed asterisk 14.7.7 any idea?