Sending SMS message to specific port | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through October 19, 2007 ⬆ |
◄ ► |
Author | Message | |||
daniel New member Username: Daniel01 Post Number: 1 Registered: 04-2007 |
I have been trying to send an SMS message to a spcific port number using the NowSMS gateway. The message is a binary message and I have set the UDH to include the port number. However, both the UDH and the content of the message is being delivered to the inbox on the phone. The SMSc vendor has looked at the packets and told me that the esm_class should be set to 0x40. This indicates that there is a user data header (UDH) so the smsc knows where the actial message begins. How can I set the esm_class when sending binary messages with the NowSMS gateway? Which bits are the esm_class? Below is a decode of the message using wireshark: Short Message Peer to Peer, Command: Submit_sm, Seq: 347, Len: 54 Length : 54 Operation : Submit_sm (0x00000004) Sequence #: 347 Service type: (Default) Type of number (originator): Unknown (0x00) Numbering plan indicator (originator): Unknown (0x00) Type of number (recipient): Unknown (0x00) Numbering plan indicator (recipient): ISDN (E163/E164) (0x01) Recipient address: XXXYYYZZZZ .... ..00 = Messaging mode: Default SMSC mode (0x00) ..00 00.. = Message type : Default message type (0x00) 01.. .... = GSM features : UDHI indicator (0x01) Protocol id.: 0x00 Priority level: GSM: None ANSI-136: Bulk IS-95: Normal (0x00) Scheduled delivery time: Immediate delivery Validity period: SMSC default validity period .... ..00 = Delivery receipt : No SMSC delivery receipt requested (0x00) .... 00.. = Message type : No recipient SME acknowledgement requested (0x00) ...0 .... = Intermediate notif: No intermediate notification requested (0x00) .... ...0 = Replace : Don't replace (0x00) Data coding: 0x03 Predefined message: 0 Message length: 11 Message GSM Short Message Service User Data UDH Length: 6 IE Id: SMS - Application port addressing scheme, 16 bit address (0x05): source port 7500, destination port 7500 Destination port: 7500 Source port: 7500 Short Message body |