Receive negative response

1,662 views
Skip to first unread message

Fakirchand Patidar

unread,
May 17, 2014, 5:06:10 AM5/17/14
to js...@googlegroups.com

Hi,

I received some error codes like: Negative response 0000000b


Receive negative response
11481 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
org.jsmpp.extra.NegativeResponseException: Negative response 0000000b found
11578 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
        at org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)
11578 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
        at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)
        at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:321)
        at Connection.SendSMS.main(SendSMS.java:64)


Please help me.

manoj prabhakar

unread,
May 19, 2014, 12:46:48 AM5/19/14
to js...@googlegroups.com
HI,

It means Invalid Destination Address.

Check the Mobile number on which you are sending Message, Consult with your SMSC

Destination Number, NPI and TON Settings

Regards
Manoj Prabhakar
--
You received this message because you are subscribed to the Google Groups "jsmpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsmpp+un...@googlegroups.com.
To post to this group, send email to js...@googlegroups.com.
Visit this group at http://groups.google.com/group/jsmpp.
For more options, visit https://groups.google.com/d/optout.


Fakirchand Patidar

unread,
May 19, 2014, 1:11:41 AM5/19/14
to js...@googlegroups.com
Hi Sir,

Thank you very much for your valuable guidance.

I received one more error: Negative response 00000401 found

Receive negative response
11509 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
11510 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
org.jsmpp.extra.NegativeResponseException: Negative response 00000401 found
11618 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
        at org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)
11618 [main] DEBUG org.jsmpp.session.AbstractSession  - unbind response received
        at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)
11619 [Thread-0] INFO org.jsmpp.session.SMPPSession  - PDUReaderWorker stop
        at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:321)
11901 [Thread-1] INFO org.jsmpp.session.SMPPSession  - EnquireLinkSender stop
        at Connection.SendSMS.main(SendSMS.java:82)


Please help me.



--
You received this message because you are subscribed to a topic in the Google Groups "jsmpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsmpp/Yrh7gNxmpc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsmpp+un...@googlegroups.com.

To post to this group, send email to js...@googlegroups.com.
Visit this group at http://groups.google.com/group/jsmpp.
For more options, visit https://groups.google.com/d/optout.



--
---------------------------------
Thanks & Regards,
Fakirchand Patidar
Software Developer
Bulk24SMS Networks
Cell: +919754178790

manoj prabhakar

unread,
May 19, 2014, 3:20:09 AM5/19/14
to js...@googlegroups.com
Hi,

Reserved for MC vendor specific errors   0x00000400-0x000004FF         Reserved for MC vendor specific errors.

Must have some TON or NPI setting errors.
some times using National code with Mobile number results in such error.

Ask SMSC to support for this error.

Regards
Manoj Prabhakar

Fakirchand Patidar

unread,
May 19, 2014, 3:26:34 AM5/19/14
to js...@googlegroups.com
Hi Sir,

I set TON as NATIONAL and NPI as UNKNOWN for both Source and destination address.

Is it right setting or not, please suggest me.



Abdelmoula El Ousfour

unread,
May 19, 2014, 3:57:22 AM5/19/14
to js...@googlegroups.com
Hi,

Use TON/NPI=1/1 and dest address start with country code ( no 00 or + )  and it should work
Regards
Abdel

Fakirchand Patidar

unread,
May 19, 2014, 4:54:26 AM5/19/14
to js...@googlegroups.com
Hi,

When I set TON/NPI=1/1 then it shows error. So I set this value like TypeOfNumber.NATIONAL, NumberingPlanIndicator.UNKNOWN,

And append country code with destination address as well source address. But it is not work.

Please help me.

Fakirchand Patidar

unread,
May 19, 2014, 4:55:22 AM5/19/14
to js...@googlegroups.com
Hi,

It produces output like this:

0 [main] DEBUG org.jsmpp.session.SMPPSession  - Connect and bind to sms6.routesms.com port 2346
116 [main] INFO org.jsmpp.session.SMPPSession  - Connected
122 [Thread-0] INFO org.jsmpp.session.SMPPSession  - Starting PDUReaderWorker with processor degree:3 ...
234 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
234 [pool-1-thread-1] DEBUG org.jsmpp.session.state.SMPPSessionOpen  - Bind Response header (36, 80000009, 00000000, 1)
241 [main] DEBUG org.jsmpp.session.AbstractSession  - bind response received
243 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
5235 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
5235 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
5337 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
5337 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10337 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
10337 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
10375 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10376 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
message_id is 6e95de10-af2a-4728-8463-6ab2f6d40f7b<br/>
10474 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10474 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10573 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10575 [Thread-0] INFO org.jsmpp.session.SMPPSession  - PDUReaderWorker stop
10575 [main] DEBUG org.jsmpp.session.AbstractSession  - unbind response received
10974 [Thread-1] INFO org.jsmpp.session.SMPPSession  - EnquireLinkSender stop
BUILD SUCCESSFUL (total time: 11 seconds)


manoj prabhakar

unread,
May 19, 2014, 5:01:41 AM5/19/14
to js...@googlegroups.com
SMSC vendor name... ZTE or NOKIA ???

also try without country code

Fakirchand Patidar

unread,
May 19, 2014, 5:07:50 AM5/19/14
to js...@googlegroups.com
Hi,
My SMSC vender routesms.

I user destination address without country code but it is send sms to particular number.

manoj prabhakar

unread,
May 19, 2014, 5:50:19 AM5/19/14
to js...@googlegroups.com
Hi,

ASK routesms

Source Address = ?? fixed or anything
Destination Number format - (with country code or without country code or Zero)
addr-ton = ?  addr-npi =?
source-addr-ton = ? source-addr-npi = ?
dest-addr-ton = ? dest-addr-npi = ?

Hope It will solve your problem.

Regards
Manoj Prabhakar

Fakirchand Patidar

unread,
May 19, 2014, 9:16:16 AM5/19/14
to js...@googlegroups.com
Hi Sir,

I 'am able to send SMS from my SMPP.

I just use TX method, So didn't get any delivery report.

So please suggest me that how I'll get delivery report.

Fakirchand Patidar

unread,
May 20, 2014, 4:11:27 AM5/20/14
to js...@googlegroups.com
Hi Sir,

When I use your code for receiving delivery report on source address, message has been sent successfully on destination address but i didn't get any delivery report on source address.

I use this code snippets:

           String messageId = session.submitShortMessage(
                    service_type,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    source,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    destination,
                    new ESMClass(),
                    (byte) 0,
                    (byte) 1,
                    timeFormatter.format(new Date()),
                    null,
                    new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
                    (byte) 0,
                    DataCodings.ZERO,
                    (byte) 0,
                    message.getBytes());


So, Can you suggest me?


On Tue, May 20, 2014 at 10:58 AM, Fakirchand Patidar <bulk24sms...@gmail.com> wrote:
Hi Sir,

When I use your code for receiving delivery report on source address, message has been sent successfully on destination address but i didn't get any delivery report on source address.

So, Can you suggest me?

--
---------------------------------
Thanks & Regards,
Fakirchand Patidar
Software Developer
Bulk24SMS Networks
Cell: +919754178790

Fakirchand Patidar

unread,
May 20, 2014, 1:28:16 AM5/20/14
to js...@googlegroups.com
Hi Sir,

When I use your code for receiving delivery report on source address, message has been sent successfully on destination address but i didn't get any delivery report on source address.

So, Can you suggest me?

manoj prabhakar

unread,
May 19, 2014, 4:52:25 AM5/19/14
to js...@googlegroups.com
Its better to ask with SMSC,
the person who provides the SMPP account
because these settings are shared with SMPP account details standard values with the account creation

Fakirchand Patidar

unread,
May 22, 2014, 2:55:18 AM5/22/14
to js...@googlegroups.com
Hi Sir,

Is it possible that Route filtering (Marketing and Transactional) will be done at my end?

My SMPP providers said me that it is possible because this is done by their end.

So please help me that is it possible or not? If yes then how i will do this.

Fakirchand Patidar

unread,
May 22, 2014, 2:56:13 AM5/22/14
to js...@googlegroups.com
Hi Sir,

Is it possible that Route filtering (Marketing and Transactional) will be done at my end?

My SMPP providers said me that it is not possible because this is done by their end.

So please help me that is it possible or not? If yes then how i will do this.

Fakirchand Patidar

unread,
May 22, 2014, 4:55:31 AM5/22/14
to js...@googlegroups.com
Hello Sir,

The code snippets:


            String messageId = session.submitShortMessage(
                    service_type,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    source,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    destination,
                    new ESMClass(2),

                    (byte) 0,
                    (byte) 1,
                    timeFormatter.format(new Date()),
                    null,
                    new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
                    (byte) 0,
                    DataCodings.ZERO,
                    (byte) 0,
                    message.getBytes());

I use this parameter new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE), for getting delivery report but my system doesn't send any 'query_sm' packet to the provider. So i didn't get 'query_sm_resp' packet from SMSC.

So please help me as soon as possible.


Stefán Þorvarðarson

unread,
May 22, 2014, 5:33:51 AM5/22/14
to js...@googlegroups.com
Hi

The delivery reports are sent by the SMSC as a deliver_sm message to your application when the results of the message is known by the SMSC.

Also to answer your previous question on routing, the jSMPP library is a communication library that you can use to implement whatever SMS service you want (as long as the SMSC that you connect to supports the SMPP messages you require). It doesn't implement the services by itself so you have to combine it with your own code that implements the specific behaviour that you want.

I recommend reading the smpp specification to properly understand the possible message flows between your application and the SMSC.

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Thursday, May 22, 2014 8:55 AM
To: js...@googlegroups.com
Subject: Re: Receive negative response
 

Fakirchand Patidar

unread,
May 22, 2014, 8:01:48 AM5/22/14
to js...@googlegroups.com
Hello Sir,

Please find the below code snippets:


          String messageId = session.submitShortMessage(
                    service_type,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    source,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    destination,
                    new ESMClass(2),
                    (byte) 0,
                    (byte) 1,
                    timeFormatter.format(new Date()),
                    null,
                    new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
                    (byte) 0,
                    DataCodings.ZERO,
                    (byte) 0,
                    message.getBytes());


And find the below PDUs:

0 [main] DEBUG org.jsmpp.session.SMPPSession  - Connect and bind to 121.241.242.121 port 2351
93 [main] INFO org.jsmpp.session.SMPPSession  - Connected
109 [Thread-0] INFO org.jsmpp.session.SMPPSession  - Starting PDUReaderWorker with processor degree:3 ...
140 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
140 [pool-1-thread-1] DEBUG org.jsmpp.session.state.SMPPSessionOpen  - Bind Response header (29, 80000009, 00000000, 1)
146 [main] DEBUG org.jsmpp.session.AbstractSession  - bind response received
148 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
5139 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
5139 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
5159 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
5160 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10159 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
10159 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
10178 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10178 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10274 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10274 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
Message submitted, message_id is 9da5b3a0-69a7-4fea-8b7e-9ee313dd3b8e
10295 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10295 [main] DEBUG org.jsmpp.session.AbstractSession  - unbind response received
10296 [Thread-0] INFO org.jsmpp.session.SMPPSession  - PDUReaderWorker stop
10678 [Thread-1] INFO org.jsmpp.session.SMPPSession  - EnquireLinkSender stop

I which there is no query_sm PDU packet for delivery status. So SMSC not response properly.

Please help me.

Stefán Þorvarðarson

unread,
May 22, 2014, 9:32:50 AM5/22/14
to js...@googlegroups.com
Hi

There is no query_sm message used for delivery receipts. Have you looked at figure 2.7 in the smpp 3.4 specification?

The logs seem to show that you are disconnecting immediately after sending the message. Is that right? The connection has to stay connected in order to receive the delivery receipts that will be sent to you a few seconds or even a few hours or days later depending on the validity period of the message.

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Thursday, May 22, 2014 12:01 PM

Fakirchand Patidar

unread,
May 24, 2014, 4:24:09 AM5/24/14
to js...@googlegroups.com
Hello Sir,

This is my SendSMSWithDLR.java snippets:

try {
            session.connectAndBind(
                    host_ip,
                    port,
                    new BindParameter(
                    BindType.BIND_TRX,
                    username,
                    password,
                    system_type,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    null));

        } catch (IOException e) {
            System.err.println("Failed connect and bind to host");
            e.printStackTrace();
        }

        try {
            String messageId = session.submitShortMessage(
                    "CMT",
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    "UPADTE",
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    "8821995345",
                    new ESMClass(),

                    (byte) 0,
                    (byte) 1,
                    timeFormatter.format(new Date()),
                    null,
                    new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
                    (byte) 0,
                    DataCodings.ZERO, (byte) 0,
                    "Test SMS With DLR".getBytes());


When I'm running this code then

My local SMPP server (SMPPServerSimulator) return below output:

0 [main] DEBUG org.jsmpp.session.SMPPSession  - Connect and bind to localhost port 8056
14 [main] INFO org.jsmpp.session.SMPPSession  - Connected
17 [Thread-0] INFO org.jsmpp.session.SMPPSession  - Starting PDUReaderWorker with processor degree:3 ...
33 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
33 [pool-1-thread-1] DEBUG org.jsmpp.session.state.SMPPSessionOpen  - Bind Response header (20, 80000009, 00000000, 1)
34 [main] DEBUG org.jsmpp.session.AbstractSession  - bind response received
35 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
54 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
55 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
Message submitted, message_id is 2053fbb0
1067 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
Message id: 542374832
Sub: 1
Delivered: 1
Submit Date: Sat May 24 13:46:00 IST 2014
Done Date: Sat May 24 13:46:00 IST 2014
status: DELIVRD
Error: null
Message: Test SMS With DLR
Receiving delivery receipt for message '2053FBB0 ' from 8821995345 to UPADTE : id:542374832 sub:001 dlvrd:001 submit date:1405241346 done date:1405241346 stat:DELIVRD err:null text:Test SMS With DLR
1078 [pool-1-thread-3] DEBUG org.jsmpp.session.SMPPSession  - deliver_sm_resp with seq_number 1 has been sent
6067 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
6067 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
6071 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
6072 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10057 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10059 [main] DEBUG org.jsmpp.session.AbstractSession  - unbind response received
10062 [Thread-0] INFO org.jsmpp.session.SMPPSession  - PDUReaderWorker stop
10072 [Thread-1] INFO org.jsmpp.session.SMPPSession  - EnquireLinkSender stop
BUILD SUCCESSFUL (total time: 10 seconds)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

My SMPP Provider server return below output:


0 [main] DEBUG org.jsmpp.session.SMPPSession  - Connect and bind to 121.241.242.121 port 2351
37 [main] INFO org.jsmpp.session.SMPPSession  - Connected
41 [Thread-0] INFO org.jsmpp.session.SMPPSession  - Starting PDUReaderWorker with processor degree:3 ...
82 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
82 [pool-1-thread-1] DEBUG org.jsmpp.session.state.SMPPSessionOpen  - Bind Response header (29, 80000009, 00000000, 1)
87 [main] DEBUG org.jsmpp.session.AbstractSession  - bind response received
88 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
5082 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
5082 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
5102 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
5102 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10103 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
10103 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
10246 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10246 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10338 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10338 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
Message submitted, message_id is e518163b-1845-40c5-824a-3d2ff6107d40
15338 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
15338 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
15377 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
15378 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
20377 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
20377 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
20429 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
20430 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
25430 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
25430 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
25484 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
25484 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
30484 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
30484 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
30547 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
30548 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
35547 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
35547 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
35600 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
35601 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
40600 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
40600 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
40638 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
40639 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
....
...
....
....
Same
....
...

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please help me.

Fakirchand Patidar

unread,
May 26, 2014, 3:52:05 AM5/26/14
to js...@googlegroups.com
Hi Sir,

How to get this type of PDU's when run my program for Sending Message.

2013-10-22 12:11:32 [7956] [27] DEBUG: SMPP[smpp_xxxxxxx]: Sending PDU:
2013-10-22 12:11:32 [7956] [27] DEBUG: SMPP PDU 0x7f9d88005830 dump:
2013-10-22 12:11:32 [7956] [27] DEBUG:   type_name: submit_sm
2013-10-22 12:11:32 [7956] [27] DEBUG:   command_id: 4 = 0x00000004
2013-10-22 12:11:32 [7956] [27] DEBUG:   command_status: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   sequence_number: 196 = 0x000000c4
2013-10-22 12:11:32 [7956] [27] DEBUG:   service_type: NULL
2013-10-22 12:11:32 [7956] [27] DEBUG:   source_addr_ton: 5 = 0x00000005
2013-10-22 12:11:32 [7956] [27] DEBUG:   source_addr_npi: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   source_addr: "xxxxxx"
2013-10-22 12:11:32 [7956] [27] DEBUG:   dest_addr_ton: 1 = 0x00000001
2013-10-22 12:11:32 [7956] [27] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-10-22 12:11:32 [7956] [27] DEBUG:   destination_addr: "9197xxxxxxxxx"
2013-10-22 12:11:32 [7956] [27] DEBUG:   esm_class: 3 = 0x00000003
2013-10-22 12:11:32 [7956] [27] DEBUG:   protocol_id: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   priority_flag: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   schedule_delivery_time: NULL
2013-10-22 12:11:32 [7956] [27] DEBUG:   validity_period: NULL
2013-10-22 12:11:32 [7956] [27] DEBUG:   registered_delivery: 1 = 0x00000001
2013-10-22 12:11:32 [7956] [27] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   data_coding: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-10-22 12:11:32 [7956] [27] DEBUG:   sm_length: 91 = 0x0000005b
2013-10-22 12:11:32 [7956] [27] DEBUG:   short_message:
2013-10-22 12:11:32 [7956] [27] DEBUG:    Octet string at 0x7f9d880057d0:
2013-10-22 12:11:32 [7956] [27] DEBUG:      len:  91
2013-10-22 12:11:32 [7956] [27] DEBUG:      size: 130
2013-10-22 12:11:32 [7956] [27] DEBUG:      immutable: 0
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 54 65 73 74 69 6e 67 20 01 20 02 20 03 20 04 20   Testing . . . .
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 05 20 06 20 07 20 08 20 09 20 0b 20 0c 20 0e 20   . . . . . . . .
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 0f 20 3f 20 12 20 13 20 14 20 3f 20 16 20 17 20   . ? . . . ? . .
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 18 20 19 20 1a 20 1b 65 20 1c 20 1d 20 1e 20 1f   . . . .e . . . .
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 20 24 20 40 20 5b 20 5c 20 5d 20 5e 20 5f 20 60    $ @ [ \ ] ^ _ `
2013-10-22 12:11:32 [7956] [27] DEBUG:      data: 20 7b 20 7c 20 7d 20 7e 20 7f 2e                   { | } ~ ..
2013-10-22 12:11:32 [7956] [27] DEBUG:    Octet string dump ends.
2013-10-22 12:11:32 [7956] [27] DEBUG: SMPP PDU dump ends.


Please help me as soon as possible.


Fakirchand Patidar

unread,
May 27, 2014, 7:27:08 AM5/27/14
to js...@googlegroups.com

Hello Sir,

Please help me.


Fakirchand Patidar

unread,
May 28, 2014, 1:27:56 AM5/28/14
to js...@googlegroups.com
Hello Sir,

I'm sending message from my local SMPP Server then I'm getting this output:


0 [main] DEBUG org.jsmpp.session.SMPPSession  - Connect and bind to localhost port 8056
82 [main] INFO org.jsmpp.session.SMPPSession  - Connected
90 [Thread-0] INFO org.jsmpp.session.SMPPSession  - Starting PDUReaderWorker with processor degree:3 ...
158 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
158 [pool-1-thread-1] DEBUG org.jsmpp.session.state.SMPPSessionOpen  - Bind Response header (20, 80000009, 00000000, 1)
159 [main] DEBUG org.jsmpp.session.AbstractSession  - bind response received
160 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
532 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
534 [main] DEBUG org.jsmpp.session.AbstractSession  - submit_sm response received
Message submitted, message_id is 1feda26c
1570 [pool-1-thread-3] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
Message id: 1feda26c
Sub: 1
Delivered: 1
Submit Date: Wed May 28 10:59:00 IST 2014
Done Date: Wed May 28 10:59:00 IST 2014

status: DELIVRD
Error: null
Message: Test SMS With DLR
1584 [pool-1-thread-3] DEBUG org.jsmpp.session.SMPPSession  - deliver_sm_resp with seq_number 1 has been sent
6569 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - No activity notified
6569 [Thread-0] DEBUG org.jsmpp.session.SMPPSession  - Sending enquire link notify
6573 [pool-1-thread-1] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
6574 [Thread-1] DEBUG org.jsmpp.session.AbstractSession  - enquire_link response received
10536 [pool-1-thread-2] DEBUG org.jsmpp.session.AbstractSessionContext  - Activity notified
10537 [main] DEBUG org.jsmpp.session.AbstractSession  - unbind response received
10549 [Thread-0] INFO org.jsmpp.session.SMPPSession  - PDUReaderWorker stop
10577 [Thread-1] INFO org.jsmpp.session.SMPPSession  - EnquireLinkSender stop

BUILD SUCCESSFUL (total time: 10 seconds)



But I want to this PDU output in this format:
How to get this, Please help me.


Stefán Þorvarðarson

unread,
May 28, 2014, 5:00:38 AM5/28/14
to js...@googlegroups.com
Hi

From what system is the output that you want to mimic? Also, what version of jsmpp are you using? Your log seems to be missing information so you may be using an old version. Nevertheless, the jsmpp library does not have this kind of output but you can easily add it. The PDU messages enter the system in the run method of the PDUProcessTask class. That method prints a simple hex dump of the message (that I don't see in your log) and then goes into parsing the message. You can also easily print this debug information in your deliversm handler that receives the message.

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Wednesday, May 28, 2014 5:27 AM

Fakirchand Patidar

unread,
May 28, 2014, 5:58:10 AM5/28/14
to js...@googlegroups.com
Hello Sir,

Currently, I'm using this JSMPP version jSMPP 2.1.0.

 

manoj prabhakar

unread,
May 28, 2014, 6:43:59 AM5/28/14
to js...@googlegroups.com
Hi,

Please describe the problem ?

Stefán Þorvarðarson

unread,
May 28, 2014, 7:03:01 AM5/28/14
to js...@googlegroups.com
Hi

If you took the code from code.google.com/p/jsmpp then you are using an old version. Please use the code at:

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of 'manoj prabhakar' via jsmpp <js...@googlegroups.com>
Sent: Wednesday, May 28, 2014 10:43 AM

manoj prabhakar

unread,
May 28, 2014, 10:25:50 AM5/28/14
to js...@googlegroups.com
For that You have to edit JSMPP API,
Second Solution is disable the logging for JSMPP and Write your own logger
You can get all the info from objects and functions, do a little Hard work and you can get the format you needed.

Regards
Manoj Prabhakar

Fakirchand Patidar

unread,
May 29, 2014, 1:46:37 AM5/29/14
to js...@googlegroups.com
Hi Sir,

Thank you very much for valuable guidance.

Can you elaborate how to send message from multiple SMSC using jSMPP API?


Fakirchand Patidar

unread,
Jun 3, 2014, 7:38:49 AM6/3/14
to js...@googlegroups.com
Hello Sir,

When I'm sending short message from live SMPP Servers (Two Different SMPP server) then one gives me below error:

Failed getting delivery receipt
org.jsmpp.util.InvalidDeliveryReceiptException: There is an error found when parsing delivery receipt


and second is not give me any delivery report.

Please help me.


Fakirchand Patidar

unread,
Jun 4, 2014, 11:16:40 AM6/4/14
to js...@googlegroups.com
Hello Sir,

I have a question about SMPP that how many messages we can send from one SMPP Port?

Please help me.


Fakirchand Patidar

unread,
Jun 5, 2014, 3:37:32 AM6/5/14
to js...@googlegroups.com
Hello Sir,

How to send bulk message asynchronously?

Please help me this issue and also clear my previous doubt.

I'm waiting your supportive response.





Fakirchand Patidar

unread,
Jun 5, 2014, 7:43:15 AM6/5/14
to js...@googlegroups.com
Hello Sir,

Thank You very much for your valuable guidance.

I have implemented JSMPP in my project but the speed of sending Bulk message is very slow.
So can you help that how to increase speed of Bulk Message.



Stefán Þorvarðarson

unread,
Jun 5, 2014, 8:16:12 AM6/5/14
to js...@googlegroups.com
Hi

It is possible that the SMSC is throttling you down, what is the speed that you are supposed to get from the smsc? Submissions are normally throttled down to protect the smsc and the mobile network. Is the SMSC slow to respond or are you doing other processing in between that is slowing down the bulk process? If you are supposed to get more speed from the smsc and the smsc supports windowing (multiple concurrent SMPP operations) then you can use a threadpool to send multiple messages simultaneously.

Regarding the InvalidDeliveryReceiptException, it is impossible to diagnose that problem without the actual smpp message that was received. It would help if you could provide a tcpdump or wireshark trace containing the delivery receipt that jsmpp is unable to process.

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Thursday, June 5, 2014 11:43 AM

Fakirchand Patidar

unread,
Jun 7, 2014, 2:17:50 AM6/7/14
to js...@googlegroups.com
Hello Stefan,

When I'm sending short messages in bulk then I'm not receiving that messages to particular ESME's and also I'm not getting any delivery receipts

This is my code snippets:


try {
            Address address1 = new Address(TypeOfNumber.UNKNOWN, NumberingPlanIndicator.UNKNOWN, "9039238251");
            Address address2 = new Address(TypeOfNumber.UNKNOWN, NumberingPlanIndicator.UNKNOWN, "9039238251");
            Address[] addresses = new Address[]{address1, address2};

            SubmitMultiResult result = session.submitMultiple(
                    "CMT",
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    "IAMSRK",
                    addresses,

                    new ESMClass(),
                    (byte) 0,
                    (byte) 1,
                    timeFormatter.format(new Date()),
                    null,
                    new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
                    ReplaceIfPresentFlag.REPLACE,
                    new GeneralDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS1, false),
                    (byte) 0,
                    "Test Bulk SMS".getBytes());

            System.out.println("Messages submitted, result is " + result);

}        } catch (PDUException e) {
            // Invalid PDU parameter
            System.err.println("Invalid PDU parameter");
            e.printStackTrace();
        } catch (ResponseTimeoutException e) {
            // Response timeout
            System.err.println("Response timeout");
            e.printStackTrace();
        } catch (InvalidResponseException e) {
            // Invalid response
            System.err.println("Receive invalid respose");
            e.printStackTrace();
        } catch (NegativeResponseException e) {
            // Receiving negative response (non-zero command_status)
            System.err.println("Receive negative response");
            e.printStackTrace();
        } catch (IOException e) {
            System.err.println("IO error occur");
            e.printStackTrace();
        } catch (InterruptedException e) {
            System.err.println("Thread interrupted");
            e.printStackTrace();
        }


Please short out my problem as soon as possible. I'm waiting for your valuable response.
 

Fakirchand Patidar

unread,
Jun 7, 2014, 4:44:26 AM6/7/14
to js...@googlegroups.com
Hello Sir,

I need one more help from your side.

How to extract all the destination address on SMPP server side and how to send delivery report for each destination address.

I'm getting all destination address in DestinationAddress[] dest_addr array from submit_multi_sm pdu's:

        DestinationAddress[] dest_addr = submitMulti.getDestAddresses();
        logger.debug("Destination Address: {}", dest_addr);



Please help me.



manoj prabhakar

unread,
Jun 9, 2014, 12:50:03 AM6/9/14
to js...@googlegroups.com
HI,

Most of the vendors doesn't pass all parameters in Delivery Receipt.
and in jsmpp if any of the parameter is found null it gives an exception.

Try to take dump from wire-shark and check the packet received for Delivery receipt.

Solution :- Have to update jsmpp api to fetch parameters with individual check for null and showing all parameters even it is null or not present.

Regards
Manoj Prabhakar

Fakirchand Patidar

unread,
Jun 9, 2014, 5:31:13 AM6/9/14
to js...@googlegroups.com
Hello Manoj Sir,

This is dump pdu's of WireShark:

No.        Time                Source                 Destination              Protocol   Length        Information
40         15.124215000   192.168.1.2           174.36.194.138        SMPP     93             SMPP Bind_transceiver
42         15.471326000   174.36.194.138    192.168.1.2               SMPP     86             SMPP Bind_transceiver - resp: "Ok"
45         17.586413000   192.168.1.2           174.36.194.138        SMPP     139            SMPP Submit_sm
46         17.971041000   174.36.194.138    192.168.1.2               SMPP     107            SMPP Submit_sm - resp: "Ok"
52         22.972279000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
53         23.250825000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
63         28.251469000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
64         28.679331000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
68         33.680158000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
69         34.023119000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
66         39.023869000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
99         39.306122000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
112     44.306235000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
113        44.646574000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
454     49.649856000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
456     49.901786000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
464     54.903487000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
469     55.246798000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
484     56.631312000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
485     56.631377000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
486     56.990685000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
487     56.991500000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
493     60.248008000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
494     60.606886000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"
499     65.608267000   192.168.1.2           174.36.194.138        SMPP     70             SMPP Enquire_link
500     65.989314000   174.36.194.138    192.168.1.2               SMPP     70             SMPP Enquire_link - resp: "Ok"


There is no pdu for delivery receipt.

When I'm sending sms from Local SMPP server then local SMPP server sends me delivery receipt.

But when I'm sending sms from Live SMPP Server then it is not sending me delivery receipt.

Please help me regarding this issue.




Fakirchand Patidar

unread,
Jun 11, 2014, 2:20:09 AM6/11/14
to js...@googlegroups.com
Hello Sir,

I need some help because I'm new with SMPP, when I'm sending bulk message from Java SMPP API then I'm sending message on 254 destination number.

So please suggest me that how to increase this limitations.


A great thanks for your previous valuable guidance.


Fakirchand Patidar

unread,
Jun 13, 2014, 2:53:23 AM6/13/14
to js...@googlegroups.com
Hello Sir,

When I'm sending Bulk Message through Selenium SMPP Server then it's not returns me delivery receipt.

This is the logs of Selenium SMPP Server:

2014.06.12 17:57:12 518 INFO    9 : BIND_TRANSCEIVER:
2014.06.12 17:57:12 519 INFO    9 Hex dump (33) bytes:
2014.06.12 17:57:12 519 INFO    9 00000021:00000009:00000000:00000001:
2014.06.12 17:57:12 522 INFO    9 74657374:00746573:74006370:00340000:
2014.06.12 17:57:12 523 INFO    9 00
2014.06.12 17:57:12 524 INFO    9 cmd_len=33,cmd_id=9,cmd_status=0,seq_no=1,system_id=test,password=test
2014.06.12 17:57:12 524 INFO    9 system_type=cp,interface_version=52,addr_ton=0,addr_npi=0,address_range=
2014.06.12 17:57:12 526 INFO    9
2014.06.12 17:57:12 527 INFO    9 StandardProtocolHandler: setting address range to
2014.06.12 17:57:12 533 INFO    9 Made RE for [:alnum:]*
2014.06.12 17:57:12 534 INFO    9 New transceiver session bound to SMPPSim
2014.06.12 17:57:12 535 INFO    9 : BIND_TRANSCEIVER_RESP:
2014.06.12 17:57:12 536 INFO    9 Hex dump (24) bytes:
2014.06.12 17:57:12 537 INFO    9 00000018:80000009:00000000:00000001:
2014.06.12 17:57:12 537 INFO    9 534D5050:53696D00:
2014.06.12 17:57:12 538 INFO    9 cmd_len=0,cmd_id=-2147483639,cmd_status=0,seq_no=1,system_id=SMPPSim
2014.06.12 17:57:12 539 INFO    9
2014.06.12 17:57:12 540 INFO    9 1 receivers connected and bound
2014.06.12 17:57:12 542 INFO    20 InboundQueue: empty  - waiting
2014.06.12 17:57:12 733 INFO    9 : Standard SUBMIT_MULTI:
2014.06.12 17:57:12 735 INFO    9 Hex dump (209) bytes:
2014.06.12 17:57:12 735 INFO    9 000000D1:00000021:00000000:00000002:
2014.06.12 17:57:12 736 INFO    9 434D5400:00004941:4D53524B:000A0100:
2014.06.12 17:57:12 739 INFO    9 00393939:39393130:30303100:01000039:
2014.06.12 17:57:12 741 INFO    9 39393939:31303030:32000100:00393939:
2014.06.12 17:57:12 744 INFO    9 39393130:30303300:01000039:39393939:
2014.06.12 17:57:12 747 INFO    9 31303030:34000100:00393939:39393130:
2014.06.12 17:57:12 748 INFO    9 30303500:01000039:39393939:31303030:
2014.06.12 17:57:12 749 INFO    9 36000100:00393939:39393130:30303700:
2014.06.12 17:57:12 750 INFO    9 01000039:39393939:31303030:38000100:
2014.06.12 17:57:12 750 INFO    9 00393939:39393130:30303900:01000039:
2014.06.12 17:57:12 751 INFO    9 39393939:31303031:30000800:01313430:
2014.06.12 17:57:12 752 INFO    9 36313231:37353731:32353232:2B000001:
2014.06.12 17:57:12 753 INFO    9 0111000D:54657374:2042756C:6B20534D:
2014.06.12 17:57:12 754 INFO    9 53
2014.06.12 17:57:12 757 INFO    9 cmd_len=209,cmd_id=33,cmd_status=0,seq_no=2,service_type=CMT,source_addr_ton=0
2014.06.12 17:57:12 757 INFO    9 source_addr_npi=0,source_addr=IAMSRK,number_of_dests=10,[0]dest_flag=1
2014.06.12 17:57:12 758 INFO    9 sme_ton=0,sme_npi=0,sme_address=9999910001,[1]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 760 INFO    9 sme_address=9999910002,[2]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 761 INFO    9 sme_address=9999910003,[3]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 767 INFO    9 sme_address=9999910004,[4]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 768 INFO    9 sme_address=9999910005,[5]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 770 INFO    9 sme_address=9999910006,[6]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 771 INFO    9 sme_address=9999910007,[7]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 772 INFO    9 sme_address=9999910008,[8]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 773 INFO    9 sme_address=9999910009,[9]dest_flag=1,sme_ton=0,sme_npi=0
2014.06.12 17:57:12 775 INFO    9 sme_address=9999910010,esm_class=8,protocol_ID=0,priority_flag=1
2014.06.12 17:57:12 776 INFO    9 schedule_delivery_time=140612175712522+,validity_period=
2014.06.12 17:57:12 777 INFO    9 registered_delivery_flag=1,replace_if_present_flag=1,data_coding=17
2014.06.12 17:57:12 777 INFO    9 sm_default_msg_id=0,sm_length=13,short_message=Test Bulk SMS
2014.06.12 17:57:12 777 INFO    9
2014.06.12 17:57:12 778 INFO    9 :SUBMIT_MULTI_RESP:
2014.06.12 17:57:12 779 INFO    9 Hex dump (19) bytes:
2014.06.12 17:57:12 785 INFO    9 00000013:80000021:00000000:00000002:
2014.06.12 17:57:12 785 INFO    9 300000
2014.06.12 17:57:12 786 INFO    9 cmd_len=0,cmd_id=-2147483615,cmd_status=0,seq_no=2,message_id=0
2014.06.12 17:57:12 788 INFO    9 unsuccess_sme array:<empty>

2014.06.12 17:57:12 788 INFO    9
2014.06.12 17:57:17 792 INFO    9 : ENQUIRE_LINK:
2014.06.12 17:57:17 792 INFO    9 Hex dump (16) bytes:
2014.06.12 17:57:17 793 INFO    9 00000010:00000015:00000000:00000003:
2014.06.12 17:57:17 793 INFO    9
2014.06.12 17:57:17 793 INFO    9 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=3
2014.06.12 17:57:17 795 INFO    9
2014.06.12 17:57:17 798 INFO    9 :ENQUIRE_LINK_RESP:
2014.06.12 17:57:17 800 INFO    9 Hex dump (16) bytes:
2014.06.12 17:57:17 801 INFO    9 00000010:80000015:00000000:00000003:
2014.06.12 17:57:17 801 INFO    9
2014.06.12 17:57:17 801 INFO    9 cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=3
2014.06.12 17:57:17 802 INFO    9
2014.06.12 17:57:22 804 INFO    9 : ENQUIRE_LINK:
2014.06.12 17:57:22 804 INFO    9 Hex dump (16) bytes:
2014.06.12 17:57:22 806 INFO    9 00000010:00000015:00000000:00000004:
2014.06.12 17:57:22 807 INFO    9
2014.06.12 17:57:22 808 INFO    9 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=4
2014.06.12 17:57:22 809 INFO    9


It show this bold pdu values when it's generating delivery receipt.

Please help me as soon as possible.


manoj prabhakar

unread,
Jun 18, 2014, 1:48:25 AM6/18/14
to js...@googlegroups.com
Hi,

Share the PDU dump.. also check if you had enabled delivery receipt in submit sm or not.
also confirm from SMPP account provider end that they share delivery receipt or not.

Regards
Manoj Prabhakar

Fakirchand Patidar

unread,
Jun 18, 2014, 8:44:23 AM6/18/14
to js...@googlegroups.com
Hello Sir,

My problem is that when I'm testing my SMPP application for Bulk Message using SUBMIT_MULTI method with Selenium SMPP Simulator and ActiveXperts Simulator,
then I'm not getting delivery receipt but When I'm testing with my own local SMPP Simulator (Using JSMPP API) then I'm getting delivery receipt.

When I'm contacting with both of them, then they said to me that we have not implement SUBMIT_MULTI method in current versions of our Simulators.

So please suggest me that how can I implement SUBMIT_MULTI method for Bulk message because it takes less time for sending messages rather than SUBMIT_SM.

Your response is very useful and valuable for me.

Thank you very much for your valuable guidance.

...

[Message clipped]  

Ramesh Helaiya

unread,
Jun 18, 2014, 8:46:24 AM6/18/14
to js...@googlegroups.com
Hi,
401 in RouteSms means Credits are exhausted in your account.
Please check with your Account Manager in RouteSms.

Regards,
Ramesh Helaiya

Stefán Þorvarðarson

unread,
Jun 18, 2014, 10:11:59 AM6/18/14
to js...@googlegroups.com
Hi

Using delivery receipts with submit_multi is generally unsupported on smsc because the submit_multi method can only return one message id. For best compatibility with smsc systems, you should be using submit_sm. If the speed of submit_sm is slow, then you need to use multiple threads to run multiple operations simultaneously.

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Wednesday, June 18, 2014 12:44 PM

Fakirchand Patidar

unread,
Jun 18, 2014, 10:33:37 AM6/18/14
to js...@googlegroups.com
Hello Sir,

I'm sending bulk messages through threading using SUBMIT_SM but I'm not able to send 5000 SMS/second.

When I'm sending 30000 Message then it takes 20-25 minutes.

So please help me that how can I achieve this.


Stefán Þorvarðarson

unread,
Jun 18, 2014, 10:51:18 AM6/18/14
to js...@googlegroups.com
Hi

If this is for normal bulk messaging then I think you will never get access to any smsc that will allow you to send 5000 messages/sec into the real mobile network. You should be able to submit a bit more than 25 sms/sec (30000 messages over 20 minutes) but going to thousands of messages per second will not be possible unless your application is located very near the smsc.

When I last performance tested the jsmpp library I got thousands of operations/sec using submit_sm. You will have to do the normal performance tests to find the bottlenecks in your code that limit you to 25 sms/sec (it is probably the network, database or something else unrelated to the jsmpp library itself).

Best regards,
Stefan


From: js...@googlegroups.com <js...@googlegroups.com> on behalf of Fakirchand Patidar <bulk24sms...@gmail.com>
Sent: Wednesday, June 18, 2014 2:33 PM

Fakirchand Patidar

unread,
Jun 19, 2014, 4:27:21 AM6/19/14
to js...@googlegroups.com
Hi Sir,

According to your valuable guidance I have to check all the parameters for sending Bulk Messages, I'm testing my application on Local SMPP Server so there is no Network problem and as well as I'm not fetching data from database. I'm fetching data from CSV file.

This is code snippets:
//----------------------------------------------------------------------------------------------------------------------------------------------------------------//
package SMPP_Client;

import java.io.BufferedReader;
import java.io.IOException;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;

import java.io.FileNotFoundException;

import java.io.FileReader;
import org.apache.log4j.BasicConfigurator;
import org.jsmpp.InvalidResponseException;
import org.jsmpp.PDUException;
import org.jsmpp.bean.AlertNotification;
import org.jsmpp.bean.BindType;
import org.jsmpp.bean.DataCodings;
import org.jsmpp.bean.DataSm;
import org.jsmpp.bean.DeliverSm;
import org.jsmpp.bean.DeliveryReceipt;
import org.jsmpp.bean.ESMClass;
import org.jsmpp.bean.MessageType;
import org.jsmpp.bean.NumberingPlanIndicator;
import org.jsmpp.bean.RegisteredDelivery;
import org.jsmpp.bean.SMSCDeliveryReceipt;
import org.jsmpp.bean.TypeOfNumber;
import org.jsmpp.extra.NegativeResponseException;
import org.jsmpp.extra.ProcessRequestException;
import org.jsmpp.extra.ResponseTimeoutException;
import org.jsmpp.session.BindParameter;
import org.jsmpp.session.DataSmResult;
import org.jsmpp.session.MessageReceiverListener;
import org.jsmpp.session.SMPPSession;
import org.jsmpp.session.Session;
import org.jsmpp.util.AbsoluteTimeFormatter;
import org.jsmpp.util.InvalidDeliveryReceiptException;
import org.jsmpp.util.TimeFormatter;

/**
 * @author uudashr
 *
 */
public class AsyncSubmitSM {

    private static TimeFormatter timeFormatter = new AbsoluteTimeFormatter();

    public static void main(String[] args) throws FileNotFoundException, IOException {
        final AtomicInteger counter = new AtomicInteger();
        // Connection Established with SMSC
        BasicConfigurator.configure();
               // Local Server
        String host_ip = "localhost";
        int port = 1111;
        String username = "test";
        String password = "test";
        String system_type = "smpp";
      
        final SMPPSession session = new SMPPSession();
        session.setTransactionTimer(20000);

        String csvFile = "E:\\SMPP Projects\\My_JSMPP\\src\\java\\contacts.csv";
        BufferedReader br = null;
        String line = "";
        String cvsSplitBy = ",";


        try {
            session.connectAndBind(
                    host_ip,
                    port,
                    new BindParameter(
                    BindType.BIND_TRX,
                    username,
                    password,
                    system_type,
                    TypeOfNumber.UNKNOWN,
                    NumberingPlanIndicator.UNKNOWN,
                    null));

        } catch (IOException e) {
            System.err.println("Failed connect and bind to host");
            e.printStackTrace();
        }

        // Set listener to receive deliver_sm
        session.setMessageReceiverListener(new MessageReceiverListener() {

            public void onAcceptDeliverSm(DeliverSm deliverSm)
                    throws ProcessRequestException {
                if (MessageType.SMSC_DEL_RECEIPT.containedIn(deliverSm.getEsmClass())) {
                    counter.incrementAndGet();
                    // delivery receipt
                    try {
                        DeliveryReceipt delReceipt = deliverSm.getShortMessageAsDeliveryReceipt();
                        long id = Long.parseLong(delReceipt.getId()) & 0xffffffff;
                        String messageId = Long.toString(id, 16).toUpperCase();

                        System.out.println("Receiving delivery receipt for message '" + messageId + "' : " + delReceipt);

                    } catch (InvalidDeliveryReceiptException e) {
                        System.err.println("Failed getting delivery receipt");
                        e.printStackTrace();
                    }
                } else {
                    // regular short message
                    System.out.println("Receiving message : " + new String(deliverSm.getShortMessage()));
                }
            }

            public void onAcceptAlertNotification(
                    AlertNotification alertNotification) {
            }

            public DataSmResult onAcceptDataSm(DataSm dataSm, Session source)
                    throws ProcessRequestException {
                // TODO Auto-generated method stub
                return null;
            }
        });

        // Now we will send 50 message asynchronously with max outstanding messages 10.
        ExecutorService execService = Executors.newFixedThreadPool(10);

        // requesting delivery report
        final RegisteredDelivery registeredDelivery = new RegisteredDelivery();
        registeredDelivery.setSMSCDeliveryReceipt(SMSCDeliveryReceipt.SUCCESS_FAILURE);
        //int maxMessage = 30000;
        int maxMessage = 0;

        br = new BufferedReader(new FileReader(csvFile));

        //for (int i = 0; i < maxMessage; i++) {

        int i = 1;

        //Get all tokens and store them in some data structure
        //I am just printing them
        while ((line = br.readLine()) != null) {

            System.out.println(""+i);
            i++;

            final String[] contact = line.split(cvsSplitBy);

            maxMessage++;

            execService.execute(new Runnable() {

                public void run() {

                    try {
                        String messageId = session.submitShortMessage(
                                "CMT",
                                TypeOfNumber.INTERNATIONAL,
                                NumberingPlanIndicator.UNKNOWN,
                                "BulkIn",
                                TypeOfNumber.INTERNATIONAL,
                                NumberingPlanIndicator.UNKNOWN,
                                contact[0],

                                new ESMClass(),
                                (byte) 0,
                                (byte) 1,
                                timeFormatter.format(new Date()),
                                null,
                                registeredDelivery,

                                (byte) 0,
                                DataCodings.ZERO,
                                (byte) 0,
                                "Testing Message".getBytes());

                        System.out.println("Message submitted, message_id is " + messageId);

                    } catch (PDUException e) {

                        System.err.println("Invalid PDU parameter");
                        e.printStackTrace();
                        counter.incrementAndGet();
                    } catch (ResponseTimeoutException e) {

                        System.err.println("Response timeout");
                        e.printStackTrace();
                        counter.incrementAndGet();

                    } catch (InvalidResponseException e) {
                        // Invalid response
                        System.err.println("Receive invalid respose");
                        e.printStackTrace();
                        counter.incrementAndGet();

                    } catch (NegativeResponseException e) {
                        // Receiving negative response (non-zero command_status)
                        System.err.println("Receive negative response");
                        e.printStackTrace();
                        counter.incrementAndGet();

                    } catch (IOException e) {
                        System.err.println("IO error occur");
                        e.printStackTrace();
                        counter.incrementAndGet();
                    }
                }
            });
        }

        //System.out.println("Total Message submitted: " + maxMessage);

        while (counter.get() != maxMessage) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
            }
        }

        session.unbindAndClose();
        execService.shutdown();
    }
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------//

Please let me check my code and suggest me that where I'm mistaking.
Reply all
Reply to author
Forward
0 new messages