Hello everyone,
Although not entirely related to kannel I hope someone in this vibrant list could give me
some insight about following problem:

Oddly, after testing a library for MMS I'm no longer able to send sms with
a multitech gprs modem.
In this log I see that kannel is trying to use the default smsc number :

DEBUG: AT2[mt_modem]: --> AT+CMGF=0^M
DEBUG: AT2[mt_modem]: <-- OK
DEBUG: AT2[mt_modem]: --> AT+CSMS=?^M
DEBUG: AT2[mt_modem]: <-- +CSMS: (0,1)
DEBUG: AT2[mt_modem]: <-- OK
INFO: AT2[mt_modem]: Phase 2+ is supported
DEBUG: AT2[mt_modem]: --> AT+CSMS=1^M
DEBUG: AT2[mt_modem]: <-- +CSMS: 1,1,1
DEBUG: AT2[mt_modem]: <-- OK
DEBUG: AT2[mt_modem]: --> AT+CNMI=1,2,0,1,0^M
DEBUG: AT2[mt_modem]: <-- OK

DEBUG: AT2[mt_modem]: --> AT+CMGS=17^M
DEBUG: AT2[mt_modem]: <-- >
DEBUG: AT2[mt_modem]: send command status: 1
DEBUG: AT2[mt_modem]: --> 0011000A8155739073740000A70461F1980C
DEBUG: AT2[mt_modem]: --> ^Z
DEBUG: AT2[mt_modem]: <-- >
DEBUG: AT2[mt_modem]: <-- ERROR
ERROR: AT2[mt_modem]: Generic error: ERROR

So I thought the number was deleted from SIM or EEPROM (I don't know
where it is stored),  however  AT+CSCA? returns:
+CSCA: "+5294100001410",145
OK
which is the correct number for my provider (telcel, mexico), so this is the one
used when no SMSC information is given in pdu, right??

When using Mobile Phone Tools (application provided with the modem) to send SMS the SMSC number is explicitly set in the PDU, however the modem still fails to send
the message:

18:52:03,60  ####  Sending SMS...
18:52:03,70  Wait...
18:52:04,31  --> AT+CMGF=0<CR>
18:52:04,64  <-- OK
18:52:04,70  --> 
AT+CMGS=093<CR>0891254901001014F031010A8155739073740008AD500035003500330037003000390033003700340037000D000A00BF007300650020
18:52:04,70      
0065006E007600690061007200E100200063006F006D006F00200050004400550020006F00200054004500580054003F<1A>
18:52:05,06  >
18:52:06,51 <-- > 18:52:06,51 <-- ERROR
18:52:06,59  GSMMngEndWork 31

One odd thing I noticed is the previous PDU generated by Mobile Phone Tools apparently
correspond to SMS-DELIVER, (03) right?

So I gently ask:
- how to determine which SMSC number kannel is using to send sms?
- Is it the case the default number is not the same that the one returned by AT+CSCA ? otherwise, -how do explictly set the SMSC number to be used in PDU?
or even better
- Is there someone who can tell me how to reset to factory settings the modem?
(given that my modem had been working ok for a while)
- Could this be a hardware related failure?


best regars,
Gerardo

( BTW +1 for wiki revitalization)



Reply via email to