CoreBOSBB
Module SMSNotifier Problem - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Modules/Extension Support (https://discussions.corebos.org/forumdisplay.php?fid=9)
+--- Thread: Module SMSNotifier Problem (/showthread.php?tid=1247)



Module SMSNotifier Problem - LorenzoGreco - 08-30-2018

Hi all,
i've a problem whith module SMSNotifier, setted with SKebby account.
Sometime, when i send SMS the system hangs for a long time ( like it's waiting an answer)
During this hosting I/O resource increases until 2MBS (the max), and also RAM usage.
I'm using apache with php 7.1
any idea to find the problem and to fix it?
Lorenzo

p.s. for the future, it will be a great idea to add SMS in Campaign module


RE: Module SMSNotifier Problem - joebordes - 08-30-2018

I add support for logging in Skebby and added some more log messages:

https://github.com/tsolucio/corebos/blob/3d8a8c44dd8dd5661b36038917fb973dcf6c3697/modules/SMSNotifier/ext/providers/Skebby.php#L40

activate the log and look in the logs/skebby.log to see if you can find out what is happening.


RE: Module SMSNotifier Problem - LorenzoGreco - 08-30-2018

enable logging with this? $LOG4PHP_DEBUG = true;


RE: Module SMSNotifier Problem - joebordes - 08-30-2018

no, here:

https://github.com/tsolucio/corebos/blob/3d8a8c44dd8dd5661b36038917fb973dcf6c3697/modules/SMSNotifier/ext/providers/Skebby.php#L40

private $enableLogging = true;


RE: Module SMSNotifier Problem - LorenzoGreco - 09-11-2018

I cant' resolve, because the log works only when system not hangs.
If system hangs, the log isn't fill in.


RE: Module SMSNotifier Problem - joebordes - 09-11-2018

find out which code you are executing in this "if":

https://github.com/tsolucio/corebos/blob/master/modules/SMSNotifier/ext/providers/Skebby.php#L168

if you are using the positive condition eliminate the @ from the calls to see if that gives you some errors:

https://github.com/tsolucio/corebos/blob/master/modules/SMSNotifier/ext/providers/Skebby.php#L183

I suppose that, if this stream just keeps on sending information, then it would do what you say: that line connects to the skebby server and reads information until they stop sending, If they just keep on sending then it will hang there reading and filling up the memory.