Re: multiple sms using EMS standard
Dziugas Baltrunas <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello again,
thank you for your answer, but how could I implement this in my
application? formaly, there should be a number in UDH, which shows, what
part of SMS it is. so, for example, if my melody exceeds 128 bytes and is
140 bytes, then after sending first 128 bytes how could I send other
12? my application will format correct UDH, but will kannel
know, that it should send these TWO sms one after other?
and one more thing to know - when sending EMS with UPI (User Prompt
Indicator), there is no text field and everything goes into UDH, as i
wrote before.
regards,
Dziugas Baltrunas
On Mon, 9 Dec 2002, Andreas Fink wrote:
> sure kannel does automatically split oversize SMS. There's nothing you
> have to do about it.
> however for EMS its tricky because the individual parts have local
> references to the local part so you are much better off doing it
> yourself in your application.
>
>
> On Montag, Dezember 9, 2002, at 10:40 Uhr, Dziugas Baltrunas wrote:
>
> > Hello,
> >
> > i would like to ask, is it possible to send two or free sms within a
> > sms-service group.
> >
> > currently, i'm interested in melody sending. the problem is that using
> > nokia binary format it is possible to encode 130 bytes of data and
> > usually melody fits in such size. but whenm using EMS, there is a
> > limitation of 128 bytes in order to encode and to send melody in
> > iMelody
> > format.
> >
> > here is how UDH should be formed:
> >
> > $melody = "*5g2.*5e3*5d2*4g3*4g3*4a4*4a3*4a3.*4g3*4b2r2."; // just an
> > example
> >
> > for ($i=0; $i < strlen($melody); $i++) {
> > $mel .= sprintf("%02X", ord($melody[$i]));
> > }
> >
> >
> > $len[1] = sprintf("%02X", (strlen($melody)) + 6);
> > $len[2] = sprintf("%02X", (strlen($melody)) + 1);
> >
> > $udh = $len[1] . '130101' . '0C' . $len[2] . '00' . $mel; // it shows
> > that we will use UPI and send iMelody
> >
> > but EMS allows to send multiple SMS using ceratin directives with UDH.
> > i
> > would like to ask, is it possible to do such things with kannel. if
> > not, i
> > think i would be interested to develope such thing.
> >
> > regards,
> > Dziugas Baltrunas
> >
> >
> >
>
> Andreas Fink
> Fink Consulting GmbH
>
> ---------------------------------------------------------------
> Tel: +41-61-6666332 Fax: +41-61-6666331 Mobile: +41-79-2457333
> Address: Clarastrasse 3, 4058 Basel, Switzerland
> E-Mail: [email protected]
> Homepage: http://www.finkconsulting.com
> ---------------------------------------------------------------
>
>