Hi Bradley,

I don't know how to get Kannel to do this automatically, but here's what
we do:

1. Tell Kannel to stop the modem with an http admin command (stop-smsc
see "HTTP administration" section of userguide)
2. Reset the modem (I use minicom to send an AT+FUN or AT+WOPEN)
3. Tell Kannel to restart the modem with an http admin command (start-smsc)

Using the stop and start smsc commands prevents Kannel from getting
confused when you reset the modem.  I built a tool that sends the http
admin commands for me so that I don't have to mess around with the form
of the url each time I do this.  To make it automatic, I would imagine
that you could have something watching your logs for errors which would
then kick off a script that stops, resets, and then restarts the modem,
assuming that your UPS is set up to allow your script to power cycle the
modem.

Also, I have found that not all send errors are cause for resetting
modems.  I have seen a lot of send errors that were caused by a MO
interrupting a MT.  Kannel queued the MT, then tried again successfully
after some period of time.  I only reset the modem if I see the same
error show up on three or more consecutive attempts.

Nathan


Bradley Schatz wrote:
> Hi,
>
> How can I configure Kannel to do a complete reset of the GSM modem
> when it encounters send errors?
>
> In this case, the modem in on a different UPS to the server running
> kannel, and can in some instances power cycle while Kannel keeps
> running. This leaves the modem in a state that kannel does not expect,
> and all subsequent sms sends result in an error.
>
> I have attempted to use the max-error-count property of the smsc to
> acheive this, in combination with the reset-string in the modem
> definition, to no useful effect.
>
> Thanks,
>
> Bradley
>
>
>   

Reply via email to