I have been able to send/receive messages from putty and from Send/
ReadMessage.java. Now I am trying to get SmsServer working...but on
startup, there is a call to AT+CPIN? and then it seems to hang for a
few secs and then the server shuts down. Attached is the log and the
config...


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

SMSLib API version: 3.4.1
SMSServer version: 3.4.1
log4j: Trying to find [log4j.properties] using context classloader
sun.misc.launcher$appclassloa...@553f5d07.
log4j: Using URL [file:/C:/projects/gwt-projects/frames/
log4j.properties] for automatic log4j configuration.
log4j: Reading configuration from URL file:/C:/projects/gwt-projects/
frames/log4j.properties
log4j: Could not find root logger information. Is this OK?
log4j: Parsing for [smslib] with value=[DEBUG, smslib].
log4j: Level token is [DEBUG].
log4j: Category smslib set to DEBUG
log4j: Parsing appender named "smslib".
log4j: Parsing layout options for "smslib".
log4j: Setting property [conversionPattern] to [%-6r %d [%t] %-5p %C
%x - %m%n].
log4j: End of parsing for "smslib".
log4j: Parsed "smslib" options.
log4j: Handling log4j.additivity.smslib=[null]
log4j: Finished configuring.
0      2009-08-18 16:37:52,373 [main] INFO  org.smslib.helper.Logger
- 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
8      2009-08-18 16:37:52,381 [main] INFO  org.smslib.helper.Logger
- Version: 3.4.1
10     2009-08-18 16:37:52,383 [main] INFO  org.smslib.helper.Logger
- JRE Version: 1.6.0_12
10     2009-08-18 16:37:52,383 [main] INFO  org.smslib.helper.Logger
- JRE Impl Version: 11.2-b01
11     2009-08-18 16:37:52,384 [main] INFO  org.smslib.helper.Logger
- O/S: Windows Vista / amd64 / 6.0
20     2009-08-18 16:37:52,393 [main] INFO  org.smslib.helper.Logger
- SMSServer: set balancer to: RoundRobinLoadBalancer
83     2009-08-18 16:37:52,456 [main] INFO  org.smslib.helper.Logger
- SMSServer: added gateway modem1 / Default Serial Modem Gateway.
90     2009-08-18 16:37:52,463 [main] INFO  org.smslib.helper.Logger
- SMSServer: added interface http1 / Default HTTP interface. /
INOUTBOUND
91     2009-08-18 16:37:52,464 [main] INFO  org.smslib.helper.Logger
- SMSServer: interface: com.geazy.frames.server.FramesHttp started.
104    2009-08-18 16:37:52,477 [Thread-1] INFO
org.smslib.helper.Logger  - GTW: modem1: Starting gateway, using
Generic AT Handler.
104    2009-08-18 16:37:52,477 [Thread-1] INFO
org.smslib.helper.Logger  - GTW: modem1: Opening: COM9 @9600
626    2009-08-18 16:37:52,999 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: ModemReader thread started.
629    2009-08-18 16:37:53,002 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: AsyncNotifier thread started.
632    2009-08-18 16:37:53,005 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: AsyncMessageProcessor thread
started.
632    2009-08-18 16:37:53,005 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: clearBuffer() called.
1633   2009-08-18 16:37:54,006 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :(27)
1838   2009-08-18 16:37:54,211 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :+++
2040   2009-08-18 16:37:54,413 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :ATZ
2242   2009-08-18 16:37:54,615 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: clearBuffer() called.
3243   2009-08-18 16:37:55,616 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :ATZ(cr)
3445   2009-08-18 16:37:55,818 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :ATE0(cr)
3647   2009-08-18 16:37:56,020 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: clearBuffer() called.
4647   2009-08-18 16:37:57,020 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :ATZ(cr)ATZ(cr)ATZ(cr)
(cr)
4649   2009-08-18 16:37:57,022 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :ATE0(cr)
4851   2009-08-18 16:37:57,224 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: clearBuffer() called.
15101  2009-08-18 16:38:07,474 [pool-1-thread-1] DEBUG
org.smslib.helper.Logger  - Running task: WatchDog
19921  2009-08-18 16:38:12,294 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: SEND :AT+CPIN?(cr)
30100  2009-08-18 16:38:22,473 [pool-1-thread-2] DEBUG
org.smslib.helper.Logger  - Running task: WatchDog
30623  2009-08-18 16:38:22,996 [pool-1-thread-2] DEBUG
org.smslib.helper.Logger  - Task is disabled: CNMIEmulatorProcessor
[modem1]
45099  2009-08-18 16:38:37,472 [pool-1-thread-2] DEBUG
org.smslib.helper.Logger  - Running task: WatchDog
60099  2009-08-18 16:38:52,472 [pool-1-thread-2] DEBUG
org.smslib.helper.Logger  - Running task: WatchDog
60621  2009-08-18 16:38:52,994 [pool-1-thread-2] DEBUG
org.smslib.helper.Logger  - Running task: KeepAlive [modem1]
60621  2009-08-18 16:38:52,994 [pool-1-thread-3] DEBUG
org.smslib.helper.Logger  - Task is disabled: CNMIEmulatorProcessor
[modem1]
64965  2009-08-18 16:38:57,338 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: Buffer contents on timeout: AT
+CPIN?

+CPIN: READY

64966  2009-08-18 16:38:57,339 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: Trying to shutdown
asyncNotifier thread...
64966  2009-08-18 16:38:57,339 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: Trying to shutdown
asyncMessageProcessor thread...
64967  2009-08-18 16:38:57,340 [Thread-1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: Trying to shutdown
modemReader thread...
64967  2009-08-18 16:38:57,340 [SMSLib-AsyncNotifier : modem1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: AsyncNotifier thread ended.
64968  2009-08-18 16:38:57,341 [SMSLib-AsyncMessageProcessor : modem1]
DEBUG org.smslib.helper.Logger  - GTW: modem1: AsyncMessageProcessor
thread ended.
64969  2009-08-18 16:38:57,342 [SMSlib-ModemReader-modem1] DEBUG
org.smslib.helper.Logger  - GTW: modem1: ModemReader thread ended.
65060  2009-08-18 16:38:57,433 [Thread-1] INFO
org.smslib.helper.Logger  - GTW: modem1: Closing: COM9 @9600
65104  2009-08-18 16:38:57,477 [main] INFO  org.smslib.helper.Logger
- SMSServer: interface: com.geazy.frames.server.FramesHttp stopped.
65105  2009-08-18 16:38:57,478 [main] INFO  org.smslib.helper.Logger
- GTW: modem1: Stopping gateway...
65106  2009-08-18 16:38:57,479 [main] INFO  org.smslib.helper.Logger
- GTW: modem1: Closing: COM9 @9600
65106  2009-08-18 16:38:57,479 [main] INFO  org.smslib.helper.Logger
- GTW: modem1: Gateway stopped.
65108  2009-08-18 16:38:57,481 [main] INFO  org.smslib.helper.Logger
- SMSServer exiting normally.
65111  2009-08-18 16:38:57,484 [Thread-0] INFO
org.smslib.helper.Logger  - SMSServer shutting down, please wait...
65111  2009-08-18 16:38:57,484 [Thread-0] INFO
org.smslib.helper.Logger  - SMSServer: interface:
com.geazy.frames.server.FramesHttp stopped.
65112  2009-08-18 16:38:57,485 [Thread-0] INFO
org.smslib.helper.Logger  - GTW: modem1: Stopping gateway...
65113  2009-08-18 16:38:57,486 [Thread-0] INFO
org.smslib.helper.Logger  - GTW: modem1: Closing: COM9 @9600
65113  2009-08-18 16:38:57,486 [Thread-0] INFO
org.smslib.helper.Logger  - GTW: modem1: Gateway stopped.



# 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=COM9
modem1.baudrate=9600
modem1.manufacturer=wavecom
modem1.model=
modem1.protocol=PDU
modem1.pin=
modem1.inbound=yes
modem1.outbound=yes
modem1.smsc_number=
modem1.init_string=ATZ\rATZ\rATZ\r


# Here is an example of a HTTP interface.
interface.0=http1, com.geazy.frames.server.FramesHttp
http1.inmsg_url=http://localhost:8080/frames/insms?gatewayId=%gatewayId
%&text=%text%&originator=%originator%
http1.outstatus_url=http://localhost:8080/frames/outstatussms?
gatewayId=%gatewayId%&text=%text%&from=%from%&refNo=%refNo%
http1.outmsgs_url=http://localhost:8080/frames/getoutsms?gatewayId=
%gatewayId%
http1.method=GET


#Interval for processing inbound messages (in seconds)
settings.inbound_interval=600
#Interval for processing outbound queues (in seconds)
settings.outbound_interval=5

#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=sync

# Allowed dispatch time-fames per priority
settings.timeframe.low=0900-2200
settings.timeframe.normal=0000-2359
settings.timeframe.high=0000-2359


Any help appreciated.

Thanks

gd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to