Summary

The programm calculates statistics based on data (green) reported by modems when disconnecting the calls. The output contains abridged data reported by modems (blue) and statistics of disconnect reasons calculated both per each user and overall (red).
Required debugs:
none, but "modem call-record terse" needs to be set in global configuration

Original output of "modem call-record terse"

4w0d: %CALLRECORD-3-MICA_TERSE_CALL_REC: DS0 slot/contr/chan==0/0/12, slot/port==1/19, call_id==7E72, userid==(n/a), ip==0.0.0.0, calling==3522 , called==5241 , std==V.90, prot==ASYNC Mode , comp==None , init-rx/tx b-rate==16800/42666, finl-rx/tx b-rate==168 00/42666 , rbs==0, d-pad==None, retr== 0, sq==3, snr==26, rx/tx chars==1088/145 , p/w info==25, rx/tx ec==0/0, bad==0, time==38, finl-state==Steady Speedshift, disc(radius)==(n/a)/(n/a), disc(modem)==DF00 Tx (host to line) data flushing - OK/Requested by host/non-specific host disconnect
4w0d: %CALLRECORD-3-MICA_TERSE_CALL_FAILED_REC: DS0 slot/contr/chan==0/2/18, slot/port==1/1, call_id==7E73, userid==(n/a), ip==0.0.0.0, calling==3526 , called==5241, std==V.90, prot==LAP-M, comp==V.42bis both, init-rx/tx b-rate==19200/38666 , finl-rx/tx b-rate==1 9200/38666, rbs==0, d-pad==None, retr==0, sq==3, snr==28, rx/tx chars==54/12 , p/w info==25, rx/tx ec==1/1, bad==0, time==27, finl-state==Steady Retrain, disc(radius)==(n/a)/(n/a), disc(modem)==7F00 Condition occurred during call setup/Requested by host/non-specific host disconnect
4w0d: %CALLRECORD-3-MODEM_CALL_REC_ERROR: DS0 slot/contr/chan==0/2/24, slot/port==1/30, call_id==7E7C, userid==user, ip==0.0.0.0, calling==3522 , called==5241, std==V.34+, prot==LAP-M , comp==V.42bis both, init-rx/tx b-rate==28800/31200 , finl-rx/tx b-rate== 28800/31200, rbs==0, d-pad==None, retr==0 , sq==3, snr==37 , rx/tx chars==241/136, p/w info==0, rx/tx ec==11/15, bad==0, time==25, finl-state==Steady, disc(radius)==User Error/PAP Auth Failed, disc(modem)==DF03 Tx (host to line) data flushing - OK/Requested by host/DTR dro

Report output

The first 4 bytes (numbers in square brackets) are used to identify the part of the report the record/line belongs to: so that after the report is sorted (e. g. using a "sort" utility), the records still stay within their parts.
1st section ("[00]") is an extract of the original log
2nd section ("[10]") is distribution of disconnect reasons per calling# >called#"username " combination (as specified in variables "idx_use_sn", "idx_use_dn" and "idx_use_id" respectively). Per-user statistics include average and maximum connect times
3rd section ("[20]")distribution of disconnect reasons per time periods, as specified in "period" variable (default 15s)
4th section ("[30]") is overall distribution of disconnect reasons
5th section ("[40]") is total number of terse records processed and unique calling# >called#"username " combinations identified

[00]DF00 =3522>5241 % CALLRECORD-3-MICA_TERSE_CALL_REC: std== V.90 prot==ASYNC comp== None b-rate==16800/42666 b-rate== 16800/42666 retr== 0 sq==3 snr==26 chars== 1088/145 ec==0/0 bad== 0 time==38 finl-state==Steady disc(radius)==(n/a)/(n/a) disc(modem)==DF00 Tx (host to line) data flushing - OK/Requested by host/non-specific host disconnect
[00]7F00 =3526>5241 % CALLRECORD-3-MICA_TERSE_CALL_FAILED_REC: std== V.90 prot==LAP-M comp==
None b-rate==19200/38666 b-rate==19200/38666 retr== 0 sq==3 snr==28 chars==54/12 ec==1/1 bad== 0 time==27 finl-state==Train Up disc(radius)==(n/a)/(n/a) disc(modem)==7F00 Condition occurred during call setup/Requested by host/non-specific host disconnect
[00]DF03 =3522>5241 % CALLRECORD-3-MODEM_CALL_REC_ERROR: std== V.34+ prot==LAP-M comp== V.42bis b-rate==28800/31200 b-rate==28800/31200 retr== 0 sq==3, snr==37 chars==241/136 ec==11/15 bad== 0 time==25 finl-state==Steady disc(radius)==User Error/PAP Auth Failed disc(modem)== DF03 Tx (host to line) data flushing - OK/Requested by host/DTR dro

Section#
User id
DR code
# of disconnects
% of total disconnects of the user
% of total # of the DR

[10]
3522 >5241=
DF03 :
1
(user 50.00%,
total 100.00%)




DS1#
# of the user disconnects with the DR per the DS1
% of total disconnects of the user with the DR
% of total disconnects of the user on the DS1
[10]
3522 >5241=
DF03
DS1 : 0/0 =
1
(user 100.00%,
user/DS1 100.00%)



# of disconnects
% of total disconnects of the user
% of total # of the DR

[10]
3522 >5241 =
7F00 :
1
(user 50.00%,
total 100.00%)




DS1#
# of the user disconnects with the DR per the DS1
% of total disconnects of the user with the DR
% of total disconnects of the user on the DS1
[10]
3522 >5241=
7F00
DS1 : 0/2 =
1
(user 100.00%,
user/DS1 100.00%)


Connect standard
# of disconnects
% of total disconnects of the user
% of total disconnects of the standard

[10]
3522 >5241=
Std V.34+:
1
(user  50.00%,
std =  100.00%)

[10]
3522 >5241=
Std V.90:
1
(user  50.00%,
std =  50.00%)



Total disconnects
Disconnects per DS1
Average connect time
Maximum connect time

[10]
3522 >5241=
Total= 2,
DS1:  0/0 = 1, DS1:  0/2 = 1;
average time= 37.50s,
max time= 45s



DR code
# of disconnects
% of total disconnects of the user
% of total # of the DR

[10]
3526 >5241=
DF00 :
1
(user 100.00%,
total 100.00%)




DS1#
# of the user disconnects with the DR per the DS1
% of total disconnects of the user with the DR
% of total disconnects of the user on the DS1
[10]
3526 >5241=
7F00
DS1:   0/2 =
1
(user  100.00%,
user/DS1 100.00%)


Connect standard
# of disconnects
total disconnects of the user
% of total disconnects of the standard

[10]
3526 >5241=
Std V.90:
1
(user 100.00%,
std =  50.00%)



Total disconnects
Disconnects per DS1
Average connect time
Maximum connect time

[10]
3526 >5241=
Total= 1,
DS1:  0/2 = 1;
average time= 30.00s,
max time= 30s


Section#
Time period
DR code
# of disconnects
% of the period
% of the DR

[20]
30 s=
DF03:
1
(15s period 50.00%,
DR total 100.00%)

[20]
30 s=
7F00:
1
(15s period 50.00%,
DR total 100.00%)



Total disconnects
% of the period
% of total disconnects


[20]
30 s=
Total= 2
(15 s period =100%=,
total 66.67%)




DR code
# of disconnects
% of the period
% of the DR

[20]
45 s=
DF00:
1
(15 s period 100.00%,
DR total  100.00%)



Total disconnects
% of the period
% of total disconnects


[20]
45 s=
Total= 1
(15 s period =100%=,
total 33.33%)



Section#
DS1 #
DR code
# of disconnects
% of disconnects of the DS1
% of disconnects of the DR

[30]
DS1:  0/0=
DF00 :
1
(DS1  100.00%,
DR total  100.00%)



Connect standard
DR code
# of disconnects
% of disconnects of the standard on the DS1
% of disconnects of the standard with the DR
[30]
DS1:  0/0=
Std V.90
DR DF00 :
1
(std DS1  100.00%,
std DR  100.00%)



Total disconnects of the standard
% of disconnects of the DS1
% of disconnects of the standard

[30]
DS1:  0/0=
Std V.90
total  1
(DS1  100.00%,
std 50.00%)



Total disconnects
Average connect time
Maximum connect time


[30]
DS1:  0/0=
Total= 1,
average time= 45.00s,
max time= 45s




DR code
# of disconnects
% of disconnects of the DS1


[30]
DS1:  0/2=
DF03 :
1
(DS1 50.00%,
DR total  100.00%)

[30]
DS1:  0/2=
7F00 :
1
(DS1 50.00%,
DR total  100.00%)



Connect standard
DR code
# of disconnects
% of disconnects of the standard on the DS1
% of disconnects of the standard with the DR
[30]
DS1:  0/2=
Std V.34+
DR DF03 :
1
(std DS1  100.00%,
std DR  100.00%)



Total disconnects of the standard
% of disconnects of the DS1
% of disconnects of the standard

[30]
DS1:  0/2=
Std V.34+
total  1
(DS1 50.00%,
std 100.00%)




DR code
# of disconnects
% of disconnects of the standard on the DS1
% of disconnects of the standard with the DR
[30]
DS1:  0/2=
Std V.90
DR 7F00 :
1
(std DS1  100.00%,
std DR  100.00%)



Total disconnects of the standard
% of disconnects of the DS1
% of disconnects of the standard

[30]
DS1:  0/2=
Std V.90
total  1
(DS1 50.00%,
std 50.00%)



Total disconnects
Average connect time
Maximum connect time


[30]
DS1:  0/2=
Total= 2,
average time= 30.00s,
max time= 30s



Section#
DR code
Connect standard
# of disconnects
% of disconnects of the standard
% of total disconnects of the standard

[40]
DF00 :
Std   V.90:
1
(std/DR  100.00%,
std  100.00%)



# of disconnects
% of total disconnects



[40]
DF00 :
Total 1
(33.33% )





Connect standard
# of disconnects
% of disconnects of the standard
% of total disconnects of the standard

[40]
DF03 :
Std  V.34+:
1
(std/DR  100.00%,
std  100.00%)



# of disconnects
% of total disconnects



[40]
DF03 :
Total 1
(33.33% )





Connect standard
# of disconnects
% of disconnects of the standard
% of total disconnects of the standard

[40]
7F00 :
Std   V.90:
1
(std/DR  100.00%,
std 50.00%)



# of disconnects
% of total disconnects



[40]
7F00 :
Total 1
(33.33% )




Total disconnects
Total users
Total DS1



[40]
Total: 3 call records
2 users
2 DS1