PG database lock only for cluster or would this be a possibility for standalone?The issue was related to a PG database lock situation, as it is a Cluster. Thanks a lot.
PG database lock only for cluster or would this be a possibility for standalone?The issue was related to a PG database lock situation, as it is a Cluster. Thanks a lot.
It was a BDR DDL issue replication causing this database lock. Somehow this was the reason the table could not be created. I dont think this a possiblitity regarding standalone install. What is the PostgreSql version running in your system? Mine is 9.4.PG database lock only for cluster or would this be a possibility for standalone?
Hello Edson,It was a BDR DDL issue replication causing this database lock. Somehow this was the reason the table could not be created. I dont think this a possiblitity regarding standalone install. What is the PostgreSql version running in your system? Mine is 9.4.
I'll just put this out there for those of you attempting to use this module:
I alluded to an issue in the original post, where on some softphone clients it would duplicate the message 120+ times. It will then usually crash/freeze the freeswitch process. It turns out, this was not a problem with the softphone client. It is a problem with Freeswitch. And apparently, not even with the SMS module itself. This bug report indicates that it is an issue with the underlying handler. In spite of the lack of any apparent definite resolution to that bug report, we have only replicated the problem under 1.6.x versions of Freeswitch and not 1.8.x, so it looks like the problem has been fixed. I believe @MTR has also experienced similar results.
Unfortunately, our production systems are currently running 1.6.x, so we have had to disable the module while prepping a transition. There are some complicating factors that make this transition difficult, which I won't go into.
Suffice it to say that I strongly recommend that if you are considering using this module, make sure that you on Freeswitch 1.8.
<extension name="other">
<condition field="to" expression="^(.*)$">
<action application="set" data="final_delivery=true"/>
<!-- <action application="send"/> -->
</condition>
</extension>
It looks like something is wrong in the \sms\app_config.php file. It's looking for two tables named "v", not finding them, and trying to create them. Instead, it should be looking for "v_sms_messages" and "v_sms_destinations". There may be updates to the 4.4 schema upgrade engine. I've tweaked a couple of settings in the attached. Give this a try and see how it works.
The data table error you quoted may be a bit of a red herring, though once @yukon gets this all updated, I think the point will be moot. The original error I was addressing turned out to be not fixed by that app_config.php file change, but rather an issue on the poster's system related to BDR locking.I just did a fresh install of Debian 9 and 4.4 and set up this just following this. https://github.com/fusionpbx/fusionpbx-apps/tree/master/sms and I was unable to add the APP / SMS destination so I found your app_config.php a few posts above and then I changed out what I just downloaded from git. This allowed me to run the upgrade schema and it added the correct tables. I verified this by running the schema upgrade again and nothing was changed. I was then able to add my sms destination.
Can you take the time to update the git repo with this file and also make a note that this shouldn't be used with freeswitch 1.6. If this would have worked out of the box and I didn't go searching I would have possibly crashed my production system due to the bug that you posted that causes high cpu usage.
Thanks if I will have time today to fix it I will submit the codeHmm, good question. I didn't write that portion of the code, but looking at it, apparently the author didn't envision that and didn't build in support for it. If you want to look at it, open /apps/sms/index.lua and search for v_default_settings. Looks like those domain-level settings are stored in v_domain_settings. The code will need to be modified to look there first in all those places. I'm planning some fairly big updates to this app in the next couple of weeks. I'll try to take a look at this then, unless someone else does so first.
Ok. I'm working on other parts of it, but I'll look for any updates you may make.Thanks if I will have time today to fix it I will submit the code
Exactly! I think that will work much better. It should also clean up the code and even make it more efficient, because that one single function loads all of the default (global) and domain settings into an array. They can then be accessed as needed from the array, instead of doing a SQL request every time we need another setting.it seem like this code talks direcly to SQL mark has a class for this
under /resources/function/settings.lua
require "resources.functions.settings";
i will need to rewrite the code block for twillio
ETA: based on workload, probably next week at the earliest. I squashed some more bugs today, including the multi-line problem.Thank you
Do you have an ETA for committing this new code?
What are the big changes?
On point 4. Yes, that’s the default settings that we discussed before.For point 4. Using library instead of SQL, is that for default settings?
Also the carrier that someone add it . This was me. Shuold I send you the code I did on a PM?