Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/default.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fraud Trace</title>
</head>
<body>
<div class="pageHeader">Fraud Trace</div>
<br /><br />
&nbsp;&nbsp;Welcome to the fraud trace website
 
<cfif IsDefined("url.msisdn")>
    <cfset msisdn=#url.msisdn#>
<cfelse>
    <cfset msisdn="27832221127">
</cfif>
 
 
 
    <!--- Get the MSC and the IMSI for the MSISDN --->
    <cfinvoke 
          component="fraudtrace.components.fraudtrace"
          method="getMSCandImsi" returnvariable="getMSCandImsi">
          <cfinvokeargument name="msisdn" value="#msisdn#"/>
    </cfinvoke>    
 
    <!--- If found the MSC, try get the STATUS of the subscriber using the MSC and IMSI --->
    <cfif getMSCandImsi.msc NEQ "">
        <cfoutput>For MSISDN #msisdn#, IMSI is #getMSCandImsi.imsi#, MSC is #getMSCandImsi.msc#.<br /></cfoutput>
        <cfinvoke 
              component="fraudtrace.components.fraudtrace"
              method="getStatus" returnvariable="getStatus">
              <cfinvokeargument name="imsi" value="#getMSCandImsi.imsi#"/>
              <cfinvokeargument name="msc" value="#getMSCandImsi.msc#"/>
        </cfinvoke>
        <cfoutput>Status is #getStatus.status#, #getStatus.description#<br /></cfoutput>
        
        <!--- If the STATUS is BUSY then can determine the subsciber's location --->
        <cfif #getStatus.status# is "BUSY">
            <cfinvoke 
                  component="fraudtrace.components.fraudtrace"
                  method="getSiteId" returnvariable="getSiteId">
                  <cfinvokeargument name="imsi" value="#getMSCandImsi.imsi#"/>
                  <cfinvokeargument name="msc" value="#getMSCandImsi.msc#"/>                                    
            </cfinvoke>
            <cfoutput>SiteID is orig=#getSiteId.originalSiteId#, cleaned=#getSiteId.siteId#, sector=#getSiteId.sector#<br /></cfoutput>
            <cfoutput>SiteID is name=#getSiteId.siteName#, lat=#getSiteId.lat#, lon=#getSiteId.lon#<br /></cfoutput>            
 
        </cfif>        
    <cfelse>
        Can't determine the MSC
    </cfif>
 
</body>
</html>