Re: [RFI+Patch] AT2 Modems.conf
"Bruno David Rodrigues" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <022d01c1caed$80ef2260$0a00a8c0@davi> |
----- Original Message ----- From: "Stipe Tolj" <[email protected]> To: "Bruno David Rodrigues" <[email protected]> Cc: <[email protected]> Sent: Wednesday, March 13, 2002 10:24 PM Subject: Re: [RFI+Patch] AT2 Modems.conf > Bruno David Rodrigues wrote: > > > > Attached to this message is a patch to at2 to have modem definitions > > outside the source > > > > I want you to test it and check if it's working and some > > comments/advise to some issues: > > > > 1. I'm opening a "kannel.conf" that is hard coded on the code. It's > > not easy to pass the full > > shouldn't be hard coded IMO. Of course not, but I'm asking for help for how to have "kannel.conf". Uhm.. forget it. I've now seen that we have a conffile in CfgGroup structure, so smsc_at2_create receive its Config and know which file have it been read, so I just have to re-read the same file. > > 6. in modems definition, I've included a keepalive-cmd. This way, I > > can set ericsson and Nokia to do a > > AT+CBC;+CSQ and receive +CBC: 0,63 (on batery, 63% full) and +CSQ: > > 15,99 (gsm signal quality) :) > > Hmm, so this is only displaying "additional" information to the log. > What about using the batery and signal quality to route/load balance > sms between different GSM modem. I think of scenarios where a usually > routed SMS goes to smsc-id A and if that has been detected to be out > of network it should route to smsc-id B, or similar. exactly. Use it to set SMSC_RECONNECTING thus disabling this smsc and forcing the messages to go through other connection and/or try to reconnect the modem. My M20 disconnects from the network, sometimes temporarly as in some minutes and get back to normal, sometimes real disconnect and don't reconnect. The strange is that if I restart kannel, the M20 reconnects to GSM. I was thinking in if the modem disconnects from GSM, kannel would reconnect to the modem and hope that the AT&F... and other initialization command would reconnect it to GSM