app_sms.c:810:13: warning: implicit conversion from 'int' to 'char' changes value from 191 to -65 [-Wconstant-conversion] *p++ = 191; ~ ^~~ app_adsiprog.c:1112:28: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion] state->key->retstr[0] = 128; ~ ^~~ app_adsiprog.c:1148:26: warning: implicit conversion from 'int' to 'char' changes value from 130 to -126 [-Wconstant-conversion] state->sub->data[0] = 130; ~ ^~~ app_adsiprog.c:1265:20: warning: implicit conversion from 'int' to 'char' changes value from 129 to -127 [-Wconstant-conversion] disp->data[0] = 129; ~ ^~~ --- apps/app_adsiprog.c (Asterisk 15.2) +++ apps/app_adsiprog.c (working copy) @@ -1110,5 +1110,5 @@ static int adsi_process(struct adsi_scri } /* Setup initial stuff */ - state->key->retstr[0] = 128; + state->key->retstr[0] = 0x80; /* 1 has the length */ state->key->retstr[2] = state->key->id; @@ -1146,5 +1146,5 @@ static int adsi_process(struct adsi_scri } /* Setup sub */ - state->sub->data[0] = 130; + state->sub->data[0] = 0x82; /* 1 is the length */ state->sub->data[2] = 0x0; /* Clear extensibility bit */ @@ -1263,5 +1263,5 @@ static int adsi_process(struct adsi_scri break; } - disp->data[0] = 129; + disp->data[0] = 0x81; disp->data[1] = disp->datalen - 2; disp->data[2] = ((lrci & 0x3) << 6) | disp->id; --- apps/app_sms.c (Asterisk 15.2) +++ apps/app_sms.c (working copy) @@ -810 +810 @@ static void sms_log(sms_t * h, char stat - *p++ = 191; + *p++ = 0xbf;