ussd kpi and smlog cdr

This commit is contained in:
root
2025-03-27 17:36:21 +08:00
parent a74d97e221
commit f744be8df8
2 changed files with 14 additions and 11 deletions

View File

@@ -1449,16 +1449,19 @@ void cdr_parse(cdr_sys *psys,int tagcode,ASN_BUF *asnbuf,int fieldIndex,char* fi
{
//opps need cc
if(psrc->sysTypeNo == 375)
sprintf(fieldstr,",'%s'",digits2str(tempbyte,len * 2));
else if (psrc->sysTypeNo == 320 && !strcmp(pdef->fields[fieldIndex].tags[tagcode], "7.12"))
{
if (tempbyte[0] == 0x91 ||tempbyte[0] == 0x81 ||tempbyte[0] == 0xa1) {
sprintf(fieldstr, ",'%s'", digits2str(tempbyte + 1, (len - 1) * 2));
} else {
// 阿斯克码值
sprintf(fieldstr, ",'%s'", askm2str(tempbyte, len * 2));
}
if (psrc->sysTypeNo == 375) {
sprintf(fieldstr, ",'%s'", digits2str(tempbyte, len * 2));
} else if ((psrc->sysTypeNo == 320 && !strcmp(pdef->fields[fieldIndex].tags[tagcode], "7.12")) ||
(psrc->sysTypeNo == 351 &&
(!strcmp(pdef->fields[fieldIndex].tags[tagcode], "0.1") ||
!strcmp(pdef->fields[fieldIndex].tags[tagcode], "0.2")))) {
if (tempbyte[0] == 0x91 || tempbyte[0] == 0x81 || tempbyte[0] == 0xa1) {
sprintf(fieldstr, ",'%s'", digits2str(tempbyte + 1, (len - 1) * 2));
} else {
// 阿斯克码值
sprintf(fieldstr, ",'%s'", askm2str(tempbyte, len * 2));
}
}
else
sprintf(fieldstr,",'%s'",digits2str(tempbyte + 1,(len - 1) * 2));

View File

@@ -20,7 +20,7 @@
#endif
#define MaxLogSrcNum 16 //max number of command can be execute as same time
#define MaxAttrDefnNum 256
#define MaxAttrDefnNum 512
#define MaxOidLen 20 //max number of object ID
#define MaxSubOidLen 10 //max number of sub object ID
#define MaxVarNum 50 //max number of var in one pdu