Jump to content

Edit History

abuzooz

abuzooz

Hi All

I am using S3 storage plan to save recordings, media and voice messages, however, I noticed that kazoo is only saving a copy of the file binary to S3 and keeping another copy in Couchdb, the local copy is used by Kazoo when once of these files is requested based on the logs.

I was reading and I noticed that connection should be configured not to use local (couchdb), howver,  there is no documentation for that in the web that I can find to change the connection to s3, any advise? is there any drawbacks/concerns not saving a local copy of these binaries? like performance..etc?

 

{
   "data":{
      "attachments":{
         "bb966f5b0af243bb835b6c07ca3120a7":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
               "bucket":"XX",
               "key":"XXX",
               "secret":"XXXXX/XXXXX",
               "bucket_access_method":"auto",
               "field_list":[
                  {
                     "arg":"account_id"
                  },
                  {
                     "const":"voicemail"
                  },
                  {
                     "arg":"attachment"
                  }
               ]
            }
         },
         "2e878cb4a14a46d4abd35a9a3ce6ae8e":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
               "bucket":"XX",
               "key":"XXX",
               "secret":"XXXX/XXXXX",
               "bucket_access_method":"auto",
               "field_list":[
                  {
                     "arg":"account_id"
                  },
                  {
                     "const":"media"
                  },
                  {
                     "arg":"attachment"
                  }
               ]
            }
         },
         "f8885bb42bdb4466a88847e2d6fbe1b2":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
               "bucket":"XX",
               "key":"XXX",
               "secret":"XXX/XXXX",
               "bucket_access_method":"auto",
               "field_list":[
                  {
                     "arg":"account_id"
                  },
                  {
                     "const":"recordings"
                  },
                  {
                     "arg":"attachment"
                  }
               ]
            }
         }
      },
      "plan":{
         "modb":{
            "attachments":{
               
            },
            "connection":"local",
            "types":{
               "call_recording":{
                  "attachments":{
                     "handler":"f8885bb42bdb4466a88847e2d6fbe1b2"
                  }
               },
               "mailbox_message":{
                  "attachments":{
                     "handler":"bb966f5b0af243bb835b6c07ca3120a7"
                  }
               },
               "media":{
                  "attachments":{
                     "handler":"2e878cb4a14a46d4abd35a9a3ce6ae8e"
                  }
               }
            }
         },
         "account":{
            "attachments":{
               
            },
            "connection":"local",
            "types":{
               "call_recording":{
                  "attachments":{
                     "handler":"f8885bb42bdb4466a88847e2d6fbe1b2"
                  }
               },
               "mailbox_message":{
                  "attachments":{
                     "handler":"bb966f5b0af243bb835b6c07ca3120a7"
                  }
               },
               "media":{
                  "attachments":{
                     "handler":"2e878cb4a14a46d4abd35a9a3ce6ae8e"
                  }
               }
            }
         }
      }
   }
}
abuzooz

abuzooz

Hi All

I am using S3 storage plan to save recordings, media and voice messages, however, I noticed that kazoo is only saving a copy of the file binary to S3 and keeping another copy in Couchdb, the local copy is used by Kazoo when once of these files is requested based on the logs.

I was reading and I noticed that connection should be configured not to use local (couchdb), howver,  there is no documentation for that in the web that I can find to change the connection to s3, any advise? is there any drawbacks/concerns not saving a local copy of these binaries? like performance..etc?

 

{"data":{
    "attachments": {
        "bb966f5b0af243bb835b6c07ca3120a7":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
                "bucket":"XX",
                 "key":"XXX",
                "secret":"XXXXX/XXXXX",
                  "bucket_access_method":"auto",
                 
                 "field_list":[
                      {"arg":"account_id"},
                       {"const":"voicemail"},
                        {"arg":"attachment"}]                   
            }
        },
        "2e878cb4a14a46d4abd35a9a3ce6ae8e":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
                "bucket":"XX",
                 "key":"XXX",
                "secret":"XXXX/XXXXX",
                  "bucket_access_method":"auto",
                 
                 "field_list":[
                      {"arg":"account_id"},
                       {"const":"media"},
                        {"arg":"attachment"}]                   
            }
        },
         "f8885bb42bdb4466a88847e2d6fbe1b2":{
            "handler":"s3",
            "name":"Kazoo S3",
            "settings":{
                "bucket":"XX",
                "key":"XXX",
                "secret":"XXX/XXXX",
                "bucket_access_method":"auto",
               
                 "field_list":[
                      {"arg":"account_id"},
                       {"const":"recordings"},
                      {"arg":"attachment"}]
                      
            }
        }
    },
    
"plan":{
       "modb": {
                "attachments": {},
                "connection""local",
                "types": {
                    "call_recording": {
                        "attachments": {
                            "handler""f8885bb42bdb4466a88847e2d6fbe1b2"
                        }
                    },
                    "mailbox_message": {
                        "attachments": {
                            "handler""bb966f5b0af243bb835b6c07ca3120a7"
                        }
                    },
                    "media": {
                        "attachments": {
                            "handler""2e878cb4a14a46d4abd35a9a3ce6ae8e"
                        }
                    }
                }
            },
             "account": {
                "attachments": {},
                "connection""local",
                "types": {
                    "call_recording": {
                        "attachments": {
                            "handler""f8885bb42bdb4466a88847e2d6fbe1b2"
                        }
                    },
                    "mailbox_message": {
                        "attachments": {
                            "handler""bb966f5b0af243bb835b6c07ca3120a7"
                        }
                    },
                    "media": {
                        "attachments": {
                            "handler""2e878cb4a14a46d4abd35a9a3ce6ae8e"
                        }
                    }
                }
            }
    }
}}
×
×
  • Create New...