Hi, Your config seems OK.
If you rename "SMSServer.conf" to some other name and you try to run SMSServer, what do you get? On 31 August 2012 10:24, SMSLib Discussion Group on behalf of kneil < smslib+noreply-apn2wqdtlsrqff3ho5d3vf3nkyco-ua8a77m6_g43efy1z...@googlegroups.com > wrote: > 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 post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msg/smslib/-/oule0frZcuEJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
