And also in CDRgetStatus(),
stat->Time[0]=pB[18];
stat->Time[1]=pB[19];
stat->Time[2]=pB[20];
should be
stat->Time[0]=pB[19];
stat->Time[1]=pB[20];
stat->Time[2]=pB[21];
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1188479
And also in CDRgetStatus(),
stat->Time[0]=pB[18];
stat->Time[1]=pB[19];
stat->Time[2]=pB[20];
should be
stat->Time[0]=pB[19];
stat->Time[1]=pB[20];
stat->Time[2]=pB[21];