I got Error when send sms over the Default 140 character...

Smpp v3.4 client

Moderator: alt

Locked
chaoraksa
Posts: 55
Joined: Wed Sep 17, 2008 7:06 am

I got Error when send sms over the Default 140 character...

Post by chaoraksa » Sat Oct 04, 2008 3:27 am

Hi!
I got an error message when i send Text more than 140 character ( The Default ). How to Fix it. I want to send 160 Character.

Thanks in advanced.
chaoraksa
Posts: 55
Joined: Wed Sep 17, 2008 7:06 am

Bad thing happen...

Post by chaoraksa » Tue Oct 07, 2008 10:06 am

hi!
The bad thing i got is all sms Queue in my SMSC and get some Unreadable text. Please help me
:roll:
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Tue Oct 07, 2008 2:36 pm

Hi


I use this to send:

Dim sp As New SubmitSm(m_ServiceType, m_SourceAddrTon, m_SourceAddrNpi, SourceMobileNum, m_DestAddrTon, m_DestAddrNpi, DestMobileNum)

sp.DataCoding = m_DataCoding ' = 0 (the default encoding)

sp.ShortMessageBytes = SmppClient.GetMessageBytes(TextMessageBody, DirectCast(sp.DataCoding, Byte))

How are you constructing your message?

Regards
Nick
ProcessFlows UK Ltd
http://www.processflows.co.uk/
chaoraksa
Posts: 55
Joined: Wed Sep 17, 2008 7:06 am

I got this...

Post by chaoraksa » Wed Oct 08, 2008 2:06 am

Thank for your response.
In Log of the InetLab sample
Hex:
000000b3000000040000000009140f18000000313233000101313233004000000000000000008c0500035a04036c69766572656420616e79776865726520617320616c6c2074686520726573706f6e73657320617265206f6e6c79206d6164652d7570206279207468652053696d756c61746f722e205468652053696d756c61746f7220616c736f20737570706f727473206d756c7469706c6520636f6e6e656374696f6e3b207468652061757468656e7469

Text:
³ 123123@ŒZlivered anywhere as all the responses are only made-up by the Simulator. The Simulator also supports multiple connection; the authenti

In Logica SMSC Simulator

Text:

♣ ♥Z♦♥livered anywhere as all the responses are on
ly made-up by the Simulator. The Simulator also supports multiple connection; the authenti
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Wed Oct 08, 2008 6:45 am

this packet has User Data Header in the short message field
♣ ♥Z♦♥ means
05 UDH length
00 IEI Concatenated short messages, 8-bit reference number
03 IEI length
5a reference number
04 Maximum number of short messages in the concatenated short message
03 Sequence number of the current short message
chaoraksa
Posts: 55
Joined: Wed Sep 17, 2008 7:06 am

why i got an unreadable message....

Post by chaoraksa » Thu Oct 09, 2008 1:05 am

Thanks!!!
but i got and unreadable message from SMSC and see MMS at SMSC that Queue at my SMSC. What was that??? :wink:
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Thu Oct 09, 2008 3:47 pm

Please show us your code.
chaoraksa
Posts: 55
Joined: Wed Sep 17, 2008 7:06 am

I use your code....

Post by chaoraksa » Fri Oct 10, 2008 1:13 am

public void sendSMS(string to, string body)
{
Body = body;
if (body.Length > 160)
{
body = Body.Substring(0, 150);
if (body.LastIndexOf(' ') > 0)
{
body = body.Substring(0, body.LastIndexOf(' '));
body = body + " Con...";
client.SubmitText(SubmitMode.ShortMessage, byte.Parse("0"), byte.Parse("1"), "120",
byte.Parse("0"), byte.Parse("1"), to, DataCodings.Default, body);
body = Body.Substring(body.Length - 6, 150);
client.SubmitText(SubmitMode.ShortMessage, byte.Parse("0"), byte.Parse("1"), "120",
byte.Parse("0"), byte.Parse("1"), to, DataCodings.Default, body);
}
}
else
{
client.SubmitText(SubmitMode.ShortMessage, byte.Parse("0"), byte.Parse("1"), "120",
byte.Parse("0"), byte.Parse("1"), to, DataCodings.Default, body);
}
}
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Fri Oct 10, 2008 5:45 am

Could you try last version with code

client.SubmitText(SubmitMode.ShortMessage, byte.Parse("0"), byte.Parse("1"), "120",
byte.Parse("0"), byte.Parse("1"), to, DataCodings.Default, body);

or

client.SubmitText(SubmitMode.Payload, byte.Parse("0"), byte.Parse("1"), "120",
byte.Parse("0"), byte.Parse("1"), to, DataCodings.Default, body);

Could you find out maximum length you can send without artefacts?
Locked