simbabarry / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

Queries on configuration, status etc. #455

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
The doc. at http://code.google.com/p/smslib/wiki/SMSServer_DB_Interface
mentions the below description for the 'smsserver_out' column 'status'
<U" : unsent, "Q" : queued, "S" : sent, "F" : failed. This field is updated by 
SMSServer when it sends your message. If set in the configuration file, this 
field takes extra values depending on the received status report message: "D" : 
delivered, "P" : pending, "A" : aborted.>
Some clarifications regarding the 'status'

i) Does a status 'Q' imply a) the message is in a Q with the smsserver process 
? or b) Q at the gateway. I assume it is the former ?

ii) What should one set in the configuration file to obtain the additional 
status flags of 'D','P' and 'A' ? My settings for the db is  
"db1.update_outbound_on_statusreport=yes". What is the configuration setting I 
need to include in order to "request status reports for all outbound messages" ?

iii) I notice that an sms is marked as 'F' after 3 'errors'? I am a little 
confused with the disconnect b/w the conf. setting of 'db1.retries=2' and error 
value of '3'  or is it like
no retry (0) error is 1, 1 retry error is 2 and 2 retries error is 3 (guess so)
A query on the batch_size
>Is there any limit on the batch size that can be set. Any countereffects is it 
is set to a higher value (say 200 ?) or is it better to set it to a lower value 
for larger no. of messages ? 

Original issue reported on code.google.com by ma...@simplifytek.com on 26 Jan 2012 at 12:00

GoogleCodeExporter commented 9 years ago
i) Yes, the former.
ii) This is OK, but make sure that the 'STATUS_REPORT' field is set to 1 as 
well (smsserver_out table).
iii) You are also correct. 2 retries, for example, push the counter to 3.
iv) This is difficult to answer... The 'batch_size' is used together with 
'settings.outbound_interval'. Each 'settings.outbound_interval' seconds, 
'batch_size' number of sms are loaded and sent.

You don't want to set this (or the combination of two values) very high as you 
need to give some idle time to your modem as well. This is especially true if 
you also receive messages.

Original comment by T.Delenikas on 28 Jan 2012 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 7 Feb 2012 at 3:12