Parse Error when receiving VCARD

.NET library for SMPP protocol
Locked
m4711
Posts: 3
Joined: Thu Jul 28, 2016 3:44 pm

Parse Error when receiving VCARD

Post by m4711 » Thu Jul 28, 2016 3:47 pm

Hi,

we receive a submit_sm which seems to contain a VCARD.
I cannot see an issue with the submit_sm itself, but the SMPP Server brings us an error.
I would appreciate if someone could help us.

When I parse the data manually with Inetlab.SMPP.SMS.ForSubmit().Data(array).....Create(client); I don't get any error...

Log:
2016-07-28 14:29:31.7082|DEBUG|SMPP_SmppSocket|Socket #322162452: Received data: [data_raw:00-00-00-78-00-00-
00-04-00-00-00-00-00-00-00-02-00-01-01-34-39-36-37-30-33-33-30-37-35-35-30-36-00-01-01-34-39-31-37-31-36-34-35
-33-36-33-36-00-40-00-00-00-31-36-30-37-32-39-30-37-33-30-34-39-30-30-30-2B-00-11-00-00-00-2E-50-14-4E-03-00-4
7-00-09-00-00-42-45-47-49-4E-3A-45-4C-4C-3A-2B-34-39-31-37-35-31-38-37-33-38-35-38-0D-0A-45-4E-44-3A-56-43-41-
52-44-0D-0A] [data_text:^@^@^@x^@^@^@^D^@^@^@^@^@^@^@^B^@^A^A4967033075506^@^A^A491716453636^@@^@^@^@160729073
049000+^@^Q^@^@^@.P^TN^C^@G^@ ^@^@BEGIN:ELL:+491751873858
END:VCARD
]
2016-07-28 14:29:31.7082|ERROR|SMPP_SmppServerClient|Parsing SubmitSm failed.
2016-07-28 14:29:31.7082|DEBUG|SMPP_SmppServerClient|PDU Received: SubmitSm, Length: 120, Status: ESME_ROK, Se
quence: 2
2016-07-28 14:29:31.7082|ERROR|SMPP_SmppServerClient|Unknown data in stream. Length:120
2016-07-28 14:29:31.7082|ERROR|SMPP_SmppServerClient|Error Packet HEX: 000000780000000400000000000000020001013439363730333330373535303600010134393137313634353336333600400000003136303732393037333034393030302b00110000002e50144e03004700090000424547494e3a454c4c3a2b3439313735313837333835380d0a454e443a56434152440d0a

Regards,
m4711
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Parse Error when receiving VCARD

Post by alt » Thu Jul 28, 2016 6:45 pm

You have received wrong User Data in this submit_sm PDU. The length of the UD is defined as 46 (0x2E) bytes.
UDH indicator has been set for this PDU. It means that User Data contains a header (50-14-4E-03-00-47-00-09-00-00). But the length of the User Data Header is set to 80 (0x50).
It is more then the length of the entire User Data.
The content of the VCARD looks also strange. "BEGIN:ELL" instead of "BEGIN:VCARD"
m4711
Posts: 3
Joined: Thu Jul 28, 2016 3:44 pm

Re: Parse Error when receiving VCARD

Post by m4711 » Fri Jul 29, 2016 10:04 am

Hey alt,

thanks for your reply (also to my email).

I could clarify this with my customer and he agrees that it is a strange content.
But he mentioned that the submit_sm PDU itself was formatted correctly (even though the contents of the short_message field was not).
So at worst they expect that our server respond with submit_sm_resp and a non-zero command_status...

The problem is, that our SMPP server does not respond at all; so they get a timeout on their side and close the connection, which is really bad.

Can you please advise what we can do/change, so that your SMPP server component will respond with a non-zero command_status?

Regards,
m4711
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Parse Error when receiving VCARD

Post by alt » Tue Aug 02, 2016 5:25 pm

I have fixed this bug in the version 1.1.22.7. When library unable to parse user data in the PDU, it will send back a response with Status ESME_RSYSERR.
m4711
Posts: 3
Joined: Thu Jul 28, 2016 3:44 pm

Re: Parse Error when receiving VCARD

Post by m4711 » Wed Aug 17, 2016 8:31 pm

Thank you, alt!
Locked