Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified Some Code Items to Work Better with the latest version of the VoiceItAPI #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using the VoiceIT API.
- Twilio Account
-- [Twilio Developer Registration](https://www.twilio.com/try-twilio)
- VoiceIt Account
-- [VoiceIt Developer Registration](https://siv.voiceprintportal.com/sivservice/developerlogin.html)
-- [VoiceIt Developer Registration](https://siv.voiceprintportal.com/getDeveloperID.jsp)

## Install:

Expand All @@ -25,6 +25,6 @@ npm install

$ heroku create
$ git push heroku master
$ heroku config:set VOICEIT_PASSWORD=foo VOICEIT_DEV_ID=12345
$ heroku config:set VOICEIT_PASSWORD=foo VOICEIT_DEV_ID=1d6361f81f3047ca8b0c0332ac0fb17d

Point a Twilio Phone number to VoiceURL to your `http://my.herokuapp.com/incoming_call`
25 changes: 13 additions & 12 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ app.post('/incoming_call', function(req, res) {
headers: {
'VsitEmail' : caller.email,
'VsitPassword' : caller.password,
'VsitDeveloperId' : VOICEIT_DEV_ID
'VsitDeveloperId' : VOICEIT_DEV_ID,
'PlatformID' : '23'//Please IGNORE This Parameter Used Internally to gather Platform Analytics
}
};

Expand Down Expand Up @@ -89,7 +90,8 @@ app.post('/incoming_call', function(req, res) {
'VsitFirstName' : 'First' + caller.number,
'VsitLastName' : 'Last' + caller.number,
'VsitPassword' : caller.password,
'VsitPhone1' : caller.number
'VsitPhone1' : caller.number,
'PlatformID' : '23'//Please IGNORE This Parameter Used Internally to gather Platform Analytics
}
};

Expand Down Expand Up @@ -186,7 +188,8 @@ app.post('/process_enrollment', function(req, res) {
'VsitDeveloperId' : VOICEIT_DEV_ID,
'VsitEmail' : caller.email,
'VsitPassword' : caller.password,
'VsitwavURL' : recordingURL
'VsitwavURL' : recordingURL,
'PlatformID' : '23'//Please IGNORE This Parameter Used Internally to gather Platform Analytics
}
};

Expand Down Expand Up @@ -229,14 +232,12 @@ app.post('/process_authentication', function(req, res) {
var options = {
url: 'https://siv.voiceprintportal.com/sivservice/api/authentications/bywavurl',
headers: {
'VsitAccuracy' : 5,
'VsitAccuracyPassIncrement' : 2,
'VsitAccuracyPasses' : 4,
'VsitConfidence' : 87,
'VsitDeveloperId' : VOICEIT_DEV_ID,
'VsitEmail' : caller.email,
'VsitPassword' : caller.password,
'VsitwavURL' : recordingURL
'VsitConfidence' : 89,
'VsitDeveloperId': VOICEIT_DEV_ID,
'VsitEmail' : caller.email,
'VsitPassword' : caller.password,
'VsitwavURL' : recordingURL,
'PlatformID' : '23'//Please IGNORE This Parameter Used Internally to gather Platform Analytics
}
};

Expand Down Expand Up @@ -267,4 +268,4 @@ app.post('/process_authentication', function(req, res) {
});

app.listen(port);
console.log('Running bioauthentication on port ' + port);
console.log('Running Voice Biometrics IVR Server on port ' + port);