



|
 |
|
 |
|
|
|
|
|
2191830 点值:5 浏览:3 次 |
|
标题:电信计费系统预处理功能模拟(4) |
|提出:2007/07/21 05:07 |结束:2007/07/21 05:07
|
/*函数功能:分析被叫号码信息
函数入口参数:整型orgnum,存储原始话单数组的下标
函数返回值:无*/
void analyseDestInfo(int orgnum)
{
//被叫判运营商,被叫分离区号
for (int i = 0;i < orgnum;i++)
{
if (strncmp(orgCallList[i].destPhoneNbr,"00",2) == 0)
{
strcpy(orgCallList[i].business,"未知");
strcpy(orgCallList[i].ForeNbr,"无");
}
else if (strncmp(orgCallList[i].destPhoneNbr,"139",3)==0)
{
strcpy(orgCallList[i].business,"中国移动");
strcpy(orgCallList[i].ForeNbr,"无");
}
else
{
strcpy(orgCallList[i].business,"中国电信");
if (strncmp(orgCallList[i].destPhoneNbr,"010",3) == 0)
strcpy(orgCallList[i].ForeNbr,"010");
else if (strncmp(orgCallList[i].destPhoneNbr,"020",3) == 0)
strcpy(orgCallList[i].ForeNbr,"020");
else if (strncmp(orgCallList[i].destPhoneNbr,"021",3) == 0)
strcpy(orgCallList[i].ForeNbr,"021");
else if (strncmp(orgCallList[i].destPhoneNbr,"17909",5) == 0)
{
if (orgCallList[i].destPhoneNbr[5]=='0' && orgCallList[i].destPhoneNbr[6]=='1'
&& orgCallList[i].destPhoneNbr[7]=='0')
strcpy(orgCallList[i].ForeNbr,"010");
else if (orgCallList[i].destPhoneNbr[5]=='0' && orgCallList[i].destPhoneNbr[6]=='2'
&& orgCallList[i].destPhoneNbr[7]=='0')
strcpy(orgCallList[i].ForeNbr,"020");
else if (orgCallList[i].destPhoneNbr[5]=='0' && orgCallList[i].destPhoneNbr[6]=='2'
&& orgCallList[i].destPhoneNbr[7]=='1')
strcpy(orgCallList[i].ForeNbr,"021");
}
else
strcpy(orgCallList[i].ForeNbr,"无");
}
}
} |
|
天才
冒险之寂寞
|
|
|