Stephen,
I follow that thread and I’m still waiting patiently for the “detailed how to” mentioned on Oct 19 however, it has yet to materialize. (nudge-nudge Jerry ;o)
So @hitechelp can you check inside your ‘composer.json’ file and look inside the “require” section to see if openemr/oe-module-faxsms is listed?
If its not listed then your composer install failed and we’d need to debug further. If it is listed double check inside your <openemr_install>/interface/modules/custom_modules/ and check if the oe-module-faxsms directory is there.
If both of those items are there then make sure that you are looking at the unregistered tabs in your modules directory and see if the module is listed there. Here is a screenshot of my unregistered modules tab:
Hit the register on the FaxSMS, then hit the install button and finally the enable button (yes I hate the 3 step click).
Let me know if you get that far or any errors you hit on the way.
I don’t have composer installed yet because, as I said yesterday, I don’t know which directory to install composer or which type of install (local vs global) is needed for it to work with OpenEMR.
Perhaps you could enlighten me, please.
It doesn’t matter, either one will work with OpenEMR as long as the version is correct. If you are on the 6.0 OpenEMR codebase composer 2 works just fine.
Ok, so local or global doesn’t matter, but where do I install composer? (Which directory)
The composer.json file located in /var/www/html/openemr does not list openemr/oe-module-faxsms
I’m guessing that gets added to the “require” section of the composer.json after composer is installed and I run; composer require "openemr/oe-module-faxsms:2.2.0 and it will also pull the file from git?
So it doesn’t matter where you install composer as long as it is accessible from your linux $PATH environment. I typically when doing a local install will run the installation directions from the same directory as my project. If I want to install it globally I install composer in my $HOME/bin directory.
Running the composer require will add the oe-module-faxsms entry into your composer.json. Make sure to run the composer require command inside the openemr installation folder. It will pull the file from git and any sub-dependencies.
Is the fax/sms module compatible with multi-site?
I am getting the following error, upon clicking the save button:
FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream,
client: 192.168.1.1, server: mydomain.net,
request: "GET /interface/modules/custom_modules/oe-module-faxsms/interface/login/login.php?site=default HTTP/2.0",
upstream: "fastcgi://unix:/path/to/php-fpm.sock:", host: "mydomain.net",
referrer: "https://mydomain.net/interface/modules/custom_modules/oe-module-faxsms/setup.php"
But my office ID is not default.
I am working in my site, it ought to not be sending the information to the default site!
thanks Sandra
Actually, never mind. This looks like a redirect. It looks to be an nginx problem.
I will keep trying.
Ok, these are the rewrite rules for nginx that I have come up with so far for the fax module:
if (!-e $request_filename) {
#other rewrite rules
rewrite ... etc etc
rewrite ^(.*/faxserver)$ /fax_serve.php?_FAX=$1 break;
rewrite ^(.*/oe-module-faxsms)$ /index.php?_ACTION_COMMAND=$1 break;
}
With these rules, the fax module opens and seems to work. However, I am unable to enter the credentials.
could someone post what the credentials would look like in the table? i can just enter them directly into the tables to further test the module with nginx.
thanks
Credentials are encrypted and stored in table module_faxsms_credentials
So no goey that route.
Why can’t you save? Where are you entering credentials?
right!
I do get into the credentials entry window:
However, clicking the save button does nothing. I did enter my credentials. I cut them out from this image.
This is my error message:
"Primary script unknown" while reading response header from upstream,
client: 192.168.1.1, server: mydomain.net,
request: "GET /interface/modules/custom_modules/oe-module-faxsms/interface/login/login.php? site=default HTTP/2.0",
upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "mydomain.net",
referrer: "https://mydomain.net/interface/modules/custom_modules/oe-module-faxsms/setup.php"
The request tells me that my problem is a redirect problem. I am not passing some variable, hence my redirect rule above is missing some argument.
rewrite needs to be relative to directory.
Try:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /?_ACTION_COMMAND=$1 break;
}
}
like this then?
location /oe-module-faxsms {
if (!-e $request_filename){
rewrite ^(.*)$ /?_ACTION_COMMAND=$1 break;
}
}
that should work but my knowledge of nginx is old and limited. Much like me.
what is the url that is sent when the save button is clicked?
Server shouldn’t need to know that as it’s a relative rest API call. Open browser console and look at request when you click save…
Also note this I just put up: Twilio Fax/SMS Module Deprecation
for example, how is this line supposed to be written?
/path/to/openemr/interface/modules/custom_modules/oe-module-faxsms/getPending
So, what you mean, is than when you click the save button the credentials get sent to twilio for verification?
I will try ring central
This is too complicated. RC is showing me tons of stuff I don’t need.
How do I get the keys and ssid i need in RC?
NVM, I was supposed to sign up for a developer account. That site is down
Ok, I will try it
No, save is sent to local rest endpoint and sms app is already in the fax/sms root directory(oe-module-faxsms) so rewrites are local there(./). Again i’m unsure about nginx rewrites and somebody that deals with nginx needs to help here. Rewrite I gave should work…
For RC sandbox there are forum threads showing RC setup somewhere I believe.