Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / models / voice_extension.js
index 933f094..441a5ad 100644 (file)
@@ -117,6 +117,10 @@ module.exports = function(sequelize, DataTypes) {
     recordingFormat: {
       type: DataTypes.STRING,
       defaultValue: 'wav'
+    },
+    answer: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: true
     }
   }, {
     tableName: 'voice_extensions',
@@ -135,7 +139,7 @@ module.exports = function(sequelize, DataTypes) {
           where: {
             isApp: true
           },
-          attributes: ['app', 'interval', 'IntervalId', 'callerID', 'appdata', 'type', 'appType']
+          attributes: ['app', 'interval', 'IntervalId', 'callerID', 'appdata', 'type', 'appType', 'answer']
         }]
       });