message: allow validation url to be passes from outside explicitely
diff: @@ -182,8 +182,11 @@ function TwilioSMS(configuration) {
  // validate that requests are coming from twilio
  function verifyRequest(req, res, next) {
  var twilioSignature = req.headers['x-twilio-signature'];
  - var url = (req.headers['x-forwarded-proto'] || req.protocol) + '://' + req.hostname + req.originalUrl;
  - if (twilio.validateRequest(twilioSMS.config.auth_token, twilioSignature, url, req.body)) {
  +
  + var validation_url = twilioSMS.config.validation_url ||
  + ((req.headers['x-forwarded-proto'] || req.protocol) + '://' + req.hostname + req.originalUrl);
  +
  + if (twilio.validateRequest(twilioSMS.config.auth_token, twilioSignature, validation_url, req.body)) {
  next();
  } else {
  twilioSMS.log('** Invalid twilio signature on incoming request!');
  