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) { ...@@ -121,13 +121,15 @@ Context.prototype.answer = function (cb) {
this.send('ANSWER' + '\n', cb || function() { }); 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 = [ var str = [
'"'+filename+'"', '"'+filename+'"',
format, format,
escape_digits, escape_digits,
parseInt(timeout)*1000, parseInt(timeout)*1000,
'0 1 2' offset,
beep,
silence
].join(' '); ].join(' ');
this.send('RECORD FILE ' + str + '\n', cb || function() { }); this.send('RECORD FILE ' + str + '\n', cb || function() { });
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"author": "Sergey Dmitriev <serge.dmitriev@gmail.com>", "author": "Sergey Dmitriev <serge.dmitriev@gmail.com>",
"name": "ding-dong", "name": "ding-dong",
"description": "AGI (Asterisk Gateway Interface) for writing dialplan scripts", "description": "AGI (Asterisk Gateway Interface) for writing dialplan scripts",
"version": "0.0.6", "version": "0.0.7",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/antirek/ding-dong.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