Skip to content

Commit 18edc35

Browse files
committed
change readme
1 parent 6998a47 commit 18edc35

File tree

2 files changed

+24
-31
lines changed

2 files changed

+24
-31
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,25 @@ Configuration
6060

6161
``````
6262
{
63-
port: 3000,
63+
server: {
64+
port: 3000
65+
},
66+
processing: {
67+
totalAttempts: 2,
68+
playGreeting: true,
69+
playBeepBeforeRecording: false
70+
},
71+
asterisk: {
72+
sounds: {
73+
onErrorBeforeFinish: 'invalid',
74+
onErrorBeforeRepeat: 'invalid',
75+
greeting: 'tt-monkeysintro'
76+
},
77+
recognitionDialplanVars: {
78+
result: 'RECOGNITION_RESULT',
79+
channel: 'RECOGNITION_CHANNEL'
80+
}
81+
},
6482
record: {
6583
directory: '/tmp',
6684
type: 'wav',
@@ -91,7 +109,7 @@ Configuration
91109
json: false
92110
}
93111
}
94-
};
112+
}
95113
96114
``````
97115

@@ -101,7 +119,10 @@ Write dialplan for call to AGI-server voicer like
101119

102120
`````
103121
[default]
104-
exten = > 1000,1,AGI(agi://localhost:3000)
122+
exten=1000,1,AGI(agi://localhost:3000)
123+
exten=1000,n,GotoIf($[${RECOGNITION_RESULT}=SUCCESS]?:default,1000,4)
124+
exten=1000,n,Dial(${RECOGNITION_CHANNEL})
125+
105126
`````
106127

107128

spec/HandlerSpec.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -85,34 +85,6 @@ describe('Handler', function () {
8585
handler.handle(context);
8686
});
8787

88-
it('should use context answer method', function (done) {
89-
context.answer = function () {
90-
done();
91-
};
92-
handler.handle(context);
93-
});
94-
95-
it('should use context streamFile method', function (done) {
96-
context.streamFile = function (file, acceptDigits) {
97-
done();
98-
};
99-
handler.handle(context);
100-
});
101-
102-
it('should use context recordFile method', function (done) {
103-
context.recordFile = function (file, format, escape_digits, timeout, offset, beep, silence) {
104-
done();
105-
};
106-
handler.handle(context);
107-
});
108-
109-
it('should use context setVariable method', function (done) {
110-
context.setVariable = function (varname, value) {
111-
done();
112-
};
113-
handler.handle(context);
114-
});
115-
11688
it('should use context end method', function (done) {
11789
context.end = function () {
11890
done();

0 commit comments

Comments
 (0)