Commit 0122e71f authored by Sergey Dmitriev's avatar Sergey Dmitriev

fix recordFile

up version
parent 007caa5a
......@@ -121,13 +121,15 @@ Context.prototype.answer = function (cb) {
this.send('ANSWER' + '\n', cb || function() { });
};
Context.prototype.recordFile = function (filename, format, escape_digits, timeout, cb) {
Context.prototype.recordFile = function (filename, format, escape_digits, timeout, offset, beep, silence, cb) {
var str = [
'"'+filename+'"',
format,
escape_digits,
parseInt(timeout)*1000,
'0 1 2'
parseInt(timeout)*1000,
offset,
beep,
silence
].join(' ');
this.send('RECORD FILE ' + str + '\n', cb || function() { });
};
......
......@@ -2,7 +2,7 @@
"author": "Sergey Dmitriev <serge.dmitriev@gmail.com>",
"name": "ding-dong",
"description": "AGI (Asterisk Gateway Interface) for writing dialplan scripts",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "git",
"url": "git://github.com/antirek/ding-dong.git"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment