Hi Jeff,

Thanks for your answer.

It works if I add an extra line to insert an information element, so
the code looks:

pdu.addInformationElement(InformationElementFactory.generatePortInfo(2,
1));
pdu.setTpUdhi(PduUtils.TP_UDHI_WITH_UDH);

I don't need dst and src ports but if I don't add this line I get the
following error while an outbound msg request comes in:

Exception in thread "Thread-13" java.lang.NullPointerException
        at org.ajwcc.pduUtils.gsm3040.PduUtils.bytesToPdu(PduUtils.java:1024)
        at org.ajwcc.pduUtils.gsm3040.Pdu.toString(Pdu.java:599)
        at org.smslib.modem.ModemGateway.sendMessagePDU(ModemGateway.java:
471)
        at org.smslib.modem.ModemGateway.sendMessage(ModemGateway.java:249)
        at org.smslib.Service.sendMessage(Service.java:654)
        at
com.palomanetworks.nidos.ReceiveOutboundMessage.sendOutboundMessage(ReceiveOutboundMessage.java:
59)
        at
com.palomanetworks.nidos.ReceiveOutboundMessage.onMessage(ReceiveOutboundMessage.java:
40)
        at com.palomanetworks.ext.Listener.run(Unknown Source)

How could I avoid using "pdu.addInformationElement(..."?

Thank you very much, Rgds,

Bastien

On May 13, 11:31 am, Jeff <[email protected]> wrote:
> You can override the following method in OutboundMessage.java to be
> something like this
>
> protected void initPduObject(SmsSubmitPdu pdu, String smscNumber)
> {
>      super.initPduObject(pdu, smscNumber)
>      pdu.setTpUdhi(PduUtils.TP_UDHI_WITH_UDH);
>
> }
>
> this should force the generated PDU strings to have UDHI enabled
>
> On May 12, 11:40 pm, Bastien <[email protected]> wrote:
>
>
>
> > Hi All,
>
> > For outbound binary message using the SIM MesssageClass we would like
> > to set TP-UDHI to true. We tried to modify the OutboundMessage class
> > to implement this feature but unfortunately it does not work.
>
> > Any help on where to start would be very appreciated! Thanks a lot.
>
> > Congratulations to all the contributors for this fantastic library.
>
> > Bastien
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "SMSLib User Group" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/smslib?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "SMSLib User Group" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/smslib?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to