Hello! 

Kannel 1.5.0 
SMPP 
  
I need to send and receive binary chars (0x00..0x7F) using 7-bit ( coding=0 ) 
I have patched source code in places: 

gwlib/charset.h

void charset_gsm_to_utf8(Octstr *ostr) 
{ /*empty body */ 
} 
void charset_utf8_to_gsm(Octstr *ostr) 
{/*empty body */ 
} 
void charset_gsm_to_latin1(Octstr *ostr) 
{/*empty body */ 
} 
void charset_latin1_to_gsm(Octstr *ostr) 
{/*empty body */ 
} 
int charset_gsm_truncate(Octstr *gsm, long max) 
{ 
    if (octstr_len(gsm) > max) { 
        /* If the last GSM character was an escaped character, 
         * then chop off the escape as well as the character. */ 
                octstr_truncate(gsm, max); 
                return 1; 
    } 
    return 0; 
} 
  
My purpose is exclude mapping chars to GSM-alphabet and vice versa. 

It workes, but 3 chars mapped as before: 
0x40 as 0x00 ('@') 
0x24 as 0x02 ('$') 
0x5f as 0x11 ('_') 

Please help me. 
Where I have to patch else? 



Reply via email to