ok... i found a way to split the pdu on different parts by calling the
method getPdus
List<String> pdus = msg.getPdus("+12345", 123 );
for( String pdu : pdus ){
System.out.println( pdu );
}
for each pdu i call the service of provider but unfortunately the
message is not delivered.
this is the total pdu:
01060403AE81EA02056A0045C60C036D2E6D6F62736F6369616C2E6575000AC3072008121110134410C3072008121110134401036C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C000101
those are the parts:
1st part:
089103966356163251510C9103966356163200F4FF8C0B05040B8423F000037B020101060403AE81EA02056A0045C60C036D2E6D6F62736F6369616C2E6575000AC3072008121110134410C3072008121110134401036C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C61
2st part:
089103966356163251000C9103966356163200F4FF680B05040B8423F000037B02026C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C616C000101
am i doing somrthing wrong or just the provider doesnt support this
functionality ?
please suggest.
thank you very much.
manos
On 11 Δεκ, 09:42, moschous <[EMAIL PROTECTED]> wrote:
> Hi Jeff,
>
> i am not hijacker :-) , i extended the thread because it was something
> related.
> Anyway, thanks you very much for you information.
>
> The OutboundWapSIMessage is the class i used but i cant find any way
> to split the message on different parts. The message i need to send is
> a simple WAP SI message (including a url) and ~250 characters as a
> text (greek letters).
>
> how could i split the message ? the function getPduUserDataHeader
> returns back the complete pdu but unfortunately it isn't delivered by
> the provider.
> (i guess i need to send the different parts separately)
>
> thank you for your help.
>
> manos
>
> On 11 Δεκ, 03:06, Jeff <[EMAIL PROTECTED]> wrote:
>
>
>
> > First things first. Don't hijack threads. Start a new post.
>
> > As far as your question goes, the class you are after is the
> > OutboundWapSIMessage.
>
> > set all the parameters needed and call getPduUserDataHeader() to get
> > the UDH.
> > Something similar is done in the ClickatellHTTPGateway.java
>
> > As far as sending multiple parts I'm not sure if your provider is
> > responsible for the splitting or not. You cant just send the data
> > from each pdu to the same user since the phone will have to know its a
> > concat message or else it will treat each send as a separate message.
>
> > On Dec 11, 1:51 am, moschous <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > i need to use the smslib, just to generate the pduUserData and
> > > pduUserDataHeader, and then use those data to call another http API
> > > provided by a partner of ours in order to deliver the SI message.
>
> > > the http interface which is called after the pdu generation is like
> > > this (below):
>
> > > http://some.service.com/mtbin.php?oa=xxxxx&da=+306xxxxxxxx&udh="+msg.getPduUserDataHeader()+"&txt="+msg.getPduUserData()
>
> > > The problem i am facing has to do with the lenght of the text included
> > > on the SI message. The maximum i can send is 78 characters for latin
> > > letters and 39 characters for greek letters.
>
> > > what should i do in order to be able to deliver bigger messages ?
>
> > > please give some tips, because i am not so much familiar on this
> > > library.
>
> > > Thank you very much!
>
> > > manos
>
> > > On 10 Δεκ, 18:10, Scorpion <[EMAIL PROTECTED]> wrote:
>
> > > > HI
> > > > Thanks for your timely and quick reply.- Απόκρυψη κειμένου σε παράθεση -
>
> > - Εμφάνιση κειμένου σε παράθεση -- Απόκρυψη κειμένου σε παράθεση -
>
> - Εμφάνιση κειμένου σε παράθεση -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---