Cloud Storage and the CFD Read/Write Component

sheltermanager@siskiyouhu

SOHO User
Joined
May 11, 2025
Messages
8
Reaction score
2
When asking the CFA to write to a file it creates a file and folder in this location.

2025/05/10 10:34:50.169|0015|Trac| [_3CX.Script] _650_99.Main.14821.[C:2954.3]-WriteNumber - CallFlow.CFD.FileManagementComponent 'WriteNumber' - Creating files folder '/var/lib/3cxpbx/Instance1/Data/Callflows/Files'

But I do not know how to access this location being that we are cloud service based, 3cx hosts our server.
I can call these files using the CFA, and of course I can edit them etc. But do i need to worry about deleting them? I could easily create thousands of these. What's the limit?
Id also like to access them outside of the CFA.

2025/05/10 10:34:50.170|0015|Trac| [_3CX.Script] _650_99.Main.14821.[C:2954.3]-WriteNumber - CallFlow.CFD.FileManagementComponent 'WriteNumber' - Start writing file '/var/lib/3cxpbx/Instance1/Data/Callflows/Files/.\testfile.txt'
 
When asking the CFA to write to a file it creates a file and folder in this location.

2025/05/10 10:34:50.169|0015|Trac| [_3CX.Script] _650_99.Main.14821.[C:2954.3]-WriteNumber - CallFlow.CFD.FileManagementComponent 'WriteNumber' - Creating files folder '/var/lib/3cxpbx/Instance1/Data/Callflows/Files'

But I do not know how to access this location being that we are cloud service based, 3cx hosts our server.
I can call these files using the CFA, and of course I can edit them etc. But do i need to worry about deleting them?
No, but there shouldn't be too many or take up too much space. At some point the 3CX instance will run out of space.

I could easily create thousands of these. What's the limit?
look above

Id also like to access them outside of the CFA.
You don't have direct access to these files at this location. It's simply not intended. You can upload them somewhere else with the CFD but with limited resources.

Another option might be to create these files in the 3CX provisioning directory or a subdirectory of it. Then you would have access via the 3CX web server, but be careful with sensitive content there. I don't know if that's actually possible.
 
Another possible approach, create your own web service in your own location. You will have control of everything there. Then the CFD app can just request those files to the server through an API...
 
It is always helpful to understand generally what the purpose of the files are, and whether these files are written to over time, or if it is a one-time write operation. Without knowing more about how the files are used, I can only generally concur with @edossantos_sipcaller. If the files are not needed later by this or another CFD application, maybe you can write the files locally until the process is finished, and then move the files via webservice elsewhere. While they may be tiny files, I think you should consider a clean-up process that deletes files *.txt that are older than X days.
 

Forum statistics

Threads
111,973
Messages
590,079
Members
164,899
Latest member
mazet