On Thursday, April 18, 2013 10:53:48 PM UTC+6, iqbal wrote: > > Hi, I installed smsserver and use smpp gateway, but faced following > errors. For info, I successfully installed smsserver with serial modem > before. I assume I have correct smpp configuration from my provider. Any > help will be appreciated. > > SMSLib API version: 3.5.2 > SMSServer version: 3.5.2 > 0 2013-04-18 23:30:30,293 [main] INFO org.smslib.Service - SMSLib: > A Java API library for sending and receiving SMS via a GSM modem or other > supported gateways. > This software is distributed under the terms of the Apache v2.0 License. > Web Site: http://smslib.org > 4 2013-04-18 23:30:30,297 [main] INFO org.smslib.Service - Version: > 3.5.2 > 4 2013-04-18 23:30:30,297 [main] INFO org.smslib.Service - JRE > Version: 1.7.0 > 8 2013-04-18 23:30:30,301 [main] INFO org.smslib.Service - JRE Impl > Version: 21.0-b17 > 8 2013-04-18 23:30:30,301 [main] INFO org.smslib.Service - O/S: > Linux / i386 / 2.6.32-16-pve > 14 2013-04-18 23:30:30,307 [main] INFO org.smslib.smsserver.SMSServer > - SMSServer: set balancer to: RoundRobinLoadBalancer > 52 2013-04-18 23:30:30,345 [main] ERROR org.smslib.smsserver.SMSServer > - SMSServer: Unknown Gateway in configuration file! > 61 2013-04-18 23:30:30,354 [main] INFO org.smslib.smsserver.SMSServer > - SMSServer: added interface db1 / Default database interface. / INOUTBOUND > 463 2013-04-18 23:30:30,756 [main] INFO > org.smslib.smsserver.interfaces.Interface - SMSServer: interface: > org.smslib.smsserver.interfaces.Database started. > 464 2013-04-18 23:30:30,757 [main] INFO > org.smslib.queues.DefaultQueueManager - Queue directory not defined. > Queued messages will not be saved to filesystem. > 466 2013-04-18 23:30:30,759 [main] DEBUG > org.smslib.threading.AServiceThread - Initialized. > 467 2013-04-18 23:30:30,760 [NotifyQueueManager] DEBUG > org.smslib.threading.AServiceThread - Running... > 467 2013-04-18 23:30:30,760 [NotifyQueueManager] DEBUG > org.smslib.notify.NotifyQueueManager$NotificationQueueManager - > NotifyQueueManager running... > 467 2013-04-18 23:30:30,760 [main] DEBUG > org.smslib.threading.AServiceThread - Initialized. > 467 2013-04-18 23:30:30,760 [DelayQueueManager] DEBUG > org.smslib.threading.AServiceThread - Running... > 468 2013-04-18 23:30:30,761 [DelayQueueManager] DEBUG > org.smslib.queues.AbstractQueueManager$DelayQueueManager - > DelayQueueManager running... > 468 2013-04-18 23:30:30,761 [main] DEBUG > org.smslib.threading.AServiceThread - Initialized. > 471 2013-04-18 23:30:30,764 [WatchDog] DEBUG > org.smslib.threading.AServiceThread - Running... > 472 2013-04-18 23:30:30,765 [DelayQueueManager] DEBUG > org.smslib.queues.AbstractQueueManager$DelayQueueManager - > DelayQueueManager end... > 672 2013-04-18 23:30:30,965 [WatchDog] DEBUG > org.smslib.threading.AServiceThread - Stopped. > 673 2013-04-18 23:30:30,966 [NotifyQueueManager] DEBUG > org.smslib.threading.AServiceThread - Stopped. > 674 2013-04-18 23:30:30,967 [main] ERROR org.smslib.smsserver.SMSServer > - SMSServer error! > 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 org.smslib.smsserver.SMSServer.run(SMSServer.java:342) > at org.smslib.smsserver.SMSServer.main(SMSServer.java:577) > 677 2013-04-18 23:30:30,970 [main] INFO > org.smslib.smsserver.interfaces.Interface - SMSServer: interface: > org.smslib.smsserver.interfaces.Database stopped. > 677 2013-04-18 23:30:30,970 [main] INFO org.smslib.smsserver.SMSServer > - SMSServer exiting normally. > 678 2013-04-18 23:30:30,971 [Thread-0] INFO > org.smslib.smsserver.SMSServer$Shutdown - SMSServer shutting down, please > wait... > 740 2013-04-18 23:30:31,033 [Thread-0] INFO > org.smslib.smsserver.interfaces.Interface - SMSServer: interface: > org.smslib.smsserver.interfaces.Database stopped. > > Hi, I have facing the same problem. here is my configuration file. >
# 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=COM12 modem1.baudrate=115200 modem1.manufacturer=Nokia modem1.model=6310i modem1.protocol=PDU modem1.pin=0000 modem1.inbound=yes modem1.outbound=yes modem1.smsc_number= modem1.init_string=ATZ\rATZ\rATZ\r # Lets add SMPP gateway.1=mysmpp, SMPPGateway mysmpp.impl=org.smslib.smpp.jsmpp.JSMPPGateway mysmpp.host=localhost mysmpp.port=2775 mysmpp.systemid=smppclient1 mysmpp.password=password mysmpp.systemtype=smpp mysmpp.bindtype=tr mysmpp.bindton=0 mysmpp.bindnpi=0 mysmpp.sourceton=0 mysmpp.sourcenpi=0 mysmpp.destton=0 mysmpp.destnpi=0 mysmpp.enquirelink=5000 # Dummy gateways used for testing. #gateway.1=Test1, TestGateway #Test1.inbound=yes #Test1.outbound=yes #gateway.2=Test2, TestGateway #Test2.inbound=no #Test2.outbound=yes #gateway.3=Test3, TestGateway #Test3.inbound=no #Test3.outbound=yes #gateway.4=Test4, TestGateway #Test4.inbound=no #Test4.outbound=yes #gateway.5=Test5, TestGateway #Test5.inbound=no #Test5.outbound=yes #gateway.6=Test6, TestGateway #Test6.inbound=no #Test6.outbound=yes #gateway.7=Test7, TestGateway #Test7.inbound=no #Test7.outbound=yes #gateway.8=Test8, TestGateway #Test8.inbound=no #Test8.outbound=yes # Here is an example of a Microsoft SQL Server database interface. #interface.0=db1, Database #db1.url=jdbc:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=smslib #db1.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver #db1.username=smslib #db1.password=smslib #db1.type=mssql #db1.tables.sms_in= #db1.tables.sms_out= #db1.tables.calls= #db1.batch_size=50 #db1.retries=2 #db1.update_outbound_on_statusreport=no # Here is an example of an Oracle database interface. #interface.0=db1, Database #db1.url=jdbc:oracle:thin:smslib/smslib@localhost:1521/XE #db1.driver=oracle.jdbc.OracleDriver #db1.username=smslib #db1.password=smslib #db1.type=oracle #db1.tables.sms_in= #db1.tables.sms_out= #db1.tables.calls= #db1.batch_size=50 #db1.retries=2 #db1.update_outbound_on_statusreport=no # Here is an example of a MySQL database interface. interface.0=db1, Database db1.type=mysql db1.url=jdbc:mysql://localhost:3306/smslib?autoReconnect=true db1.driver=com.mysql.jdbc.Driver db1.username=root db1.password= db1.tables.sms_in= db1.tables.sms_out= db1.tables.calls= db1.batch_size=50 db1.retries=2 db1.update_outbound_on_statusreport=yes # Here is an example of a SimpleInboundFileLogger interface. interface.1=file1, SimpleInboundFileLogger, inbound file1.filename=f:\logger.txt # Here is an example of a HTTP interface. #interface.2=http1, Http #http1.get_url=http://10.10.10.8/test.php?gatewayId=%gatewayId%&text=%text%&originator=%originator% #http1.dlr_url=http://10.10.10.8/dlr.php?gatewayId=%gatewayId%&text=%text%&from=%from%&refNo=%refNo% #http1.method=GET #interface.3=httpServer, HttpServer #httpServer.port=8080 #httpServer.password.read=0000 #httpServer.password.send=1111 #interface.4=email1, Email #email1.mailbox_protocol=pop3 #email1.mailbox_host=yahoo.com #email1.mailbox_port=110 #[email protected] #email1.mailbox_password=************** #email1.mailbox_name=INBOX #[email protected] #[email protected] #email1.smtp_host=smtp.bizmail.yahoo.com #email1.smtp_port=25 #[email protected] #email1.smtp_password=xinctechx #email1.message_subject=SMS from %originator% #email1.message_body=emailbody.html.tpl # Here is an example of a MySQL database interface. #interface.4=parallel, ParallelDatabase #parallel.type=mysql #parallel.url=jdbc:mysql://localhost:3306/smslib?autoReconnect=true #parallel.driver=com.mysql.jdbc.Driver #parallel.username=root #parallel.password= #parallel.tables.sms_in= #parallel.tables.sms_out= #parallel.tables.calls= #parallel.batch_size=50 #parallel.retries=2 #parallel.update_outbound_on_statusreport=yes #Interval for processing inbound messages (in seconds) settings.inbound_interval=180 #Interval for processing outbound queues (in seconds) 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=no # 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/427918ba-ade0-4fe7-8748-4340bb64a899%40googlegroups.com?hl=en.
