Hi,

Any suggestions on this issue. I am really in a mess. Someone do help
me in this.

Regards,
Sandeep.

On Feb 24, 2:38 pm, sandeep <[email protected]> wrote:
> Hi,
>
> I created a send.xml as below in out/ directory,
>
> ###############################XML##############################################
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE message SYSTEM "smssvr_out.dtd">
> <message id="test">
> <recipient>+919900593007</recipient>
> <text>1234</text>
> <originator></originator>
> <create_date>2009-02-24T02:52:53+05:30</create_date>
> </message>
> ###############################XML##############################################
>
> My SMSServer.conf is as below,
>
> ###############################Config
> start##############################################
> # Set a different balancer than the default.
> smsserver.balancer=LeastLoadLoadBalancer
>
> #Set a different router than the default.
> #smsserver.router=NumberPoolRouter
>
> # Lets add a modem
> gateway.0=modem1, SerialModem
> modem1.port=/dev/ttyUSB0
> modem1.baudrate=9600
> modem1.manufacturer=Huawei,Incorporated
> modem1.model=EC121
> modem1.protocol=PDU
> modem1.pin=9379662758
> modem1.inbound=yes
> modem1.outbound=no
> #modem1.init_string=ATZ\rATZ\rATZ\r
>
> interface.0=xml1, Xml
> xml1.in=/home/sandeep/Download/smssrv/in
> xml1.out=/home/sandeep/Download/smssrv/out
>
> settings.inbound_interval=600
> settings.outbound_interval=10
>
> settings.delete_after_processing=no
>
> settings.send_mode = sync
>
> settings.timeframe.low=0900-2200
> settings.timeframe.normal=0000-2359
> settings.timeframe.high=0000-2359
>
> ###############################Config
> End##############################################
>
> now when i ran it with this command ,
>
> COMMAND:
> ###############################Command##############################################
> [sand...@sandeepclasses]$ /home/sandeep/Download/jdk1.5.0_17/bin/java
> -Dsmslib.debug -Dsmsserver.configdir=/home/sandeep/Download/SMSlib/src/
> java/org/smslib/smsserver/ org.smslib.smsserver.SMSServer
> ###############################Command##############################################
>
> got a output as below.
>
> OUTPUT:
> ###############################Output
> #######################################################
> 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.3.3
> SMSServer version: 3.3.3
> 0 [main] INFO org.smslib  - 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
> 2 [main] INFO org.smslib  - Version: 3.3.3
> 2 [main] INFO org.smslib  - JRE Version: 1.5.0_17
> 2 [main] INFO org.smslib  - JRE Impl Version: 1.5.0_17-b04
> 2 [main] INFO org.smslib  - O/S: Linux / i386 / 2.6.25-14.fc9.i686
> 10 [main] INFO org.smslib  - SMSServer: set balancer to:
> LeastLoadLoadBalancer
> 61 [main] INFO org.smslib  - SMSServer: added gateway modem1 / Default
> Serial Modem Gateway.
> 163 [main] INFO org.smslib  - SMSServer: added interface xml1 /
> Interface for xml input/output files / INOUTBOUND
> 167 [main] INFO org.smslib  - SMSServer: interface:
> org.smslib.smsserver.interfaces.Xml started.
> 209 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
> 210 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
> 219 [Thread-2] INFO org.smslib  - GTW: modem1: Starting gateway, using
> Generic AT Handler.
> 220 [Thread-2] INFO org.smslib  - GTW: modem1: Opening: /dev/ttyUSB0
> @9600
> 1261 [main] INFO org.smslib  - SMSServer: interface:
> org.smslib.smsserver.interfaces.Xml stopped.
> 1262 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
> 1262 [main] INFO org.smslib  - GTW: modem1: Stopping gateway...
> 1262 [main] INFO org.smslib  - GTW: modem1: Closing: /dev/ttyUSB0
> @9600
> 1262 [main] INFO org.smslib  - GTW: modem1: Gateway stopped.
> 1262 [main] INFO org.smslib  - SMSServer exiting normally.
> 1263 [Thread-0] INFO org.smslib  - SMSServer shutting down, please
> wait...
> 1263 [Thread-0] INFO org.smslib  - SMSServer: interface:
> org.smslib.smsserver.interfaces.Xml stopped.
> 1264 [Thread-0] INFO org.smslib  - GTW: modem1: Stopping gateway...
> 1264 [Thread-0] INFO org.smslib  - GTW: modem1: Closing: /dev/ttyUSB0
> @9600
> 1264 [Thread-0] INFO org.smslib  - GTW: modem1: Gateway stopped.
>
> ###############################Output##############################################
>
> But, its not sending the SMS. What has to be done to send it?.
>
> Regards,Sandeep.
>
> On Feb 21, 1:32 pm, Thanasis <[email protected]> wrote:
>
> > If you want to send a message, you should create the necessary xml
> > file in the "out" directory. Check 
> > this:http://smslib.org/doc/smsserver/interfaces/xml/
>
> > On Feb 21, 7:29 am,sandeep<[email protected]> wrote:
>
> > > Hi,
>
> > > This is the output i am getting with a debug in it.
>
> > > /home/oracle/SMSLib/Java_Installed/jdk1.5.0_17/bin/java -Dsmslib.debug
> > > -Dsmsserver.configdir=/home/oracle/SMSLib/SMSServer/src/java/org/
> > > smslib/smsserver/ org.smslib.smsserver.SMSServer
> > > 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.3.3
> > > SMSServer version: 3.3.3
> > > 0 [main] INFO org.smslib  - 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
> > > 3 [main] INFO org.smslib  - Version: 3.3.3
> > > 3 [main] INFO org.smslib  - JRE Version: 1.5.0_17
> > > 3 [main] INFO org.smslib  - JRE Impl Version: 1.5.0_17-b04
> > > 3 [main] INFO org.smslib  - O/S: Linux / i386 / 2.6.9-67.EL
> > > 10 [main] INFO org.smslib  - SMSServer: set balancer to:
> > > LeastLoadLoadBalancer
> > > 906 [main] INFO org.smslib  - SMSServer: added gateway modem1 /
> > > Default Serial Modem Gateway.
> > > 969 [main] INFO org.smslib  - SMSServer: added interface xml1 /
> > > Interface for xml input/output files / INOUTBOUND
> > > 969 [main] INFO org.smslib  - SMSServer: interface:
> > > org.smslib.smsserver.interfaces.Xml started.
> > > 972 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
> > > 972 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
> > > 973 [Thread-2] INFO org.smslib  - GTW: modem1: Starting gateway, using
> > > Generic AT Handler.
> > > 973 [Thread-2] INFO org.smslib  - GTW: modem1: Opening: COM1 @57600
> > > 1974 [main] INFO org.smslib  - SMSServer: interface:
> > > org.smslib.smsserver.interfaces.Xml stopped.
> > > 1975 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
> > > 1975 [main] INFO org.smslib  - GTW: modem1: Stopping gateway...
> > > 1975 [main] INFO org.smslib  - GTW: modem1: Closing: COM1 @57600
> > > 1975 [main] INFO org.smslib  - GTW: modem1: Gateway stopped.
> > > 1975 [main] INFO org.smslib  - SMSServer exiting normally.
> > > 1976 [Thread-0] INFO org.smslib  - SMSServer shutting down, please
> > > wait...
> > > 1976 [Thread-0] INFO org.smslib  - SMSServer: interface:
> > > org.smslib.smsserver.interfaces.Xml stopped.
> > > 1977 [Thread-0] INFO org.smslib  - GTW: modem1: Stopping gateway...
> > > 1977 [Thread-0] INFO org.smslib  - GTW: modem1: Closing: COM1 @57600
> > > 1977 [Thread-0] INFO org.smslib  - GTW: modem1: Gateway stopped.
>
> > > I created 2 directories in/ and out/ in folder smsrv/. Its dumping
> > > some xml files in it. Now , what has to be done to send an sms?. I am
> > > planning to use a reliance datacard as a modem. Please do help me to
> > > go ahead with it.
>
> > > Regards,
> > >Sandeep.
>
> > > On Feb 17, 4:41 pm,sandeep<[email protected]> wrote:
>
> > > > Hi,
>
> > > > This error is resolved. I just copied the LinuxSerialParallel.so to
> > > > the jre/lib/i386 directory.
> > > > I ran it as below,
>
> > > > [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/
> > > > jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/
> > > > SMSServer/src/java/org/smslib/smsserver/
> > > > org.smslib.smsserver.SMSServer
> > > > 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.3.3
> > > > SMSServer version: 3.3.3
> > > > [ora...@erptest classes]$
>
> > > > Is this correct?... Because as far I know , the server has to run
> > > > forever. I checked it in the process , but there is no such process.
> > > > Kindly help me in sending SMS using a USB modem.
>
> > > > Regards,Sandeep.
>
> > > > On Feb 17, 2:46 pm,sandeep<[email protected]> wrote:
>
> > > > > I followed the steps as in the installation document and now I am
> > > > > getting the below exception,
>
> > > > > [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/
> > > > > jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/
> > > > > SMSServer/src/java/org/smslib/smsserver/
> > > > > org.smslib.smsserver.SMSServer
> > > > > 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.3.3
> > > > > SMSServer version: 3.3.3
> > > > > Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no
> > > > > LinuxSerialParallel in java.library.path
> > > > > Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError:
> > > > > isDevLink
> > > > >         at com.sun.comm.Unix.isDevLink(Native Method)
> > > > >         at com.sun.comm.PathBundle.add(PathBundle.java:108)
> > > > >         at com.sun.comm.PlatformPortBundle.<init>
> > > > > (PlatformPortBundle.java:44)
> > > > >         at
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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