nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

TON and NPI settings #510

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How can I set bindTypeOfNumber and bindNumberingPlanIndicator?

Because sms sending is not working, (receiving is OK), I think that I must set 
these two parameters (bindTypeOfNumber=5, bindNumberingPlanIndicator=1)

I use smslib for Java, ver. 3.5.2.
Thanks.

Original issue reported on code.google.com by labovic....@gmail.com on 17 Sep 2012 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 17 Sep 2012 at 10:58

GoogleCodeExporter commented 9 years ago
precisely, I need to setup smpp connection so that be:
SOURCE ADDRESS TypeOfNumber = 5;
SOURCE ADDRESS bindNumberingPlanIndicator= 1;
DEST ADDRESS TypeOfNumber = 1;
DEST ADDRESS bindNumberingPlanIndicator= 1;
That vars exist in SMPPGateway but not in JSMPPGateway.

It can be set as constants, never mind (I would never change them)...

Original comment by labovic....@gmail.com on 17 Sep 2012 at 12:38

GoogleCodeExporter commented 9 years ago
>>> Gateway Status change for smppcon, OLD: STOPPED -> NEW: STARTING
>>> Gateway Status change for smppcon, OLD: STARTING -> NEW: STARTED

===============================================================================
<< OutboundMessage >>
-------------------------------------------------------------------------------
 Gateway Id: smppcon
 Message Id: 0
 Message UUID: 82a6261d-a529-41e0-a179-61483eee7a62
 Encoding: 7-bit
 Date: Wed Sep 19 10:22:33 CEST 2012
 SMSC Ref No: ffffff012f4a3ff5
 Recipient: 38268406005
 Dispatch Date: Wed Sep 19 10:22:33 CEST 2012
 Message Status: SENT
 Failure Cause: NO_ERROR
 Validity Period (Hours): -1
 Status Report: true
 Source / Destination Ports: -1 / -1
 Flash SMS: false
 Text: PORUKA
 PDU data: D0A7B4BA0C02
 Scheduled Delivery: null
===============================================================================

Now Sleeping - Hit <enter> to terminate.

Message is SENT but it is on PENDING status on SMS Center, and this message 
stuck all others incomming (Recipient: 38268406005 cannot receive no more 
message until this expire / after 24 hours)
Did you know what is the problem?
Thanks.

Original comment by labovic....@gmail.com on 19 Sep 2012 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 1 Jan 2014 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 2 Jan 2014 at 12:07