Table of Contents
Cisco UGCA Markup: markup.xml and call_record.discid
markup.xml
Cisco UGCA Markup: markup.xml and call_record.discid
This appendix presents the text of the file install/ CSCOugca/etc/config/markup.xml . "Color" markup is detailed here.
In addition, the values for call_record.discid , which are used to mark up color, are presented here as well. call_record.discid is actually the table disc_syscode in the database to which the user has read-only access.
markup.xml
<?xml version="1.0" encoding="UTF-8"?>
Markup setup file for Cisco UGCA -
Universal Gateway Call Analyzer
For special characters, the following have to used:
<!DOCTYPE MarkupSetup SYSTEM "file://localhost/_BASEDIR_/CSCOugca/etc/dtd/markup.dtd">
<MarkupAttribute Name = "recid"
value = call_record.recid;
<MarkupAttribute Name = "call_class"
Type = "TINYINT UNSIGNED"
if(call_record.discid == 8 ||
call_record.discid == 10 ||
call_record.discid == 11 ||
call_record.discid == 12 ||
call_record.discid == 13 ||
call_record.discid == 14 ||
call_record.discid == 15 ||
call_record.discid == 16 ||
call_record.discid == 17 ||
call_record.discid == 18 ||
call_record.discid == 19 ||
call_record.discid == 20 ||
call_record.discid == 21 ||
call_record.discid == 22 ||
call_record.discid == 23 ||
call_record.discid == 25 ||
call_record.discid == 26 ||
call_record.discid == 27 ||
call_record.discid == 28 ||
call_record.discid == 29 ||
call_record.discid == 30 ||
call_record.discid == 31 ||
call_record.discid == 32 ||
call_record.discid == 33 ||
call_record.discid == 34 ||
call_record.discid == 35 ||
call_record.discid == 36 ||
call_record.discid == 35 ||
call_record.discid == 36 ||
call_record.discid == 37 ||
call_record.discid == 39 ||
call_record.discid == 41 ||
call_record.discid == 42 ||
call_record.discid == 43 ||
call_record.discid == 56 ||
call_record.discid == 57 ||
call_record.discid == 60 ||
call_record.discid == 61 ||
call_record.discid == 62) {
if(call_record.duration <= 60 ||
call_record.rxchars < 800 ||
call_record.txchars < 800) {
if( modem_call_rec.remote_retr >= 2 ||
call_record.servtime >= 40) {
if( (modem_call_rec.snr > 0 && modem_call_rec.snr <= 30 ) ||
modem_call_rec.sq <= 3 ||
modem_call_rec.local_retr >= 2) {
if(modem_call_rec.fail_retr >= 1) {
<MarkupAttrEnumType DefaultName = "Normal"
<Pair Name="Normal" Value="1"/>
<Pair Name="Slow_Throughput" Value="2"/>
<Pair Name="Noisy_Line" Value="3"/>
<Pair Name="Abnormal_Disconnect" Value="4"/>
<Pair Name="No_Logon" Value="5"/>
<MarkupAttribute Name = "cr_dur_bucket"
Type = "TINYINT UNSIGNED"
if(call_record.duration > 300) {
else if(call_record.duration > 60) {
<MarkupAttrEnumType DefaultName = "0-60"
<Pair Name="0-60" Value="1"/>
<Pair Name="60-300" Value="2"/>
<Pair Name="300-" Value="3"/>
<MarkupAttribute Name = "mcr_dur_bucket"
Type = "TINYINT UNSIGNED"
if(modem_call_rec.duration > 300) {
else if(modem_call_rec.duration > 60) {
<MarkupAttrEnumType DefaultName = "0-60"
<Pair Name="0-60" Value="1"/>
<Pair Name="60-300" Value="2"/>
<Pair Name="300-" Value="3"/>
<MarkupAttribute Name = "user_gr"
Type = "TINYINT UNSIGNED"
if(call_record.userid ~~ "^aolnet/") {
else if(call_record.userid ~~ "^aolip") {
else if(call_record.userid ~~ "^aol") {
<MarkupAttrEnumType DefaultName = "Other"
<Pair Name="Other" Value="1"/>
<Pair Name="aolNet" Value="2"/>
<Pair Name="aolip" Value="3"/>
<Pair Name="aol" Value="4"/>
<MarkupAttribute Name = "disc_reason_gr"
Type = "TINYINT UNSIGNED"
if(modem_call_rec.disc_reason == "0x1F06") {
else if(modem_call_rec.disc_reason == "0x1F03") {
else if(modem_call_rec.disc_reason == "0x0220") {
<MarkupAttrEnumType DefaultName = "Other"
<Pair Name="Other" Value="1"/>
<Pair Name="Carrier" Value="2"/>
<Pair Name="IOS" Value="3"/>
<Pair Name="Normal" Value="4"/>
<MarkupAttribute Name = "calling_prefix"
value = call_record.calling ~ "[0-9]{6}";
<MarkupAttribute Name = "called_prefix"
value = call_record.called ~ "[0-9]{6}";
Posted: Thu Mar 27 17:17:14 PST 2003
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement .