On Thu, May 14, 2009 at 3:09 PM, Beatrice Tamburrino <[email protected]> wrote:
> I'm facing one problem with the status 4 (queued on SMSC ). My extern > application shows "sending..." while the dlr-status is 4. The message reaches the SMSC but it can not be delivered because the recipient is offline (phone turned off, or out of network reach). The SMSC will retry to deliver it in predefined time interval (SMSC parameter you can not change it) until it is sent or the message validity period is expired when the message will be deleted from the SMSC. > On the kannel server I've set the parameter: > sms-resend-retry = 2 > sms-resend-retry = 120 > > this means, kannel tries only two time and then discards the SMS. No. You've messed the things with this parameter. In case when kannel can not deliver the message to the SMSC (can not reach the SMSC because of network problem for example) or the bearerbox can not deliver the message to the GSM modem or phone connected to your box (bad config, init string or so), the failed messages are queued for later delivery (you get reply message "3: Queued for later delivery" if you use http interface to send the messages). The sms-resend-freq defines the frequency in seconds when kannel will retry to send these queued messages which were not delivered to the SMSC (defaults to 60 seconds) and the sms-resend-retry defines how many times it will retry for each messages (defaults to -1 which means unlimited number of retries) Don't touch these parameters if you don't really need them ;) In your case the message is delivered to the SMSC and the recipient can not be reached. Check your logs to see if this dlr-status appears only for some mobile numbers. If that is the case you can call your mobile provider and ask them what's the problem with these subscribers. > But my application is still showing "sending..." even the message has been > discarded. I don't know how your application handles the message states I guess you are reading the message states from the dlr reports ;) If that is so, showing "sending..." is ok. If the message has arrived to the SMSC, message is not discarded until you get delivery report for that. Ask your self one question, do you really need to get a delivery report when the SMSC queues the message? >From my personal experience, I worked for a mobile operator, nobody didn't use delivery statuses different then message delivered / not delivered, but its your choice ;) BR, Jovan
