Sending Binary Conetents Over SMPP

Sending Binary Conetents Over SMPP SearchSearch
Author Message
Mohd
Unregistered guest
Posted on Wednesday, June 09, 2004 - 06:32 pm:   

hi Bryce
i'm evaluating nowsms version 5.50 (b20040503) and every thing was going fine. recently i was trying to send a binary ringtone which i sent before succesfully using a gsm modem with nowsms, but when i tried to send it using smpp connecttion to smsc (actualy my smsc is just a simulator and it's Logica SmscSim) i failed and the smsc does not give any smpp response, the SMPPDEBUG file looks like this

19:03:40:894 SMPPEnquireLink: Sending enquire_link
19:03:40:924 SMPPEnquireLink: Response received for enquire_link
19:03:41:004 SMPPEnquireLink: Sending enquire_link
19:03:41:024 SMPPEnquireLink: Response received for enquire_link
19:04:39:999 SMPPEnquireLink: Sending enquire_link
19:04:40:019 SMPPEnquireLink: Response received for enquire_link
19:04:40:239 SMPPEnquireLink: Sending enquire_link
19:04:40:269 SMPPEnquireLink: Response received for enquire_link
19:05:15:420 (000000CC) 127.0.0.1 ->: 171 byte packet
19:05:15:420 (000000CC) 127.0.0.1 ->: 00 00 00 AB 00 00 00 04 00 00 00 00 00 00 00 07
19:05:15:420 (000000CC) 127.0.0.1 ->: 00 00 00 00 00 01 31 32 33 34 35 36 37 38 00 40 12345678 @
19:05:15:420 (000000CC) 127.0.0.1 ->: 00 00 00 00 00 00 F5 00 82 06 05 04 15 81 15 81
19:05:15:420 (000000CC) 127.0.0.1 ->: 02 4A 3A 6D 9D 85 99 95 95 D1 85 B1 B9 85 CC 04 J:m
19:05:15:420 (000000CC) 127.0.0.1 ->: 00 9F 1C CA E6 98 A2 2C 26 C3 10 2A 44 90 82 8A ,& *D
19:05:15:420 (000000CC) 127.0.0.1 ->: C0 C4 0D 30 C3 0D 30 C3 0A A1 24 18 A2 AC 30 C3 0 0 $ 0
19:05:15:420 (000000CC) 127.0.0.1 ->: 4C 59 36 11 62 8D 30 C3 0A B0 AC 0C 40 D3 0D 30 LY6 b 0 @ 0
19:05:15:420 (000000CC) 127.0.0.1 ->: C2 4A C0 9C 08 B1 26 98 A2 2C 26 C3 10 2A 44 90 J & ,& *D
19:05:15:420 (000000CC) 127.0.0.1 ->: 82 8A C0 C4 0D 30 C3 0D 41 64 60 A3 10 35 02 A9 0 Ad` 5
19:05:15:420 (000000CC) 127.0.0.1 ->: 2A C3 0C 34 C5 93 61 16 28 D3 0C 30 AB 0A C0 C4 * 4 a ( 0
19:05:15:420 (000000CC) 127.0.0.1 ->: 0D 30 D3 0C 24 AC 09 C0 8C 00 00 0 $
19:05:15:490 SMPPSubmitMessage: SMPP response failed

as i think this problem is only with binary contents over smpp because smpp connection works fine with text sms using the same logica simulator.
and also binary contents (the same contents i'm using for smpp test) was delivered ok using a gsm modem.
another note is that i've tried to send this ringtone from the nowsms web menu interface through the smpp connection and the same problem is still there so i don't think it has something to do with my url format sent to nowsms.

i don't know wether it's a problem with the logica smsc simulator for proccessing binary sms sneding requests or there is some issue with binary contents over smpp in nowsms.
Can u please help on this because i'm planning to start my project very soon and i've done all my devolopment using the nowsms gateway as it was the best product i found for my requirements.
thanks in advance.
Mohd
Unregistered guest
Posted on Wednesday, June 09, 2004 - 06:50 pm:   

i've also tried to change the SMSGW.INI file, by adding BinaryDCS=4 in the [SMSGW] section header but it also doesn't work.
sorry for talking alot but i'm trying to give the whole picture.
thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2783
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 04:56 pm:   

Hi Mohd,

I don't know what to tell you. I defined a connection to a Logica SMSC simulator, and cut and paste the data from your message above to submit through NowSMS, and it was accepted just fine.

I also submitted the message to a real SMPP SMSC, and I don't see anything at all unusual about the data.

I even managed to submit to the simulator so that the exact same packet as shown in your debug log was sent to the SMSC simulator (only the sequence number was different), and the simulator accepted it without any problem.

What do you see in the SMSC simulator? Normally that simulator logs data when it receives a request.

-bn
M.A.M.F
New member
Username: Mamf

Post Number: 1
Registered: 06-2004
Posted on Saturday, June 12, 2004 - 09:31 am:   

hi Bryce,
it's me Mohd, i've just registered with this name.
yes normally the simulator logs the sent request from the client (eg:enquirelink) and then it logs it's response to the cleint (eg:enquirelink_response), this is the situation when trying text message but when testing binary message the simulator doesn't log neither the client request (submit) nor it's response (submit_resp).
although NowSms logs in (SMPPDEBUG)that the submit request was sent:
19:05:15:490 SMPPSubmitMessage: SMPP response failed
but the simulator doesn't show any thing in it's screen for that submit request as it was not received at all.
i don't know wether the submited request was realy sent by nowsms and the simulator failed to recieve it or it was not sent at all.
i'm thinking on using an smpp connection to a real sms gateway or smsc for testing but most of them have ip restrictions and currently i don't have a fixed ip address.
another thing bryce, does nowsms take the advantage of multi processors in the server, in other words sould i use one proccessor with a high speed eg (3.8GHZ) or 2 proccessors each one is (2.8GHZ).

please help on this because i'm really running out of time and i must start my project very soon and i'm totallt depending on nowsms to do it.
attached are smpp debug and sms debug
application/octet-streamSMPP DEBUG
SMSDEBUG.LOG (2.7 k)
application/octet-streamsms debug
SMSDEBUG.LOG (2.7 k)
M.A.M.F
New member
Username: Mamf

Post Number: 2
Registered: 06-2004
Posted on Saturday, June 12, 2004 - 02:44 pm:   

hi Bryce
it's me again.
ok now it works using the nowsms web menu interface but for my application i still have no response from the smsc simulator.
i looked at the files in the Q folder and relized something strange that although i sent the same tone from the menu interface and from my application but the generated .req files in the Q(Queue) Folder looks diffrent and the diffrences are:

1- menu interface request generate only one .req file and it's contents were

file0.req
[SMS]
SubmittedBy=127.0.0.1
PhoneNumber=111111
Data=024A3A44C804018D1CCAEA374416AA8C44C54CC0CB0C50C50C54B50C40C50CC4CC4DD0DD164624624A84AA460A369591AA8DD4CD0CB0CD0C44C30C30C40CD4C54B54A30B50C4
UDH=06050415811581
pid=00
dcs=F5
Binary=1
note:-(Number of data characters = 140 although the tone was bigger than that)

2- My application request to nowsms generate three .req files in addition to one extra file with the extention .lck (in another attempt to send the same tone from my application this file was not there but still there was 3 .req files).
The contents of the 3 .req file were as follows:
File1.req:
[SMS]
SubmittedBy=127.0.0.1
PhoneNumber=222222
Data=024A3A44C804018D1CCAEA374416AA8C44C54CC0CB0C50C50C54B50C40C50CC4CC4DD0DD164624624A84AA460A369591AA8DD4CD0CB0CD0C44C30C30C40CD4C54B54A30B50C44C30CC4DD1646046AA37033433432937533531530C3102D42CC2D12D03102D529024C2912D42CC31133432C31037032D3143112D133430C3112D
UDH=0B0003DB0301050415811581
pid=00
dcs=F5
Binary=1
[ErrorDetail]
RetryCount=1
LastRetryTime=20040612153757

File2.req
[SMS]
SubmittedBy=127.0.0.1
PhoneNumber=222222
Data=428C2D130D2D028C2912D42D128C25023523523422432D30C31437032C3152D02D4311315331371375591892A92A11AA8DD0DD4DA56468A37437433437433133431130C30C3153343343142D42D428C2D42D0314311330375370591A11AA8DD4CD0CD4CA4DD0CD0C54CB0C50B44B34B44B44A50A44930A30B44C30DD4DD0CC0C
UDH=0B0003DB0302050415811581
pid=00
dcs=F5
Binary=1

File3.req
[SMS]
SubmittedBy=127.0.0.1
PhoneNumber=222222
Data=50DD0DB4CC0B44B44CB0C44B50B44A44C30B30A30930B54C54B54A448B08C08D489000
UDH=0B0003DB0303050415811581
pid=00
dcs=F5
Binary=1

as u can relize that in the request performed by your web menu interface it seems that the text box for entering the hex data is limited to 140 character(byte) so the posted data were truncated although my tone is larger than 1 sms but as shown in file0.req only one sms was sent.
now when it comes to my application it is posting the whole tone to nowsms and for that nowsms created 3 .req files, but then nowsms can't deliver these 3 messages to smsc over smpp although the same tone was sent from my application to nowsms over a gsm modem successfully using concatenated messages. what i mean is that the url used to submit contents from my application to nowsms is the same for gsm and smpp and the tone submitted was the same tone, but it works with nowsms for delivering to smsc using gsm modem and it doesn't work using smpp.
i don't know if nowsms has a problem with concatenated messages over smpp or the simulator does have this problem or what is the situation exactly?

3- Another note is that if u take a look at the first file (file0.req) generated for the web menu request u will find that the UDH (06050415811581) which i think is correct one is different than the ones in the other 3 .req files generated for my application request (0B0003DB0303050415811581).

4- also when u look at the smppdebug.log file u will find that all successfully sent contents were 1 sms length and failed ones were more than that.

attached are smsdebug and smppdebug files.
pleeeeeeeeease heeeeeeeeeeeeeeelp?
application/octet-streamSMSDEBUG
SMSDEBUG.LOG (17.1 k)
application/octet-streamSMPPDEBUG
SMPPDEBUG.LOG (83.8 k)
M.A.M.F
New member
Username: Mamf

Post Number: 3
Registered: 06-2004
Posted on Saturday, June 12, 2004 - 03:18 pm:   

now i'm sure that the problem is when having a contcatenated messages over smpp.
i sent a tone that requires only one sms from my application and the smsc simulator replies and the message was stored.
as i mentioned before i sent a long ringtone (3 sms) successfully before using a gsm modem. so the problem is with concatenated messages over smpp but wether it's from the logica smsc simulator or from nowsms that's something i don't but i think it's from the simulator so i hope that u can help me find another way to test my smpp connection relizing that i don't have a fixed ip address currently.
also bryce don't forget my question in the previous post about multi porcessors with nowsms.
K/regards
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2837
Registered: 10-2002
Posted on Tuesday, June 15, 2004 - 09:43 pm:   

Hi Mamf,

What version of NowSMS are you running? (If it is not v5.50, please download that version from the web site here.)

I just don't see any problems like this when submitting messages to the Logica simulator.

That's why I'm curious what you see on the screen of the SMSC simulator when you do this. Does it indicate that a client request was received ... what does it show?

And from your logs, I do seem some single part SMS messages that also fail. It almost seems to be related to message size (although you are not at the limits). One message of 130 bytes had this problem ... and 140 bytes is the binary limit.

Regarding the other questions ...

1.) Multiple processors - NowSMS is multithreaded, so different processors will end up being utilised for different tasks (for example, if you are processing a large volume of inbound messages, or managing multiple SMSC connections, or processing large volumes of client requests, multiple processors would be an advantage).

2.) The message that was truncated when submitting via the web interface. Confirm the version number of NowSMS ... and also I'd like to know what the exact data was that you put into the web form. (The reason I ask about the version number is because old versions did have a size limit defined in the HTML for the web form, so the web form would truncate the request.)

3.) The UDH gets changed if a message needs to be sent out as multipart. That is normal.
M.A.M.F
New member
Username: Mamf

Post Number: 8
Registered: 06-2004
Posted on Thursday, June 17, 2004 - 07:24 pm:   

hi bryce,
good to see u in action again.
ok i will try to summrize my notes above.
first
i'm using nowsms ver5.50a(b20040609)
second
im building a ringtone service and i'm using logica smsc simulator to test smpp connection, but the simulator doesn't show any thing on it's screen (neither client request is recieved and surely nor server response is there).
after tracing this roblem my conclusion was.
1- if my tone is more than 240 hex characters (120 bytes) then the sending operation failed and he smsc simulator doesn't show that it recieved the request on it's screen although smpp debug shows that the request is sent.
2- if my tone is less than or equal 240 hex characters (120 bytes) then sending succeeded and the simulator shows client request on it's screen(submit:-(pdu: 179 4 0 728) (addr: 5 0 xxx) (addr: 0 1 xxx) xxxxCONTENTSxxxx (opt:-))
then it shows (putting message into message store)
and finally it shows the server response (submit_res(pdu: 0 80000004 0 728) smsc 2026 (opt:-))

also i've attached a part of my smpp debug file that contains one succeeded message and a failed one. i put my tone info between brackets so u can count number of bytes in each case.
application/octet-streamPART OF MY SMPPDEBUG FILE
SMPPDEBUG.LOG (3.6 k)


ALSO HERE IS MY FULL SMPPDEBUG FILE
application/octet-streamFULL SMPPDEBUG FILE
SMPPDEBUG.LOG (172.8 k)


i'm sure that my problem is about content's length and actually the length that i specified (more than 120 byte or 240 hex character).
but as i mentioned i don't know wether it's the simulator problem or it's from nowsms (mostly i think it isn't from nowsms as the smpp sending request is sent as appears in the smppdebug file, but the simulator doesn't recieve this request and it doesn't show any thing on it's screen).

can any body help me to find another way to test my smpp connection (most gateways like clickatel requires a fixed ip address which is currently not available for me)
Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2867
Registered: 10-2002
Posted on Thursday, June 17, 2004 - 08:41 pm:   

Mamf,

This has me completely puzzled.

When the header gets added on to your tone, the SMS message that is accepted is 127 bytes, and the one that fails is 128 bytes.

I have the Logica simulator installed here, and I see no such problem. I've sent the exact same messages that you've tried ... but they worked for me.

I was trying with an install of the simulator on another PC on my network. Since you are using a loopback on 127.0.0.1, I decided to try that as well. But again, my install of the simulator has no problem receiving larger messages.

What happens if you try text messages? Do you run into similar problems with longer text messages?