Re: [PATCH] Documentation changes regarding coding/dcs (was: Message Mode)
Dziugas Baltrunas <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I wish I knew Portuguese ;) However, maybe there is a chance to catch the original author of the code? On 11/8/05, Alexander Malysh <[email protected]> wrote: > Hi, > > +1 for patch if you translate: > > "A opção <i>Texto</i> é o normal, onde o texto é convertido para o > alfabeto GSM e cada mensagem leva no máximo 160 caracteres.<br>No caso > de UNICODE, a mensagem vai até 70 caracteres mas o texto não é > convertido e suporta todo o alfabeto UNICODE, desde que o telefone > também suporte", > > into english ;) > > Thanks, > Alex > > Dziugas Baltrunas wrote: > > Hi, > > > > do you use alt-dcs sendsms parameter, which might also affect how the > > message is interpreted (in your case [flags:-1:1:-1:-1:19] indicates, > > that coding is 1 = binary). > > > > Btw, @Stipe and others: we should finally fix the userguide and > > scripts in contrib/ related all the changes relating to alt-dcs and > > coding parameters in order not to confuse users. Attached patch should > > do this. > > > > On 11/8/05, Douglas Jurcovichi <[email protected]> wrote: > > > >> > >> > >> > >>Hi list, > >> > >> > >> > >> > >> > >>I am using the kannel today and the bearerboxaccess.log show the messages > >>like this: > >> > >> > >> > >>2005-11-07 23:59:05 Sent SMS [SMSC:BRT] [SVC:brt] [ACT:] [from:6000] > >>[to:556184720783] [flags:0:1:0:0:0] [msg:124:Teste [udh:0:] > >> > >> > >> > >>It is sending the messages in noemas mode. > >> > >> > >> > >>So, I installed the newer kannel version and it started to show the messages > >>like this: > >> > >> > >> > >>2005-11-08 15:10:18 Sent SMS [SMSC:BRT] [SVC:brt] [ACT:] [BINF:] > >>[from:90007] [to:554284017946] [flags:-1:1:-1:-1:19] [msg:7:54657374652038] > >>[udh:0:] > >> > >> > >> > >>As well, how can I take out the binary mode sending the message? > >> > >> > >> > >>I tried to change the coding value in thr URL that I'm sending the message > >>form 1 to 0, 2 and did not make effect. > >> > >> > >> > >> > >> > >> > >> > >>Thank's > >> > >> > >> > >> > >> > >>Douglas > >> > >> > > > > > > > > -- > > Dziugas > > > > > > ------------------------------------------------------------------------ > > > > Index: contrib/web/form.php > > =================================================================== > > RCS file: /home/cvs/gateway/contrib/web/form.php,v > > retrieving revision 1.2 > > diff -u -r1.2 form.php > > --- contrib/web/form.php 19 Sep 2005 22:07:33 -0000 1.2 > > +++ contrib/web/form.php 8 Nov 2005 20:33:43 -0000 > > @@ -43,11 +43,11 @@ > > "aaa", > > ), > > "coding" => array ( "Data Coding", > > - '<select name="coding"> <option value="0">Undefined</option> <option value="1">Texto</option> <option value="3">UNICODE</option> </select>', > > + '<select name="coding"> <option value="0">Undefined</option> <option value="0">Texto</option> <option value="2">UNICODE</option> </select>', > > "A opção <i>Texto</i> é o normal, onde o texto é convertido para o alfabeto GSM e cada mensagem leva no máximo 160 caracteres.<br>No caso de UNICODE, a mensagem vai até 70 caracteres mas o texto não é convertido e suporta todo o alfabeto UNICODE, desde que o telefone também suporte", > > ), > > "mwi" => array ( "Message Waiting Indicator", > > - '<select name="mwi"> <option value="1">Voice Mail, active</option> <option value="2">Fax, active</option> <option value="3">E-Mail, active</option> <option value="4">Other, active</option> <option value="5">Voice Mail, inactive</option> <option value="6">Fax, inactive</option> <option value="7">E-Mail, inactive</option> <option value="8">Other, inactive</option> </select>', > > + '<select name="mwi"> <option value="0">Voice Mail, active</option> <option value="1">Fax, active</option> <option value="2">E-Mail, active</option> <option value="3">Other, active</option> <option value="4">Voice Mail, inactive</option> <option value="5">Fax, inactive</option> <option value="6">E-Mail, inactive</option> <option value="7">Other, inactive</option> </select>', > > "aaa", > > ), > > "mwi_messages" => array ( "Messages", > > Index: contrib/web/sendsms.php > > =================================================================== > > RCS file: /home/cvs/gateway/contrib/web/sendsms.php,v > > retrieving revision 1.2 > > diff -u -r1.2 sendsms.php > > --- contrib/web/sendsms.php 22 Jul 2003 00:56:52 -0000 1.2 > > +++ contrib/web/sendsms.php 8 Nov 2005 20:33:43 -0000 > > @@ -290,7 +290,7 @@ > > } > > > > else if ( $mode == "SIEMENS") { > > - $fields['coding'] = "2"; > > + $fields['coding'] = "1"; > > > > #print_r($mmc_file_raw);exit; > > #move_uploaded_file($mmc_file_raw, "/tmp/siemens.tmp"); > > Index: doc/userguide/userguide.xml > > =================================================================== > > RCS file: /home/cvs/gateway/doc/userguide/userguide.xml,v > > retrieving revision 1.304 > > diff -u -r1.304 userguide.xml > > --- doc/userguide/userguide.xml 19 Sep 2005 22:07:33 -0000 1.304 > > +++ doc/userguide/userguide.xml 8 Nov 2005 20:33:46 -0000 > > @@ -5817,8 +5817,7 @@ > > </entry></row> > > > > <row><entry><literal>%c</literal></entry><entry> > > -message coding: 0 (default, 7 bits), 1 (7 bits), > > -2 (8 bits) or 3 (Unicode) > > +message coding: 0 (default, 7 bits), 1 (8 bits) or 2 (Unicode) > > </entry></row> > > > > <row><entry><literal>%m</literal></entry><entry> > > @@ -5834,8 +5833,8 @@ > > > > <row><entry><literal>%C</literal></entry><entry> > > message charset: for a "normal" message, it will > > -be "GSM" (coding=1), "binary" (coding=2) or > > -"UTF-16BE" (coding=3). If the message was successfully > > +be "GSM" (coding=0), "binary" (coding=1) or > > +"UTF-16BE" (coding=2). If the message was successfully > > recoded from Unicode, it will be "ISO-8859-1" > > </entry></row> > > > > @@ -5994,12 +5993,12 @@ > > <entry><literal>X-Kannel-Compress</literal></entry></row> > > > > <row><entry><literal>coding</literal></entry> > > - <entry><literal>X-Kannel-Coding</literal>. If unset, defaults to 1 > > + <entry><literal>X-Kannel-Coding</literal>. If unset, defaults to 0 > > (7 bits) if <literal>Content-Type</literal> is <literal>text/plain > > </literal>, <literal>text/html</literal> or > > <literal>text/vnd.wap.wml</literal>. On > > <literal>application/octet-stream</literal>, defaults to > > - 8 bits (2). All other <literal>Content-Type</literal> values > > + 8 bits (1). All other <literal>Content-Type</literal> values > > are rejected.</entry></row> > > > > <row><entry><literal>validity</literal></entry> > > @@ -6094,7 +6093,7 @@ > > > > <row><entry><literal>%c (coding)</literal></entry> > > <entry><literal>X-Kannel-Coding</literal></entry> > > - <entry>1=7 Bits, 2=8 Bits, 3=UCS-2</entry></row> > > + <entry>0=7 Bits, 1=8 Bits, 2=UCS-2</entry></row> > > > > <row><entry><literal>- (compress)</literal></entry> > > <entry><literal>X-Kannel-Compress</literal></entry> > > @@ -6990,14 +6989,14 @@ > > <entry valign="bottom"> > > Optional. Sets the PID value. (See ETSI Documentation). > > Ex: SIM Toolkit messages would use something like > > - <literal>&pid=127&coding=2&alt-dcs=1&mclass=3</literal> > > + <literal>&pid=127&coding=1&alt-dcs=1&mclass=3</literal> > > </entry></row> > > > > <row><entry><literal>alt-dcs</literal></entry> > > <entry><literal>number</literal></entry> > > <entry valign="bottom"> > > Optional. If unset, Kannel uses the alt-dcs defined on smsc configuration, > > - or 0X per default. If equals to 1, uses FX. If equals to 2, force 0X. > > + or 0X per default. If equals to 1, uses FX. If equals to 0, force 0X. > > </entry></row> > > > > <row><entry><literal>rpi</literal></entry> > > > -- Dziugas