ussd kpi and smlog cdr
This commit is contained in:
@@ -1449,16 +1449,19 @@ void cdr_parse(cdr_sys *psys,int tagcode,ASN_BUF *asnbuf,int fieldIndex,char* fi
|
|||||||
{
|
{
|
||||||
|
|
||||||
//opps need cc
|
//opps need cc
|
||||||
if(psrc->sysTypeNo == 375)
|
if (psrc->sysTypeNo == 375) {
|
||||||
sprintf(fieldstr,",'%s'",digits2str(tempbyte,len * 2));
|
sprintf(fieldstr, ",'%s'", digits2str(tempbyte, len * 2));
|
||||||
else if (psrc->sysTypeNo == 320 && !strcmp(pdef->fields[fieldIndex].tags[tagcode], "7.12"))
|
} else if ((psrc->sysTypeNo == 320 && !strcmp(pdef->fields[fieldIndex].tags[tagcode], "7.12")) ||
|
||||||
{
|
(psrc->sysTypeNo == 351 &&
|
||||||
if (tempbyte[0] == 0x91 ||tempbyte[0] == 0x81 ||tempbyte[0] == 0xa1) {
|
(!strcmp(pdef->fields[fieldIndex].tags[tagcode], "0.1") ||
|
||||||
sprintf(fieldstr, ",'%s'", digits2str(tempbyte + 1, (len - 1) * 2));
|
!strcmp(pdef->fields[fieldIndex].tags[tagcode], "0.2")))) {
|
||||||
} else {
|
|
||||||
// 阿斯克码值
|
if (tempbyte[0] == 0x91 || tempbyte[0] == 0x81 || tempbyte[0] == 0xa1) {
|
||||||
sprintf(fieldstr, ",'%s'", askm2str(tempbyte, len * 2));
|
sprintf(fieldstr, ",'%s'", digits2str(tempbyte + 1, (len - 1) * 2));
|
||||||
}
|
} else {
|
||||||
|
// 阿斯克码值
|
||||||
|
sprintf(fieldstr, ",'%s'", askm2str(tempbyte, len * 2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(fieldstr,",'%s'",digits2str(tempbyte + 1,(len - 1) * 2));
|
sprintf(fieldstr,",'%s'",digits2str(tempbyte + 1,(len - 1) * 2));
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MaxLogSrcNum 16 //max number of command can be execute as same time
|
#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 MaxOidLen 20 //max number of object ID
|
||||||
#define MaxSubOidLen 10 //max number of sub object ID
|
#define MaxSubOidLen 10 //max number of sub object ID
|
||||||
#define MaxVarNum 50 //max number of var in one pdu
|
#define MaxVarNum 50 //max number of var in one pdu
|
||||||
|
|||||||
Reference in New Issue
Block a user