asterisk / node-ari-client

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

Channel Play out of memory #131

Open pavelsc opened 5 years ago

pavelsc commented 5 years ago

Hi, I have an issue with channel play function. File exists (95kB) and call.caller is a valid channelId. A channel is in a bridge.

client.channels.play({channelId: call.caller, media: '/mnt/storage/q.wav'}, (err, playback) => {
    if (err) {
        console.log(err);
    }
});

I don't see any lack of memory in htop and in free. Error trace below:

Error: {"message":"Out of memory"} at SwaggerRequest.swaggerError [as errorCallback] (/var/daemon/node_modules/ari-client/lib/client.js:253:23) at Object.error (/var/daemon/node_modules/swagger-client/lib/swagger.js:1077:24) at EventEmitter.error (/var/daemon/node_modules/swagger-client/lib/swagger.js:1296:19) at emitOne (events.js:116:13) at EventEmitter.emit (events.js:211:7) at emit (/var/daemon/node_modules/shred/lib/shred/request.js:454:21) at /var/daemon/node_modules/shred/lib/shred/request.js:473:9 at setBodyAndFinish (/var/daemon/node_modules/shred/lib/shred/response.js:103:7) at IncomingMessage. (/var/daemon/node_modules/shred/lib/shred/response.js:120:7) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9)