how to add UDH

171 views
Skip to first unread message

sreedhar namburu

unread,
Feb 24, 2011, 6:09:29 AM2/24/11
to jsmpp
Hi,

how to add UDH to submitShortMessage method

Ashwin Moily

unread,
Feb 24, 2011, 7:59:18 AM2/24/11
to js...@googlegroups.com, sreedhar namburu
What kind of sms you want to send . 
Check out how long sms is sent out in example.


Thanks & Regards
Ashwin Moily

Mob: +91 9619181096




On Thu, Feb 24, 2011 at 4:39 PM, sreedhar namburu <sreedha...@gmail.com> wrote:
Hi,

how to add UDH to submitShortMessage method

--
You received this message because you are subscribed to the Google Groups "jsmpp" group.
To post to this group, send email to js...@googlegroups.com.
To unsubscribe from this group, send email to jsmpp+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jsmpp?hl=en.


sreedhar namburu

unread,
Feb 25, 2011, 12:52:45 AM2/25/11
to jsmpp
hi,

if i have to send a special character like ~,^,[,],{,},|. in this case
each character is taken 2 bytes. I hope LongSMS not solve this
problem, for that i need my one split the message and send along UDH.

kindly help me..

Ashwin Moily

unread,
Feb 25, 2011, 2:13:39 AM2/25/11
to js...@googlegroups.com, sreedhar namburu

Hi Sreedhar ,

Correct you need to handle this . Long sms wont do it for you 

Thanks & Regards
Ashwin Moily

Mob: +91 9619181096




sreedhar namburu

unread,
Mar 1, 2011, 5:45:38 AM3/1/11
to jsmpp

hi,

I am trying to connect TRX i am getting the bellow exception.. kindly
help on this

Exception in thread "pool-1-thread-1" java.lang.NullPointerException
at java.lang.String.<init>(String.java:593)
at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:
447)
at org.jsmpp.session.SMPPSession.access$0(SMPPSession.java:443)
at org.jsmpp.session.SMPPSession
$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:462)
at
org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSessionBoundRX.java:
109)
at
org.jsmpp.session.state.SMPPSessionBoundTRX.processDeliverSm(SMPPSessionBoundTRX.java:
42)
at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "pool-1-thread-2" java.lang.NullPointerException
at java.lang.String.<init>(String.java:593)
at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:
447)
at org.jsmpp.session.SMPPSession.access$0(SMPPSession.java:443)
at org.jsmpp.session.SMPPSession
$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:462)
at
org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSessionBoundRX.java:
109)
at
org.jsmpp.session.state.SMPPSessionBoundTRX.processDeliverSm(SMPPSessionBoundTRX.java:
42)
at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
org.jsmpp.extra.NegativeResponseException: Negative response 0000000b
found
at
org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:
215)
at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:
271)
at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:
320)
at com.a2wi.jsmpp.SendConcatSms.main(SendConcatSms.java:102)

Ashwin Moily

unread,
Mar 1, 2011, 5:50:57 AM3/1/11
to js...@googlegroups.com, sreedhar namburu
There is some issue with parameter that you are sending .
Checkout smpp 3.4 spec http://www.nowsms.com/discus/messages/1/SMPP_v3_4_Issue1_2-24857.pdf   Search for 0000000b

In this case you are sending some invalid destination add . 

ESME_RINVDSTADR 0x0000000B Invalid Dest Addr
ESME_RINVMSGID 0x0000000C Message ID is invalid
ESME_RBINDFAIL 0x0000000D Bind Failed
ESME_RINVPASWD 0x0000000E Invalid Password

Thanks & Regards
Ashwin Moily

--
Reply all
Reply to author
Forward
0 new messages