Smpp v3.4 client
Moderator: alt
-
TANK
- Posts: 4
- Joined: Tue Apr 06, 2010 12:48 pm
Post
by TANK » Fri Apr 30, 2010 9:56 am
Good day
When you send a SMS u get a long number called the MessageID (Message id.: 127261808164121231), When your status update for that sms comes in that same number is under that packet (SMSC identifier: 127261808164121231). I need to access that number so I can tie up to the original SMS to know if it was delivered...
Please Help asap....
Regards,
-
alt
- Site Admin
- Posts: 985
- Joined: Tue Apr 25, 2006 9:45 am
Post
by alt » Mon May 03, 2010 4:02 pm
Could you post here bytes log of DeliverSm?
-
TANK
- Posts: 4
- Joined: Tue Apr 06, 2010 12:48 pm
Post
by TANK » Tue May 04, 2010 1:12 pm
Is this what u require?
0000 00 22 64 52 19 05 00 0e 0c a7 b0 1f 08 00 45 08 ."dR..........E.
0010 00 a7 ec ea 40 00 33 06 84 93 0a 45 60 fe 0a 45 ....@.3....E`..E
0020 60 43 f9 3d c6 0d 83 e9 82 8a e5 48 eb 48 50 18 `C.=.......H.HP.
0030 c2 10 b3 77 00 00 00 00 00 7f 00 00 00 05 00 00 ...w............
0040 00 00 00 00 0c 4d 00 01 01 32 37 37 39 35 32 38 .....M...2779528
0050 39 30 32 34 00 01 01 38 37 37 35 31 35 38 37 35 9024...877515875
0060 00 04 00 00 00 00 00 00 00 00 2e 79 6f 75 72 20 ...........your
0070 6d 65 73 73 61 67 65 20 68 61 73 20 62 65 65 6e message has been
0080 20 64 65 6c 69 76 65 72 65 64 20 74 6f 20 32 37 delivered to 27
0090 37 39 35 32 38 39 30 32 34 00 1e 00 13 31 32 37 795289024....127
00a0 32 36 31 38 30 38 31 36 34 31 32 31 32 33 31 00 261808164121231.
00b0 04 27 00 01 02 .'...
-
alt
- Site Admin
- Posts: 985
- Joined: Tue Apr 25, 2006 9:45 am
Post
by alt » Wed May 05, 2010 8:30 am
Please try this code:
Code: Select all
TLV messageState = dp.Optional[OptionalTags.MessageState];
MessageState state = MessageState.None;
if (messageState != null)
{
state = (MessageState)messageState.Value[0];
}
TLV receiptedMessageId = dp.Optional[OptionalTags.ReceiptedMessageId];
string messageId = null;
if (receiptedMessageId != null)
{
messageId = SmppClient.GetMessageText(receiptedMessageId.Value, DataCodings.ASCII);
}
-
TANK
- Posts: 4
- Joined: Tue Apr 06, 2010 12:48 pm
Post
by TANK » Wed May 05, 2010 10:23 am
Awesome....
That worked very good, Thanx for the help.
Regards,
-
DobryGron
- Posts: 1
- Joined: Mon Nov 08, 2010 2:40 pm
- Location: Russia
-
Contact:
Post
by DobryGron » Thu Nov 11, 2010 2:33 pm
Another overload:
- on_message for radio channels, so that some script could response for the radio messages.
However, I am still thinking how it can be dealt with...
[url=http://www.med-msk.ru/]акне, пятна после прыщей как избавиться[/url]