I see different baud rate on your config than on your SendMessage sample - I don't know if this makes such a big difference.
Does the ReadMessages sample work as well? 2010/1/25 Vikas Patidar <[email protected]> > Hi, Thanasis Sir > Thank you for help me. > > My configuration file is as follows: > > > > ************************************************************************************ > > # 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=COM19 > modem1.baudrate=115200 > modem1.manufacturer=Samsung > modem1.model=E1410 > modem1.protocol=PDU > modem1.pin=0000 > modem1.inbound=yes > modem1.outbound=yes > modem1.smsc_number= > modem1.init_string=ATZ\rATZ\rATZ\r > > # Lets add a database interface > interface.0=db1, Database > db1.url=jdbc:db2://localhost:50000/OLPS > db1.driver=com.ibm.db2.jcc.DB2Driver > db1.username=username > db1.password=password > db1.type=IBM DB2 > db1.tables.sms_in=MIT.SMS_INBOUND > db1.tables.sms_out=MIT.SMS_OUTBOUND > db1.batch_size=50 > db1.retries=2 > db1.update_outbound_on_statusreport=no > > > > > # Here is an example of a SimpleInboundFileLogger interface. > interface.1=file1, SimpleInboundFileLogger, inbound > file1.filename=D:/MyMessagesLogs.txt > > > interface.2=httpServer, HttpServer > httpServer.port=8089 > httpServer.password.read=0000 > httpServer.password.send=1111 > > #Interval for processing inbound messages (in seconds) > settings.inbound_interval=600 > #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 > > > On 1/26/10, Thanasis <[email protected]> wrote: > > Hi, > > > > I guess there must be something wrong with the gateway definitions. > > Can you post your config file? > > > > 2010/1/25 Vikas Patidar <[email protected]> > > > >> Hi, everyone > >> I'm getting error "gateway stopped" when i run SMSServer . > >> While the mobile phone working fine when I run SendMessage.java and > >> ReadMessages.java file > >> > >> The console log is as follows when I run SendMessage.java > >> > >> Example: Send message from a serial gsm modem. > >> 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 > >> Version: 3.4.4 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: 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 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: Version: 3.4.4 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: JRE Version: 1.6.0 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: JRE Impl Version: 2.4 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: O/S: Windows Vista / x86 / 6.1 build 7600 > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler. > >> Jan 25, 2010 1:42:00 PM org.smslib.helper.Logger logInfo > >> INFO: GTW: modem.com1: Opening: COM19 @57600 > >> Jan 25, 2010 1:42:07 PM org.smslib.helper.Logger logWarn > >> WARNING: GTW: modem.com1: Erroneous CPIN response, proceeding with > >> defaults. > >> Jan 25, 2010 1:42:09 PM org.smslib.helper.Logger logInfo > >> INFO: GTW: modem.com1: GSM: Registered to foreign network (roaming). > >> Jan 25, 2010 1:42:09 PM org.smslib.helper.Logger logInfo > >> INFO: GTW: modem.com1: MEM: Storage Locations Found: BMMESM > >> Jan 25, 2010 1:42:10 PM org.smslib.helper.Logger logInfo > >> INFO: CNMI: No best match, returning: 0 > >> Jan 25, 2010 1:42:10 PM org.smslib.helper.Logger logInfo > >> INFO: CNMI: No best match, returning: 1 > >> Jan 25, 2010 1:42:10 PM org.smslib.helper.Logger logInfo > >> INFO: GTW: modem.com1: Gateway started. > >> > >> Modem Information: > >> Manufacturer: Samsung > >> Model: GT-E1410 > >> Serial No: 3584410227592101 > >> SIM IMSI: ** MASKED ** > >> Signal Level: 0% > >> Battery Level: 86% > >> > >> > >> > >> > =============================================================================== > >> << OutboundMessage >> > >> > >> > ------------------------------------------------------------------------------- > >> Gateway Id: modem.com1 > >> Message Id: 0 > >> Encoding: 7-bit > >> Date: Mon Jan 25 13:42:10 IST 2010 > >> SMSC Ref No: 30 > >> Recipient: 121 > >> Dispatch Date: Mon Jan 25 13:42:14 IST 2010 > >> Message Status: SENT > >> Message error: NO_ERROR > >> Validity Period (Hours): -1 > >> Status Report: false > >> Source / Destination Ports: -1 / -1 > >> Flash SMS: false > >> Text: Hello from SMSLib! > >> PDU data: C8329BFD0699E5EF3668DA9C32D3E210 > >> > >> > =============================================================================== > >> > >> Now Sleeping - Hit <enter> to terminate. > >> > >> > >> because of this problem I'm unable to use mobile with SMSServer. > >> Anyone help please. > >> Thank you. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "SMSLib for Java User Group" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<smslib%[email protected]> > <smslib%[email protected]<smslib%[email protected]> > > > >> . > >> For more options, visit this group at > >> http://groups.google.com/group/smslib?hl=en. > >> > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "SMSLib for Java User Group" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<smslib%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/smslib?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "SMSLib for Java User Group" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<smslib%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/smslib?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SMSLib for Java User 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 this group at http://groups.google.com/group/smslib?hl=en.
