Hi,
My virtual fax api has been working until a few days ago.
I am able to get a successful 200 OK reply but it is not showing up on the fax viewer and the fax is not sending either. I have tested it with Postman as well.
Hi,
My virtual fax api has been working until a few days ago.
I am able to get a successful 200 OK reply but it is not showing up on the fax viewer and the fax is not sending either. I have tested it with Postman as well.
Actually I worked it out and I just needed to change the url address to get it to download properly.
The 200 OK response unfortunately was not very informative and I thought VitalPBX could download the file when in actually fact it couldn’t so no fax was generated to send.
What changed and what did you do exactly to get it to work?
I was using tmpfiles.org to host the file temporarily for vitalpbx to download.
The proper hosting url had a “/dl/” within the url to link to the file directly.
i.e. t m p f i l e s .org/dl/<>/<> instead of
t m p f i l e s .org/<>/<>
Vitalpbx must have assumed it was a valid download link as the address ended in a .pdf even when there was no file to attach/download.
Thanks for the reply. So is your script running outside of the vitalpbx instance?
Otherwise, there would be no need to use a service like tempfiles org.
Please keep in mind to think about if tmpfiles org is really trustworthy
Thanks, after some additional testing I was able to sftp upload into my vitalpbx server and then point the url locally to the file. I can also sftp to delete the file afterwards. Working even better now. Thanks for the tip.