Questions tagged [smslib]

SMSLib is a programmer's library for sending and receiving SMS messages via a GSM modem or mobile phone. SMSLib also supports a few bulk SMS operators.

SMSLib is a .net 3.5 (and above) library for sending and receiving messages via a modem or mobile phone. SMSLib also supports a few bulk SMS operators.

97 questions
1
vote
0 answers

how to change smslib outbound text

I change the message as you can see on my codes but the receiver receives different message. as you can see on my results below the message sent was "test message". pls pls need help:( OutboundNotification outboundNotification = new…
007sr
  • 11
  • 4
1
vote
1 answer

SMS not received with java smslib library

i try with this, but it is some times not working correctly..i used a while loop for loop the code. can i add some listner for this? any one can give me the correct answer for this? in need to get responce real time while (true) { …
nirmalagoon
  • 21
  • 1
  • 7
1
vote
0 answers

NoSuchPortException in smslib

Here is my code part for sending SMS, public void sendMessage() throws Exception { SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM7", 9600, "STC", ""); gateway.setInbound(true); …
Hasitha
  • 558
  • 1
  • 12
  • 26
1
vote
1 answer

java.lang.NoClassDefFoundError: org/apache/log4j/Priority

Whenever i try running my application on different machine i got this error. I will be pasting stack trace and my java class files. I have all the jars in my project's class path jar are not broken i have copied them from the live server…
GhousKhan22
  • 79
  • 1
  • 3
  • 10
1
vote
3 answers

my jar application (SMSlib) only works in command line and netbeans

I developed an application that sends SMS (using SMSlib), when I execute my application on netbeans it works well and sends SMS without problem. with the same PC exported runnable Jar, stops sending the SMS. but when I execute my jar at the…
1
vote
1 answer

How do I change the time period which a new message is notified to my application from a gsm modem using SMSlib

Here are a few changes I made to the ReadMessages class but it still takes like 30-45 seconds for the a new message notification. Service.getInstance().S.CNMI_EMULATOR_INTERVAL = 2; Service.getInstance().S.WATCHDOG_INTERVAL = 3; I minimised…
user3114376
  • 61
  • 1
  • 2
  • 6
1
vote
0 answers

Smslib Not reading sms from dongle

Dear mate i have implement all the needed jars and smslib files as per the description but i am always getting error as below can you please let me know how to solve this is issue as its getting irritated please would be glad to receive ur…
shab
  • 29
  • 2
1
vote
0 answers

Connect and Disconnect SerialModemGateway SmsLib

Need help i have no idea, how to make serial modem reconnected again when i am disconnect, this is my code connecting to serial modem : public void connectToPort() throws GatewayException, IOException, TimeoutException, InterruptedException,…
syam houng
  • 307
  • 4
  • 14
1
vote
1 answer

No errors when runs on netbeans but not when running the jar?

When I run my program which use smslib works fine when I run it on netbeans, But when I generated the jar file and run it, the console shows me this error. Any thoughts on how to solve it? Your help will be much appreciated. log4j:WARN No appenders…
1
vote
2 answers

SMSlib receiving duplicate messages

I am trying to receive sms on computer using D-Link USB Modem. I have find out solution of my problem on this link But now issue i am facing is that i am receiving same message 3 times, like this New Inbound message detected from Gateway:…
1
vote
1 answer

smslib for Java : Error for sending message example

I installed library smslib in my windows machine. I followed all the instructions at the website smslib.org for library setup. But when I'm trying to run the SendMessage example got an error. package examples.modem; import…
1
vote
0 answers

How to detect which com port is connected to the USB gsm modem using java

I have a java program to send sms using a usb gsm modem. I need to find the com port which the usb gsm modem is connected to. I googled it and find the code below. import java.util.Collection; import java.util.Collections; import…
Lakindu
  • 85
  • 2
  • 2
  • 5
1
vote
1 answer

Specify "numbering plan indicator" in SMSLib JSMPPGateway

How can I specify the "Numbering Plan Indicator" when connecting to a SMPP Server with SMSLib (JSMPPGateway). This is my current JSMPPGateway initialization: gateway = new JSMPPGateway(systemId, ip, port, new BindAttributes(username, password,…
sports
  • 7,851
  • 14
  • 72
  • 129
1
vote
0 answers

smslib and configuration with eclipse

while looking the java code for sending SMS from GSM Modem I found many links associated with smslib. I got one .jar file(smslib-3.3.2.jar) and a .zip file(smslib-v3.5.3.zip) associated with it. Can I use the jar directly with my projects.. Then…
Sajeev
  • 783
  • 3
  • 14
  • 46
1
vote
3 answers

How to send and receive SMS in java?

I want my Java application to send and receive SMS without using any additional hardware devices and it must be free. I made my search but all i found is titles, i found somethings like SMSLib but at the other hand i didn't find tutorials or books…
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118