I'm with problem to execute my coding:
*package* logic;
*import* com.harshadura.gsm.smsdura.GsmModem;
*public* *class* TestSMS {
*private* *static* String *port* = "COM5";
*private* *static* *int* *bitRate* = 115200;
*private* *static* String *modemName* = "Huawei";
*private* *static* String *modemPin* = "0000";
*private* *static* String *SMSC* = "+555191115300";
*public* *static* *void* main(String[] args) *throws* Exception {
GsmModem gsmModem = *new* GsmModem();
GsmModem.*configModem*(*port*, *bitRate*, *modemName*, *modemPin*,
*SMSC*);
gsmModem.Sender("+554499958462", "Test Message Zinga");
}
}
Error:
Exception in thread "main" org.smslib.GatewayException: GSM Network
Auto-Registration disabled!
at org.smslib.modem.AModemDriver.waitForNetworkRegistration(
AModemDriver.java:444)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:168)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/smslib/a7ccbe9b-8a3f-4f93-93fb-a5cf563c688b%40googlegroups.com.