VinodBokare
VinodBokare

Reputation: 41

How to process the submit_sm_resp over smpp protocol

I have implemented Sending message over SMPP, everything is fine but as per the SMPP protocol if message are sent to Invalid_destination_address it will reply with org.smpp.pdu.SubmitSM object which contains following body

(submit_resp: (pdu: 16 80000004 b 880761) 0 (opt: ) ) (submit: (pdu: 117 4 0 880761) (addr: 5 0 SEND) (addr: 0 0 9712688842) (sm: msg: Hi, This is the test sms. Please Ignore.) (opt: ) (extraopt: (oct: (tlv: 5221) 144a58e477301bf1) ) )

how i can extract "b" the mobile number 9712688842

Upvotes: 3

Views: 1020

Answers (1)

SMPP_lover
SMPP_lover

Reputation: 11

The B number is not in the SUBMIT_SM_RESP, But this one has a transaction ID, So you could retrieve the B number by retrieing the SUBMIT_SM, the Bnumber will be the destination address.

Upvotes: 1

Related Questions