Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alvagi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
alvagi
Commits
0122e71f
Commit
0122e71f
authored
Mar 19, 2015
by
Sergey Dmitriev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix recordFile
up version
parent
007caa5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
context.js
lib/context.js
+5
-3
package.json
package.json
+1
-1
No files found.
lib/context.js
View file @
0122e71f
...
@@ -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
()
{
});
};
};
...
...
package.json
View file @
0122e71f
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment