Problems/questions of the SMPP protocol

Problems/questions of the SMPP protocol SearchSearch
Author Message
Steven Ma
New member
Username: Steven_ma

Post Number: 1
Registered: 10-2011
Posted on Tuesday, October 25, 2011 - 11:32 am:   

Hello! I am first time user of NowSMS Lite.
I configure NowSMS Lite with SMPP enabled, server listening on port 8801.

I have a SMPP client connect to NowSMS Lite, and using iTegno W3800 U with Windows XP.

First problem, when my client reading the inbound stream (direction from SMSC to my client), here is the log of the SMPP:

25.10.11/17:29:15> _Con_:di_smpp._loginToSC[25.10.2011/17:29]: login SC#1 is Ok. Starting ...
25.10.11/17:29:34> sw/SC(1/2)>[00000010.80000015.00000000.0000000A.]
25.10.11/17:29:53> sw/SC(1/2)>[00000010.80000015.00000000.0000000B.]
25.10.11/17:30:13> sw/SC(1/2)>[00000010.80000015.00000000.0000000C.]
25.10.11/17:30:34> sw/SC(1/2)>[00000010.80000015.00000000.0000000D.]
25.10.11/17:30:53> sw/SC(1/2)>[00000010.80000015.00000000.0000000E.]
25.10.11/17:31:14> sw/SC(1/2)>[00000010.80000015.00000000.0000000F.]
25.10.11/17:31:16> sr/SC(1/1)._listen(): Exception: IO error in input stream.. Reconnecting in 20 sec.
java.lang.Exception: IO error in input stream.
at com.gemplus.hswe.q.a(Unknown Source)
at com.gemplus.hswe.q._execute(Unknown Source)
at r.j.TThread.run(TThread.java:123)

25.10.11/17:31:19> _Con_** SC#1 Reconnect Req. Date/Time(min) --> 25.10.2011/17:31 <-- *
25.10.11/17:31:33> sw/SC(1/2)>[00000010.80000015.00000000.00000010.]
---------------------------------------------
25.10.11/17:31:41> sr(1): connecting to [SMSC#1>ftp://10.160.196.162:8801]:
25.10.11/17:31:41> sr(1): connection to [SMSC#1>ftp://10.160.196.162:8801]: is Ok, logging ...
25.10.11/17:31:41> di_smpp._loginToSC(): request is got.
25.10.11/17:31:41> sw/SC(1/1)>[00000027.00000009.00000000.00000001.6F7461353278006F7461353278004F54 41003400013000]
25.10.11/17:31:41> sr/SC(1/1)<[0000001C.80000009.00000000.00000001.4E6F77534D53000210000134]
----------------------------------------
25.10.11/17:31:41> _Con_:di_smpp._loginToSC[25.10.2011/17:31]: login SC#1 is Ok. Starting ...
25.10.11/17:31:53> sw/SC(1/2)>[00000010.80000015.00000000.00000011.]
25.10.11/17:32:14> sw/SC(1/2)>[00000010.80000015.00000000.00000012.]
25.10.11/17:32:33> sw/SC(1/2)>[00000010.80000015.00000000.00000013.]
25.10.11/17:32:53> sw/SC(1/2)>[00000010.80000015.00000000.00000014.]
25.10.11/17:33:14> sw/SC(1/2)>[00000010.80000015.00000000.00000015.]
25.10.11/17:33:33> sw/SC(1/2)>[00000010.80000015.00000000.00000016.]
25.10.11/17:33:40> sr/SC(1/1)._listen(): Exception: IO error in input stream.. Reconnecting in 20 sec.
java.lang.Exception: IO error in input stream.
at com.gemplus.hswe.q.a(Unknown Source)
at com.gemplus.hswe.q._execute(Unknown Source)
at r.j.TThread.run(TThread.java:123)

25.10.11/17:33:44> _Con_** SC#1 Reconnect Req. Date/Time(min) --> 25.10.2011/17:33 <-- *
Steven Ma
New member
Username: Steven_ma

Post Number: 2
Registered: 10-2011
Posted on Tuesday, October 25, 2011 - 11:32 am:   

Second problem, when I send SMS from my SMPP client to a mobile, upon mobile receive the SMS, there is no Delivery Status (DS) return from NowSMS Lite. The log:

----------------------------------------
-- ServiceDataBlock (SDB):{MT_Rev}:
> TP_OA TonNpi, OA .. [A1][6594377153]
> TP_DA TonNpi, DA .. [A1][6593628302]
> TP_PID, TP_DCS .... [00][00]
> TP_UserDataHdr .... []
> TP_UserData ....... {4}[test]
----------------------------------------
25.10.11/17:55:27> sw/SC(1/1)>[00000039.00000004.00000000.00000002.00020136353934333737313533000201 36353933363238333032000000000000010000000474657374]
25.10.11/17:55:27> sr/SC(1/1)<[00000019.80000004.00000000.00000002.344541363837393000]
----------------------------------------
-- ServiceDataBlock (SDB):{MTAck}:
> SMSCMsgRef (MTAck): [4EA68790]
----------------------------------------
25.10.11/17:55:27> sw/SC(1/2)>[00000019.80000004.00000000.00000059.344541363837393000]
1 17:55:41 0h 0 1 0 0 0 1 1 41 2748
25.10.11/17:55:48> sw/SC(1/2)>[00000010.80000015.00000000.0000005A.]
25.10.11/17:56:07> sw/SC(1/2)>[00000010.80000015.00000000.0000005B.]
25.10.11/17:56:27> sw/SC(1/2)>[00000010.80000015.00000000.0000005C.]
Steven Ma
New member
Username: Steven_ma

Post Number: 3
Registered: 10-2011
Posted on Tuesday, October 25, 2011 - 11:34 am:   

Third problem, when I use my mobile reply to the SMS, it received by NowSMS Lite, but does not forward to my SMPP client. I see the SMS in the "Received SMS Message":
[SMS-IN]
ModemName=iTegno GPRS Wireless Modem
Sender=+6593628302
PhoneNumber=+94377153
Data=Can u RECEIVE?
ReceivedSMSC=+6596845999

I already tried the setting "SMS Message Storage" with Default, Device Memory and Direct to Modem, all do not help. I did Stop and Start server service everytime changes the setting.
I enable the "Process received SMS Messages" -> Route SMS to local user <username>
Steven Ma
New member
Username: Steven_ma

Post Number: 4
Registered: 10-2011
Posted on Tuesday, October 25, 2011 - 11:35 am:   

Last question, how much is the NowSMS Lite?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3553
Registered: 08-2008
Posted on Tuesday, October 25, 2011 - 03:44 pm:   

Hi,


quote:

First problem, when my client reading the inbound stream (direction from SMSC to my client), here is the log of the SMPP:




I don't know what the terminology in your client's log means.

But I assume that it is being disconnected after a period of inactivity.

It is normal behaviour for an SMPP server to disconnect a client after a period of inactivity. SMPP clients are expected to periodically send the enquire_link command to tell the server that the client is still alive and prevent the server from disconnecting the client.

We do allow this timeout to be configured, and disabled if necessary. The default timeout for our SMPP server is 120 seconds.

However, the user interface of NowSMS Lite does not have a place to configure these options. The options can be configured by manually editing the SMSGW.INI file (usually located in ProgramData\NowSMS).

Under the [SMSGW] section header, add:

SMPPServerEnquireLink=0

This will disable the server from timing out any client connections.


--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3554
Registered: 08-2008
Posted on Tuesday, October 25, 2011 - 07:33 pm:   


quote:

Second problem, when I send SMS from my SMPP client to a mobile, upon mobile receive the SMS, there is no Delivery Status (DS) return from NowSMS Lite. The log:




There are three keys to delivery receipts on modems:

1.) You need to ask for one. When submitting via SMPP, the registered_delivery flag needs to be set to 1. If I am interpreting your message correctly, this flag does appear to be set.

2.) The mobile operator network you are on must support delivery receipts. (Some operators disable them. If you can try requesting one with a phone client that supports them to confirm the operator network supports them, that would be advisable.)

3.) The modem you are using must support delivery receipts. I'm not sure about iTegno modems, but it almost seems to be 50-50 whether or not a modem supports delivery receipts.

Sometimes, configuring the "SMS Storage Mode" in NowSMS to "Direct to Modem" will cause the modem to start pushing delivery receipts to NowSMS.

If you want to reply with an SMSDEBUG.LOG attachment that shows NowSMS initialising your modem, there might be one other setting that we could try, but I want to see the modem init responses before suggesting this.



--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3555
Registered: 08-2008
Posted on Tuesday, October 25, 2011 - 07:37 pm:   


quote:

Third problem, when I use my mobile reply to the SMS, it received by NowSMS Lite, but does not forward to my SMPP client. I see the SMS in the "Received SMS Message":

I enable the "Process received SMS Messages" -> Route SMS to local user <username>




Make sure the user account has "Accept received messages for this user" checked. This is a new setting that we added in the most recent release, and it must be enabled for the account to receive delivery reports.


I also did some testing today, and might have found a bug.

I did a fresh install of NowSMS Lite, and I had a user account that could not receive messages even though all configuration settings were correct.

For some reason, a directory was not being automatically created. If you create a directory named USERS in \Program Data\NowSMS, and then edit and save your user account, this seems to fix the problem.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3556
Registered: 08-2008
Posted on Tuesday, October 25, 2011 - 07:38 pm:   


quote:

Last question, how much is the NowSMS Lite?




$295 USD