Hi,
I noticed in my logs that Kannel was waiting for half of the time specified
in the sms-resend-freq directive when retrying temporarily failed messages.
The userguide documents the behavior of sms-resend-freq as:
Frequency for the SMS resend thread in which temporarily failed or queued
messages will be resent. Defaults to 60 seconds.
After checking bb_smscconn.c, I found this in the sms_router function...
/* sleep: sms_resend_frequency / 2 , so we reduce amount of msgs to send */
double sleep_time = (sms_resend_frequency / 2 > 1 ? sms_resend_frequency / 2
: sms_resend_frequency);
debug("bb.sms", 0, "sms_router: time to sleep %.2f secs.", sleep_time);
gwthread_sleep(sleep_time);
How exactly does halving the sleep time reduce the amount of messages to
send? Can someone please elaborate on the rationale behind this.
It will probably be helpful if the userguide documents this behavior.
Thanks,
Nii.