model.clear();
StructureGA header = aga.getHeader();
int loopCount = header.getInt("COUNT");
-
+ int addCnt = 0;
+
StructureGA body = aga.getBody();
for(int i=0; i < loopCount; i++){
CallListVO cl = new CallListVO();
cl.setStatus(body.getInt("STAT",i)-1);
cl.setMultiParty(body.getInt("MULTIPARTY",i));
cl.setMomt(body.getInt("CALL_TYPE",i)-1);
- cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
+ cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
+ if(cl.getStatus() == -1)
+ {
+ loopCount++;
+ addCnt++;
+ continue;
+ }
model.add(cl);
}
+ loopCount -= addCnt;
((TelephonyCall)getParent()).refresh();
if(loopCount != 6)
listfull = false;