There is no foolproof way to detect whether the SMSC address is missing. If you know what type of PDU you are dealing with it is easier because decoding the PDU will probably cause a decoding error or wrong PDU type and then you can try it with the 00 attached.
If you don't know the PDU type you might end up with a properly decoded PDU with "unorthodox" field values so there is no way to be sure. Henk On Dec 8, 10:36 am, Alex Anderson <[email protected]> wrote: > Hi Henk, > > Thanks for the info. Is there any way to automatically tell whether > or not the SMSC is prefixing SMSC number to incoming (MT) messages, or > do you just need to try both methods? > > Alex > > On 8 December 2011 12:29, hjh <[email protected]> wrote: > > > > > > > > > The 00 means an empty, zero length SMSC address. It is a placeholder > > for where the SMSC address is supposed to be. > > > The SMSC address is not a part of the PDU definition, it is attached > > to outgoing SMS messages to specify where the SMS should be sent to. > > Most SMSC's also attach the SMSC address to MO messages and status > > reports but this is not strictly necessary according to the GSM > > standards. > > > Henk > > > On Dec 8, 9:38 am, Alex Anderson > > <[email protected]> wrote: > >> Certainly is, but adding 00 to a good PDU will break it :( Any > >> suggestions how to tell when the additional 00 is required? > > >> On 8 December 2011 10:40, [email protected] <[email protected]> > >> wrote: > > >> > insert '00' to head > >> > '06000A817020957711112160329051E11121603290512100',it is change > >> > 0006000A817020957711112160329051E11121603290512100 > >> > pdu parse is good. > > >> > original_recipient:0702597711 > >> > original_ref_no:0 > >> > original_receive_date:1323202155298 > >> > status:DELIVERED > >> > phone:0702597711,text:00 - Succesful Delivery. > > >> > On Dec 7, 8:55 pm, Alex <[email protected]> wrote: > >> >> Is anyone able to decode this PDU: > > >> >> 06000A817020957711112160329051E11121603290512100 > > >> >> It's an incoming message, but I can't make sense of the content. > > >> >> Alex > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "SMSLib Discussion 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 Discussion 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 Discussion 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.
