> I have tried to use the at2 driver and found that there is a > usage of a > number 1234: > > /* Put a dummy address in the receiver for now (SMSC requires > * one) */ > message->sms.receiver = octstr_create_from_data("1234", 4); > /*message->sms.receiver = destination;*/
The reason for this seems to be because there's not really an AT command to query the modem for the MSISDN of the SIM (that is the 'destination' number in this case). That said, normally there's no way, but some providers write it into the "ON" Phonebook of their SIM card but there is no specification from the GSM Standard that they must do it. For a Siemens M20, you can try to see if you have some entries in ON by using AT+CPBS="ON" and AT+CPBF="". I think there's a similar command for the Wavecom. The MSISDN is only stored in the HLR at the provider, GSM mobiles do not have access to it, the IMSI is used for dialling purposes, so short of making this "number" configurable in the smsc group for at2, I don't know what could be done, any comments? Ian