I have a node js/express application that is using the twilio automated voice survey, and I have this issue where if my phone number calls the survey, the program jumps to the last statement in the survey, and then ends. None of the questions of the survey are asked.
However when any other number calls, the survey works as normal. Does anyone have some insight on this problem?
I even tested the node js/express application with another twilio number, and this problem still arises with my phone number.
I am using ngrok as a webhook for the application.
I am not sure if the problem is somewhere in my mongoDB, and I do not think I have filtered my number anywhere in the node js application
Please let me know if there is any useful information I can add to make this question more insightful
Here is some relevant code from the survey, which takes in the survey data (the survey questions), filters through the users recorded responses (survey response):
var SurveyResponse = require('../models/SurveyResponse');
var survey = require('../survey_data');
module.exports = function(request, response) {
SurveyResponse.find({
complete: true
}).limit(100).exec(function(err, docs) {
if (err) {
response.status(500).send(err);
} else {
response.send({
survey: survey,
results: docs
});
}
});
};