Lucio Ferrao wrote: > > When smsc_at2 sent a message in 7bit the length written in the PDU did not > include > the escape chars. I solved the problem calling the charset_latin1_to_gsm a > little earlier. > This lead to missing end chars when using "escaped chars" []... > > Lucio Ferrao > OutSystems > > Index: gw/smsc_at2.c > =================================================================== > RCS file: /home/cvs/gateway/gw/smsc_at2.c,v > retrieving revision 1.18 > diff -c -r1.18 smsc_at2.c > *** gw/smsc_at2.c 2002/01/09 08:31:41 1.18 > --- gw/smsc_at2.c 2002/01/23 19:24:19 > *************** > *** 1490,1495 **** > --- 1490,1498 ---- > pos++; > > /* user data length - include length of UDH if it exists*/ > + if (msg->sms.coding == DC_7BIT) { > + charset_latin1_to_gsm(msg->sms.msgdata); > + } > len = octstr_len(msg->sms.msgdata); > > if(octstr_len(msg->sms.udhdata)) { > *************** > *** 1551,1557 **** > int ermask[8] = { 0, 1, 3, 7, 15, 31, 63, 127 }; > int elmask[8] = { 0, 64, 96, 112, 120, 124, 126, 127 }; > > - charset_latin1_to_gsm(input); > len = octstr_len(input); > > /* prevoctet is set to the first character and we'll start the loop > --- 1554,1559 ----
is the patch from Oded Arbel <[EMAIL PROTECTED]> I just applied, see http://www.kannel.3glab.org/cgi-bin/viewcvs.cgi/gateway/ChangeLog?rev=1.1665&content-type=text/vnd.viewcvs-markup solving this problem? Can you please checkout a fresh cvs tree and try if this fixes the behaviour you noticed? Stipe [EMAIL PROTECTED] ------------------------------------------------------------------- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [EMAIL PROTECTED] Internet: http://www.wapme-systems.de ------------------------------------------------------------------- wapme.net - wherever you are