Hi kneil, Were you solve your issues?I hava a same issues,can you give me reply. ([email protected]) Looking forward to your reply. Thanks advance!
在 2012年8月31日星期五UTC+8下午3时24分57秒,kneil写道: > > Hello, I am new to SMS Lib and been trying to understand how it works. I > have tried sending using SMSLib and it's successful so far, then the > problem I am in right now is how to receive sms. I tried to read sms but it > returns 0 messages, and I saw this feature SMS Server and tried to use it > and I am stuck and initializing gateway from SMSServer.conf > <code> > Here is the log error > Date: Fri Aug 31 15:21:22 CST 2012 (1346397682981) > Thread: main > Message #: 16 > Level: ERROR > NDC: > Category: smslib > Message: SMSServer error! > Location: smsserver.SMSServer.run(SMSServer.java:355) > Thrown: > org.smslib.SMSLibException: No gateways are defined. > at org.smslib.Service.startService_Internal(Service.java:295) > at org.smslib.Service.startService(Service.java:229) > at org.smslib.Service.startService(Service.java:196) > at smsserver.SMSServer.run(SMSServer.java:350) > at smsserver.SMSServer.main(SMSServer.java:585) > </code> > Here is the SMSServer.conf > # Set a different balancer than the default. > smsserver.balancer=RoundRobinLoadBalancer > > #Set a different router than the default. > #smsserver.router=NumberPoolRouter > # Lets add a modem > gateway.0=modem1, SerialModem > modem1.port=COM15 > modem1.baudrate=9600 > modem1.manufacturer=Nokia > modem1.model=C1-01 > modem1.protocol=PDU > modem1.pin=0000 > modem1.inbound=yes > modem1.outbound=no > modem1.smsc_number=+639170000130 > modem1.init_string=ATZ\rATZ\rATZ\r > > # Here is an example of a MySQL database interface. > interface.0=db1, Database > db1.type=mysql > db1.url=jdbc:mysql://localhost:3306/smsserver?autoReconnect=true > db1.driver=com.mysql.jdbc.Driver > db1.username=root > #db1.password=smslib > #db1.tables.sms_in= > #db1.tables.sms_out= > #db1.tables.calls= > db1.batch_size=50 > db1.retries=2 > db1.update_outbound_on_statusreport=yes > > settings.inbound_interval=600 > settings.outbound_interval=10 > > #After reading, should SMSServer delete the processed messages from the > gateways? > #Default is "no" for safety. Set to "yes" if you wish to delete messages. > #If you leave it to "no", SMSServer will process the same messages over > and over again! > settings.delete_after_processing=yes > > # Should SMSServer work in sync or async sending mode? > # Async mode forwards messages to gateway queues. > # Values can be "sync" and "async". > settings.send_mode = async > > # Allowed dispatch time-fames per priority > settings.timeframe.low=0900-2200 > settings.timeframe.normal=0000-2359 > settings.timeframe.high=0000-2359 > > -- 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/2bf3d742-631a-4b09-b716-6f320b5b8b9c%40googlegroups.com.
