Hi All Never mind. I found that my "problem" was NOT a problem.
It is because @8 bits the message max lenght is 140chars... Sorry Alvaro On 7/23/07, Alvaro Cornejo <[EMAIL PROTECTED]> wrote:
Hi All I'm trying to send messages with spanish charset (accented chars á é í ó ú and ñ); It worked fine if I use UCS2 however I'm limited to 70 chars. If do use 8 bits I can not get more than 140 chars. I've tried to use ISO-8859-1, WINDOWS-1252, GSM, UTF-8 etc with coding = 0, 1 and 2 and still can get more than the 140 chars. I've browsed and read a lot of messages regarding special chars but still not getting it clear. Can anyone give me some tips? This is what I've done so far: php code for URL used: $URL .= "&from=".urlencode($from)."&to=".urlencode($to)."&text=".urlencode(iconv("ISO-8859-1","WINDOWS-1252",$sms_msg))."&smsc=".urlencode($smsc_id)."&coding=1"; My system has ISO-8859-1 lang default and all developpement is done under that charset. I've tried several combinations of charset/coding unsuccessfully. The Test Message: Original message (160 Chars): 123456789á123456789é123456789í123456789ó123456789ú123456789ñ123456789Ñ1234 56789Á123456789É123456789Í123456789Ó123456789Ú123456789ü123456789ö123456789 ï / Acornejo What I get logged in kannel access log (160 Chars): 2007-07-22 23:31:01 send-SMS request added - sender:puser:+525513206766 127.0.0.1 target:+525513206766 request: '123456789á 123456789é123456789í123456789ó123456789ú123456789ñ123456789Ñ123456789Á123456789É123456789Í123456789Ó123456789Ú123456789ü123 456789ö12345678 / Acornejo' What is sent to my GSM Modem: (140 Chars)... Message truncated by kannel... 2007-07-22 23:31:02 [6236] [6] DEBUG: AT2[telcel]: --> AT+CMGS=154^M 2007-07-22 23:31:02 [6236] [6] DEBUG: AT2[telcel]: <-- > 2007-07-22 23:31:02 [6236] [6] DEBUG: AT2[telcel]: send command status: 1 2007-07-22 23:31:02 [6236] [6] DEBUG: AT2[telcel]: --> 0031000C912555310276660016A78C313233343536373839E1313233343536373839 E9313233343536373839ED313233343536373839F3313233343536373839FA313233343536373839F1313233343536373839D1313233343536373839C13 13233343536373839C9313233343536373839CD313233343536373839D3313233343536373839DA313233343536373839FC313233343536373839F6 What does the above PDU is as per http://www.zopensource.com/pdu.php translate to: SMSC# Sender:+525513206766 TP_PID:00 TP_DCS:16 TP_DCS-popis:Uncompressed Text No class Alphabet:8bit 123456789á123456789 " #3CScsƒžÓ #3CScsƒŸ3 #3CScsƒŸ£ #3CScsƒŸ #3CScsƒ #3CScsƒœ 23456789É123456789Í123456789Ó123456789Ú123456789ü123456789 Length:140 the bearerbox log: 2007-07-23 00:11:01 [6254] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2007-07-23 00:11:01 [6254] [2] DEBUG: HTTP: Created HTTPClient area 0x8a74ce8. 2007-07-23 00:11:01 [6254] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2007-07-23 00:11:01 [6254] [3] INFO: sendsms used by <puser> 2007-07-23 00:11:01 [6254] [3] INFO: sendsms sender:<puser:+525513206766> (127.0.0.1) to:<+525513206766> msg:<123456789á123456789é123456789í123456789ó123456789ú123456789ñ123456789Ñ123456789Á123456789É123456789Í123456789Ó123456789Ú123456789ü123456789ö12345678 / Acornejo> 2007-07-23 00:11:01 [6254] [3] DEBUG: Stored UUID f7cb3a1c-daaf-498b-a20d-c1afaa00f5f2 2007-07-23 00:11:01 [6254] [3] DEBUG: message length 159, sending 1 messages 2007-07-23 00:11:01 [6254] [3] DEBUG: Status: 202 Answer: <Sent.> 2007-07-23 00:11:01 [6254] [3] DEBUG: Delayed reply - wait for bearerbox 2007-07-23 00:11:01 [6254] [0] DEBUG: Got ACK (0) of f7cb3a1c-daaf-498b-a20d-c1afaa00f5f2 2007-07-23 00:11:01 [6254] [0] DEBUG: HTTP: Destroying HTTPClient area 0x8a74ce8. 2007-07-23 00:11:01 [6254] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. Finally what my kannel conf got: [EMAIL PROTECTED] ~]# more /etc/kannel/kannel.conf #CORE BEARERBOX group = core admin-port = 13000 smsbox-port = 13001 dlr-storage = mysql # usar en vez del MYSQL-DLR # dlr-storage = internal admin-password = pass box-allow-ip = "127.0.0.1; 10.10.5.2" box-deny-ip = "*.*.*.*" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 access-log = "/var/log/kannel/beareraccess.log" # SMSBOX SETUP # group = smsbox bearerbox-host = localhost sendsms-chars = "0123456789 +" sendsms-port = 13013 global-sender = SmsGlobal log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/smsaccess.log" http-request-retry = 3 http-queue-delay = 10 ##################### ### MODEM GROUPS ### ##################### group = modems id = K510a name = K510a detect-string = "K510" init-string = "AT+CNMI=2,3,0,1,0;+CMEE=1" message-storage = ME # PARA TEST: keepalive-cmd = AT+CSQ reset-string = AT+CFUN=1 group = modems id = T610 name = T610 detect-string = "T610" init-string = AT+CNMI=2,3,0,0,0 message-storage = ME group = modems id = T68 name = T68 detect-string = "T68" init-string = AT+CNMI=3,1,2,0,0 message-storage = ME keepalive-cmd = AT+CBC;+CSQ reset-string = AT+CFUN=1 group = modems id = Enfora1218 name = Enfora1218 detect-string = "Enfora" init-string = AT+CNMI=2,1,2,0,0 message-storage = SM keepalive-cmd = AT+CSQ reset-string = AT$RESET ################## #### SMSC AT #### ################## # SMSC ENFORA 1218 I # group = smsc smsc = at smsc-id = telcel log-level = 0 log-file = "/var/log/kannel/enfora1.log" modemtype = auto device = /dev/ttyS0 speed = 115200 denied-smsc-id = nxtl_mail, click allowed-smsc-id = telcel sim-buffering = true keepalive = 60 max-error-count = 3 #### CONEXION A MYSQL LOCALHOST group = mysql-connection id = mydlr host = localhost username = user password = pass database = kannel_dlr max-connections = 2 #### DLR DB DEFINITION group = dlr-db id = mydlr table = tblkannel_dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc ################################### # SMS SERVICES ################################### ##### PLAYSMS ADDONS ##### # SEND-SMS USERS PLAYSMS group = sendsms-user username = user password = pass name = playsms user-allow-ip = localhost, 192.168.80.9 user-deny-ip = *.*.*.* # SMS SERVICE Playsms GET-URL group = sms-service keyword = default get-url = "http://localhost/sms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a" max-messages = 0