I have just added:
accept-x-kannel-headers = 1

to the sms-service group


==> bearerbox_access143.log <==
2009-07-02 12:08:47 Receive SMS [SMSC:connection_3] [SVC:] [ACT:] [BINF:]
[FID:] [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1]
[msg:16:005600E1006300610000006300000061] [udh:0:]
==> smsbox143.log <==
2009-07-02 12:08:47 [5232] [4] INFO: MO message converted from UCS-2 to
UTF-8
2009-07-02 12:08:47 [5232] [4] INFO: Starting to service <Váca> from
<1234567890> to <1234>
2009-07-02 12:08:47 [5232] [4] DEBUG: XMLBuild: XML: <<?xml version="1.0"
encoding="UTF-8"?>
<message cid="1">
        <submit>
                <oa>            <number>1234567890</number>
</oa>
                <da>            <number>1234</number>
</da>
                <ud>V%C3%A1ca%00c%00a</ud>
                <pid>0</pid>
                <dcs>           <coding>0</coding>
                <alt-dcs>0</alt-dcs>
                <compress>0</compress>
</dcs>

<at><year>2009</year><month>07</month><day>02</day><hour>15</hour><minute>08</minute><second>47</second><timezone>0</timezone></at>
                <from>                  <account>connection_3</account>
</from>
                <to>            <service>default</service>
</to>
        </submit>
</message>
>
2009-07-02 12:08:47 [5232] [9] DEBUG: Queue contains 0 pending requests.
2009-07-02 12:08:47 [5232] [9] DEBUG: Parsing URL `
http://localhost/index.php?coding=0&charset=UTF-8':
2009-07-02 12:08:47 [5232] [9] DEBUG:   Scheme: http://
2009-07-02 12:08:47 [5232] [9] DEBUG:   Host: localhost
2009-07-02 12:08:47 [5232] [9] DEBUG:   Port: 80
2009-07-02 12:08:47 [5232] [9] DEBUG:   Username: (null)
2009-07-02 12:08:47 [5232] [9] DEBUG:   Password: (null)
2009-07-02 12:08:47 [5232] [9] DEBUG:   Path: /index.php
2009-07-02 12:08:47 [5232] [9] DEBUG:   Query: coding=0&charset=UTF-8
2009-07-02 12:08:47 [5232] [9] DEBUG:   Fragment: (null)
2009-07-02 12:08:47 [5232] [9] DEBUG: HTTP: Opening connection to
`localhost:80' (fd=28).
2009-07-02 12:08:47 [5232] [9] DEBUG: Socket connecting
2009-07-02 12:08:47 [5232] [8] DEBUG: Get info about connecting socket
2009-07-02 12:08:47 [5232] [8] DEBUG: HTTP: Sending request:
2009-07-02 12:08:47 [5232] [8] DEBUG: Octet string at 0x74d730:
2009-07-02 12:08:47 [5232] [8] DEBUG:   len:  765
2009-07-02 12:08:47 [5232] [8] DEBUG:   size: 1024
2009-07-02 12:08:47 [5232] [8] DEBUG:   immutable: 0
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 50 4f 53 54 20 2f 6d 6f 73 65
6e 64 65 72 2f 69   POST /mosender/i
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6e 64 65 78 2e 70 68 70 3f 63
6f 64 69 6e 67 3d   ndex.php?coding=
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 30 26 63 68 61 72 73 65 74 3d
55 54 46 2d 38 20   0&charset=UTF-8
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 48 54 54 50 2f 31 2e 31 0d 0a
48 6f 73 74 3a 20   HTTP/1.1..Host:
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6c 6f 63 61 6c 68 6f 73 74 0d
0a 43 6f 6e 6e 65   localhost..Conne
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 63 74 69 6f 6e 3a 20 6b 65 65
70 2d 61 6c 69 76   ction: keep-aliv
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 65 0d 0a 55 73 65 72 2d 41 67
65 6e 74 3a 20 4b   e..User-Agent: K
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 61 6e 6e 65 6c 2f 31 2e 34 2e
33 0d 0a 43 6f 6e   annel/1.4.3..Con
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 74 65 6e 74 2d 54 79 70 65 3a
20 74 65 78 74 2f   tent-Type: text/
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 78 6d 6c 3b 20 63 68 61 72 73
65 74 3d 22 55 54   xml; charset="UT
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 46 2d 38 22 0d 0a 44 61 74 65
3a 20 32 30 30 39   F-8"..Date: 2009
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 2d 30 37 2d 30 32 20 31 35 3a
30 38 3a 34 37 0d   -07-02 15:08:47.
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 43 6f 6e 74 65 6e 74 2d 4c
65 6e 67 74 68 3a   .Content-Length:
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 20 35 34 39 0d 0a 0d 0a 3c 3f
78 6d 6c 20 76 65    549....<?xml ve
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 72 73 69 6f 6e 3d 22 31 2e 30
22 20 65 6e 63 6f   rsion="1.0" enco
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 64 69 6e 67 3d 22 55 54 46 2d
38 22 3f 3e 0a 3c   ding="UTF-8"?>.<
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6d 65 73 73 61 67 65 20 63 69
64 3d 22 31 22 3e   message cid="1">
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 09 3c 73 75 62 6d 69 74 3e
0a 20 20 09 09 3c   ..<submit>.  ..<
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6f 61 3e 20 20 09 09 3c 6e 75
6d 62 65 72 3e 31   oa>  ..<number>1
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 31 35 36 35 36 37 39 37 34 3c
2f 6e 75 6d 62 65   156567974</numbe
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 72 3e 0a 3c 2f 6f 61 3e 0a 20
20 09 09 3c 64 61   r>.</oa>.  ..<da
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 3e 20 20 09 09 3c 6e 75 6d 62
65 72 3e 31 30 31   >  ..<number>101
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 30 3c 2f 6e 75 6d 62 65 72 3e
0a 3c 2f 64 61 3e   0</number>.</da>
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 20 20 09 09 3c 75 64 3e 56
25 43 33 25 41 31   .  ..<ud>V%C3%A1
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 63 61 25 30 30 63 25 30 30 61
3c 2f 75 64 3e 0a   ca%00c%00a</ud>.
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 20 20 09 09 3c 70 69 64 3e 30
3c 2f 70 69 64 3e     ..<pid>0</pid>
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 20 20 09 09 3c 64 63 73 3e
20 20 09 09 3c 63   .  ..<dcs>  ..<c
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6f 64 69 6e 67 3e 30 3c 2f 63
6f 64 69 6e 67 3e   oding>0</coding>
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 20 20 09 09 3c 61 6c 74 2d
64 63 73 3e 30 3c   .  ..<alt-dcs>0<
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 2f 61 6c 74 2d 64 63 73 3e 0a
20 20 09 09 3c 63   /alt-dcs>.  ..<c
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6f 6d 70 72 65 73 73 3e 30 3c
2f 63 6f 6d 70 72   ompress>0</compr
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 65 73 73 3e 0a 3c 2f 64 63 73
3e 0a 20 20 09 09   ess>.</dcs>.  ..
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 3c 61 74 3e 3c 79 65 61 72 3e
32 30 30 39 3c 2f   <at><year>2009</
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 79 65 61 72 3e 3c 6d 6f 6e 74
68 3e 30 37 3c 2f   year><month>07</
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6d 6f 6e 74 68 3e 3c 64 61 79
3e 30 32 3c 2f 64   month><day>02</d
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 61 79 3e 3c 68 6f 75 72 3e 31
35 3c 2f 68 6f 75   ay><hour>15</hou
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 72 3e 3c 6d 69 6e 75 74 65 3e
30 38 3c 2f 6d 69   r><minute>08</mi
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6e 75 74 65 3e 3c 73 65 63 6f
6e 64 3e 34 37 3c   nute><second>47<
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 2f 73 65 63 6f 6e 64 3e 3c 74
69 6d 65 7a 6f 6e   /second><timezon
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 65 3e 30 3c 2f 74 69 6d 65 7a
6f 6e 65 3e 3c 2f   e>0</timezone></
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 61 74 3e 0a 20 20 09 09 3c 66
72 6f 6d 3e 20 20   at>.  ..<from>
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 09 09 3c 61 63 63 6f 75 6e 74
3e 61 72 2d 6d 6f   ..<account>ar-mo
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 76 69 73 74 61 72 33 3c 2f 61
63 63 6f 75 6e 74   vistar3</account
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 3e 0a 3c 2f 66 72 6f 6d 3e 0a
20 20 09 09 3c 74   >.</from>.  ..<t
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 6f 3e 20 20 09 09 3c 73 65 72
76 69 63 65 3e 64   o>  ..<service>d
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 65 66 61 75 6c 74 3c 2f 73 65
72 76 69 63 65 3e   efault</service>
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 0a 3c 2f 74 6f 3e 0a 09 3c 2f
73 75 62 6d 69 74   .</to>..</submit
2009-07-02 12:08:47 [5232] [8] DEBUG:   data: 3e 0a 3c 2f 6d 65 73 73 61 67
65 3e 0a            >.</message>.
2009-07-02 12:08:47 [5232] [8] DEBUG: Octet string dump ends.
2009-07-02 12:08:52 [5232] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2009-07-02 12:08:52 [5232] [8] DEBUG: HTTP: Received response:
2009-07-02 12:08:52 [5232] [8] DEBUG: Octet string at 0x753970:
2009-07-02 12:08:52 [5232] [8] DEBUG:   len:  247
2009-07-02 12:08:52 [5232] [8] DEBUG:   size: 1024
2009-07-02 12:08:52 [5232] [8] DEBUG:   immutable: 0
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 44 61 74 65 3a 20 54 68 75 2c
20 30 32 20 4a 75   Date: Thu, 02 Ju
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 6c 20 32 30 30 39 20 31 35 3a
30 38 3a 34 37 20   l 2009 15:08:47
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 47 4d 54 0d 0a 53 65 72 76 65
72 3a 20 41 70 61   GMT..Server: Apa
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 63 68 65 2f 32 2e 32 2e 33 20
28 44 65 62 69 61   che/2.2.3 (Debia
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 6e 29 20 50 48 50 2f 35 2e 32
2e 36 2d 35 20 77   n) PHP/5.2.6-5 w
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 69 74 68 20 53 75 68 6f 73 69
6e 2d 50 61 74 63   ith Suhosin-Patc
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 68 0d 0a 58 2d 50 6f 77 65 72
65 64 2d 42 79 3a   h..X-Powered-By:
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 20 50 48 50 2f 35 2e 32 2e 36
2d 35 0d 0a 43 6f    PHP/5.2.6-5..Co
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 6e 74 65 6e 74 2d 4c 65 6e 67
74 68 3a 20 32 0d   ntent-Length: 2.
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 0a 4b 65 65 70 2d 41 6c 69 76
65 3a 20 74 69 6d   .Keep-Alive: tim
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 65 6f 75 74 3d 31 35 2c 20 6d
61 78 3d 31 30 30   eout=15, max=100
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 0d 0a 43 6f 6e 6e 65 63 74 69
6f 6e 3a 20 4b 65   ..Connection: Ke
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 65 70 2d 41 6c 69 76 65 0d 0a
43 6f 6e 74 65 6e   ep-Alive..Conten
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 74 2d 54 79 70 65 3a 20 74 65
78 74 2f 70 6c 61   t-Type: text/pla
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 69 6e 3b 20 63 68 61 72 73 65
74 3d 55 54 46 2d   in; charset=UTF-
2009-07-02 12:08:52 [5232] [8] DEBUG:   data: 38 0d 0a 0d 0a 4f
4b                              8....OK
2009-07-02 12:08:52 [5232] [8] DEBUG: Octet string dump ends.
2009-07-02 12:08:52 [5232] [5] INFO: No reply sent, denied.
==> smsbox_access143.log <==
2009-07-02 12:08:52 SMS HTTP-request sender:1234567890 request: 'OK' url: '
http://localhost/mosender/index.php?coding=0&charset=UTF-8' reply: 200 '<<
successful >>'
==> smsbox143.log <==
2009-07-02 12:09:07 [5232] [8] DEBUG: HTTP: Server closed connection,
destroying it <localhost:80:0::><0x749e10><fd:28>.






On Thu, Jul 2, 2009 at 12:01 PM, dhcmega <dhcad...@gmail.com> wrote:

> Michael
> Is this information for MOs? I not testing MTs at all yet, I will go there
> when I get MOs to work OK.
> Thanks again!!
>
> dhcmega
>
>   On Thu, Jul 2, 2009 at 11:43 AM, Michael Bochkaryov <
> mi...@rattler.kiev.ua> wrote:
>
>> Hi,
>>
>> If you send reply as UTF-8 string in the same HTTP session, set the
>> following HTTP headers:
>>
>> Content-Type: text/html; charset=UTF-8
>> X-Kannel-Coding: 2
>>
>> And dont forget to set the following to sms-service group:
>> accept-x-kannel-headers = 1
>>
>> ---------------
>> For sendsms API just use the following parameters:
>>
>> coding=2&charset=utf-8
>>
>> 2009/7/2 dhcmega <dhcad...@gmail.com>:
>>  > Hi, thank you all!!
>> >
>> > I am using 1.4.2, I can try with 1.4.3 (and I think I will today)
>> >
>> > Mean while, with 1.4.2 and mclass hardcoded to 3 (otherwise it doesn´t
>> > work), when I receive "váca" o "victoría" I get this:
>> >
>> > 2009-07-02 11:07:15 Receive SMS [SMSC:connection_3] [SVC:] [ACT:]
>> [BINF:]
>> > [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1]
>> >
>> [msg:32:0056006900630074006F007200ED00610000006F00000072000000ED00000061]
>> > [udh:0:]
>> > 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to
>> > ISO-8859-1
>> > 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service <Victoría> from
>> > <1234567890> to <1234>
>> > 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied.
>> > 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK'
>> url:
>> > 'http://localhost/index.php?coding=0&charset=ISO-8859-1' reply: 200 '<<
>> > successful >>'
>> >
>> > 2009-07-02 11:07:15 Receive SMS [SMSC:connection_2] [SVC:] [ACT:]
>> [BINF:]
>> > [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1]
>> > [msg:16:005600E1006300610000006300000061] [udh:0:]
>> > 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to
>> > ISO-8859-1
>> > 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service <Váca> from
>> > <1234567890> to <1234>
>> > 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied.
>> > 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK'
>> url:
>> > 'http://localhost/index.php?coding=0&charset=ISO-8859-1' reply: 200 '<<
>> > successful >>'
>> > I am still having problems.
>> > Thanks!
>> >
>> > dhcemga
>> >
>> > On Wed, Jul 1, 2009 at 6:44 PM, Michael Bochkaryov <
>> mi...@rattler.kiev.ua>
>> > wrote:
>> >>
>> >> Oops, seems like list configured without rewriting Reply-To  header.
>> >> IMHO, it may be better to set replies to maillist as default behaviour.
>> >>
>> >>
>> >> 2009/7/1 Michael Bochkaryov <mi...@rattler.kiev.ua>:
>> >> > Hi,
>> >> >
>> >> > 2009/7/1 dhcmega <dhcad...@gmail.com>:
>> >> >> There is a lot of mails regarding how to send SMS to terminals using
>> >> >> special
>> >> >> chars, but not much about receiving.
>> >> >>
>> >> >> The operator tells me that when I receive a MO message with special
>> >> >> chars I
>> >> >> get it with coding DCS UCS2
>> >> >
>> >> > UCS2-BE if more correctly.
>> >> >
>> >> >> How should I configure kannel to interpret it OK?
>> >> >
>> >> > For Kannel itself no need to configure anything because of it's
>> >> > standard for Unicode messages.
>> >> > Just set transmission of text charset and SMS coding (%C and %c) in
>> >> > get-url.
>> >> >
>> >> > It should be something like this:
>> >> > get-url = "http://127.0.0.1/my.service?....coding=%c&charset=%C";
>> >> >
>> >> > I recommend also set "mo-recode = 1" in "smsbox" group.
>> >> > In this case message will recoded to WINDOWS-1252 or UTF-8 by Kannel
>> >> > before sending to your service.
>> >> > Seems UTF-8 processing will be more suitable for development.
>> >> >
>> >> >> It is a SMPP 3.4 connection.
>> >>
>> >> --
>> >> Regards,
>> >> Michael Bochkaryov
>> >> www.rattler.kiev.ua
>> >>
>> >
>> >
>>
>>
>>
>> --
>>  Regards,
>> Michael Bochkaryov
>> www.rattler.kiev.ua
>>
>
>

Reply via email to