WNmrwu / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Issue in sending TLV #152

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

I am trying to send BILLING_IDENTIFICATION TLV with smpp message but still SMSC 
response reports an error of missing TLV.

The value of the TLV is "52|11".

short billingIdentificationCode = 0x060B;
I am creating the TLV as
OptionalParameter billingIdentification = new 
OptionalParameter.OctetString(billingIdentificationCode,"52|11");

and submitting as 

submitShortMessage(null, TypeOfNumber.NATIONAL, NumberingPlanIndicator.UNKNOWN, 
shortCode, TypeOfNumber.NATIONAL, NumberingPlanIndicator.ISDN,targetMSISDN, 
esmClass, (byte)0, (byte)0, "", null,new 
RegisteredDelivery(SMSCDeliveryReceipt.DEFAULT), (byte)0,dataCoding,(byte) 0, 
message.getBytes(), billingIdentification);

It throws an exception as 

org.jsmpp.extra.NegativeResponseException: Negative response 000000c3 found

According to operator's status code, it says that the TLV is missing. Can 
anyone plz help me out what I am missing here.

Thanks

Original issue reported on code.google.com by shaya...@gmail.com on 26 Sep 2013 at 7:12