Documente Academic
Documente Profesional
Documente Cultură
@@
@@ 1 - YES
@@
@@-----------------------------------@@
@set {UseAreaCode} = 0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@---------------------@@
@@ DEFINE FILEPATH @@
@@---------------------@@
@set {FilePath} = "D:\SUSCPall"
@@--------------------------@@
@@ DEFINE DATE and TIME @@
@@--------------------------@@
@getdate {date} YYYYMMDD
@gettime {time} HHMMSS
@@--------------------------------------------------------@@
@@--------------------------------------------------------@@
@@--------------------------------------------------------@@
@@--------------------------------------------------------@@
@if {IntNumPlanFirst} > 9999 then set {LenghtNumber} = 5
@if {IntNumPlanFirst} > 99999 then set {LenghtNumber} = 6
@if {IntNumPlanFirst} > 999999 then set {LenghtNumber} = 7
@if {IntNumPlanFirst} > 9999 then set {LenghtAreaCode} = 5
@if {IntNumPlanFirst} > 99999 then set {LenghtAreaCode} = 4
@if {IntNumPlanFirst} > 999999 then set {LenghtAreaCode} = 3
@if {UseAreaCode} = 0 then set {LenghtAreaCode}=0
@set {NextPosArea} = {LenghtAreaCode} + 1
@@-----------------------------------------@@
@@
ENTER NUMBER
@@
@@ (and analysing internal numbering plan) @@
@@-----------------------------------------@@
@label ASKnumber
@ask {snbloop}
"Enter first number"
@if {snbloop}
< {IntNumPlanFirst} then goto ASKnumber
@if {snbloop}
> {IntNumPlanLast} then goto ASKnumber
@ask {snbloopend} "Enter last number"
@if {snbloopend} = "" then goto SingleNumber
@if {snbloop}
> {snbloopend} then goto ASKnumber
@if {snbloopend} < {IntNumPlanFirst} then goto ASKnumber
@if {snbloopend} > {IntNumPlanLast} then goto ASKnumber
@@----------------------@@
@@ DEFINE FILENAMES @@
@@----------------------@@
@set {DateTimeSNBs} = {date}+"-"+{time}+"--"+{snbloop}+"-"+{snbloopend}
@SET {filename}
= {FilePath}+"\SUSCClist-"+{DateTimeSNBs}+".
txt"
@SET {filenameFroUnreasonableValue} = {FilePath}+"\UnreasonableValue-"+{DateTime
SNBs}+".txt"
@SET {filenameFroRC}
= {FilePath}+"\RC-"
+{DateTime
SNBs}+".txt"
@SET {filenameFroPBX}
= {FilePath}+"\PBX-"
+{DateTime
SNBs}+".txt"
@SET {filenameForISDNE}
= {FilePath}+"\ISDNE-"
+{DateTime
SNBs}+".txt"
@SET {filenameFroPBXpxr}
= {FilePath}+"\PBXpxr-"
+{DateTime
SNBs}+".txt"
@SET {filenameDefaultSCL}
= {FilePath}+"\DefaultSCL-"
+{DateTime
SNBs}+".txt"
@SET {filenameFroVacantNumber}
= {FilePath}+"\VacantNumber-"
+{DateTime
SNBs}+".txt"
@if {snbloop} = {snbloopend} then goto SingleNumber
@goto global_loop
@@--------------------------------------@@
@@ DEFINE FILENAMES for single number @@
@@--------------------------------------@@
@label SingleNumber
@set {snbloopend} = 0
@set {DateTimeSNB} = {date}+"-"+{time}+"--"+{snbloop}
@SET {filename} = {FilePath}+"\SUSCClist-"+{DateTimeSNB}+".txt"
@SET {filenameFroUnreasonableValue} = {FilePath}+"\UnreasonableValue-"+{DateTime
SNB}+".txt"
@SET {filenameFroRC}
= {FilePath}+"\RC-"
+{DateTime
SNB}+".txt"
@SET {filenameFroPBX}
= {FilePath}+"\PBX-"
+{DateTime
SNB}+".txt"
@SET {filenameForISDNE}
= {FilePath}+"\ISDNE-"
+{DateTime
SNB}+".txt"
@SET {filenameFroPBXpxr}
= {FilePath}+"\PBXpxr-"
+{DateTime
SNB}+".txt"
@SET {filenameDefaultSCL}
= {FilePath}+"\DefaultSCL-"
+{DateTime
SNB}+".txt"
@SET {filenameFroVacantNumber}
= {FilePath}+"\VacantNumber-"
+{DateTime
SNB}+".txt"
@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@
@@
@@ START global loop @@
@@
@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@
@label global_loop
@gosub commdatazero
@@------------------------@@
@@ COMMAND STSUP BASIC @@
@@------------------------@@
STSUP:SNB={snbloop};
@COPY {_line1} {NotAccepted} 1 12
@if {NotAccepted} = "NOT ACCEPTED" then goto NotAccepted
@copy {_line4} {adm} 1 2
@if {adm} = "NC" then goto NotConnected
@@ --- COMMAND STSUP define PBX-number --@copy {_line5} {pxrPBX} 1 3
@if {pxrPBX} <> "PXR" then goto commandSUKWP
@copy {_line6} {pxrPBX} 1 5
@set {posPNB} = 13 + {LenghtAreaCode}
@copy {_line6} {PNB} {posPNB} {LenghtNumber}
@copy {_line6} {pxrPBX} 1 5
@comment SNB={snbloop} define default SCL.
@APPEND {filenameFroPBXpxr} "PBXnumber="+{PNB}+",PXR="+{pxrPBX}+",SNB="+{snbloop
}
@@-------------------@@
@@ COMMAND SUKWP @@
@@-------------------@@
@label commandSUKWP
SUKWP:SNB={snbloop};
@COPY {_line4} {kword} 33 4
@if {kword} = "" then goto SUSCPLIST
@set {command} = "SUKWI:SNB="
@set {data}=",KWORD="+{kword}
@gosub AppendCommandToFile
@@--------------------------------@@
"yes
"yes
"yes
"yes
service"
service"
service"
service"
@goto nextSNB
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@
@@
@@ ANALYSING ERROR IN EXECUTE COMMAND STSUP @@
@@
@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@-------------------@@
@@ NOT CONNECTED @@
@@-------------------@@
@label NotConnected
@comment SNB={snbloop} no connected
@APPEND {filenameFroVacantNumber} {snbloop}
@goto nextSNB
@@------------------@@
@@ NOT ACCEPTED @@
@@------------------@@
@label NotAccepted
@COPY {_line2} {UnreasonableValue} 1 18
@if {UnreasonableValue} = "UNREASONABLE VALUE" then goto UnreasonableValue
@COPY {_line2} {FaultCode} 1 14
@if {FaultCode} = "FAULT CODE 17" then goto SNBisPBX
@if {FaultCode} = "FAULT CODE 22" then goto SNBonRC
@if {FaultCode} = "FAULT CODE 23" then goto SNBisISDNE
@label UnreasonableValue
@comment UNREASONABLE VALUE SNB={snbloop}
@APPEND {filenameFroUnreasonableValue} {snbloop}
@goto nextSNB
@label SNBisPBX
@comment SNB={snbloop} is PBX-number
@APPEND {filenameFroPBX} {snbloop}
@goto commandSUKWP
@label SNBonRC
@comment Need SUSCP:SNB={snbloop}; for find the RC
@APPEND {filenameFroRC} {snbloop}
@goto nextSNB
@label SNBisISDNE
@comment Need IUSCP:SNB={snbloop};
@APPEND {filenameForISDNE} {snbloop}
@goto nextSNB
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@
@@@
@@@
CYCLED SUB-PROGRAMMS
@@@
@@@
@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@------------------------@@
@@ COMMAND + DATA to ZERO @@
@@------------------------@@
@label commdatazero
@set {command} = ""
@set {data}
= ""
@return
@@-------------------------------@@
@@ INSERT COMMAND + DATA to file @@
@@-------------------------------@@
@label AppendCommandToFile
@comment {command}{snbloop}{data};
@APPEND {filename} {command}+{snbloop}+{data}+";"
@return
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@
@@@
@@@ ANALYSING DIFINE SUBSCRIBER SERVICE CLASS DETAILED @@@
@@@
@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@LABEL SUBSCRIBE_SERVICES_DETAILED
@@--------------------@@
@@ ALARM CALL SERVICE @@
@@--------------------@@
@label ALSdata
@if {lineALSresult} = "no service" then return
@gosub commdatazero
@set {command} = "SUACI:SNB="
@set {TimeStartLine} = {lineALS} + 4
@set {TimeNextLine} = {TimeStartLine}
@set {timeN} = 1
@label loopALS
@copy {_lines[{TimeNextLine}]} {time[{timeN}]} 1 4
@copy {_lines[{TimeNextLine}]} {nd[{timeN}]} 10 2
@copy {_lines[{TimeNextLine}]} {pn[{timeN}]} 20 2
@label pn
@if {pn[{timeN}]} = "" then goto nd
@set {data} = ",DIN="+{time[{timeN}]}+",PN="+{pn[{timeN}]}
@gosub AppendCommandToFile
@goto looptimeN
@label nd
@if {nd[{timeN}]} = "" then goto time
@set {data} = ",DIN="+{time[{timeN}]}+",ND="+{nd[{timeN}]}
@gosub AppendCommandToFile
@goto looptimeN
@label time
@if {time[{timeN}]} = "" then return
@set {data} = ",DIN="+{time[{timeN}]}
@gosub AppendCommandToFile
@goto looptimeN
@label looptimeN
@inc {timeN}
@if {timeN} = 10 then end
@inc {TimeNextLine}
@goto loopALS
@label return
@return
@@------------------------------@@
@@ ABBREVIATED DIALLING SERVICE @@
@@------------------------------@@
@label ADIdata
@set {x} = 1
@if {lineADIresult} = "no service" then return
@gosub commdatazero
@set {DinStartLine} = {lineADI} + 2
@set {DinNextLine} = {DinStartLine}
@set {DinN} = 1
@find {blockidx} {_lines} "ABBREVIATED DIALLING SERVICE"
@foreach {blockidx} set {lineADI} = {_currline}
@find {blockidx} {_lines} "STORE SIZE IS.*"
@foreach {blockidx} set {StoreSizeIs} = {_currline}
@copy {_lines[{StoreSizeIs}]} {StoreSize} 16 2
@if {StoreSize} = " 5" then goto loopADI
@label posBP
@copy {_lines[{CcbDefinBP[{y}]}]} {DefinBP[{n}]} {PosDefinBP[{n}]} 2
@if {DefinBP[{n}]} = "" then goto commandSUCBC
@set {dataBP} = {dataBP} + "&" + {DefinBP[{n}]}
@inc {x}
@inc {n}
@set {PosDefinBP[{n}]} = {x} * 6 - 6
@if {PosDefinBP[{n}]} > 54 then gosub Y2X1
@goto posBP
@label commandSUCBC
@set {command} = "SUCBC:SNB="
@set {data}
= ",BP="+{dataBP}
@gosub AppendCommandToFile
@if {ActivCCB} = "YES" then gosub commandSUCBI
@return
@label commandSUCBI
@set {command} = "SUCBI:SNB="
@set {data}
= ",BP="+{ActivBP}
@gosub AppendCommandToFile
@return
@label Y2X1
@set {y} = 2
@set {x} = 1
@set {PosDefinBP[11]}=1
@return
@@------------------------@@
@@ DO NOT DISTURB SERVICE @@
@@------------------------@@
@label DDBdata
@if {lineDDBresult} = "no service" then return
@gosub commdatazero
@set {DdbActivLine} = {lineDDB} + 2
@copy {_lines[{DdbActivLine}]} {ActivDDB} 1 3
@if {ActivDDB} = "NO" then return
@set {command} = "SUCDI:SNB="
@set {data}
= ""
@gosub AppendCommandToFile
@return
@@----------------------------------------------@@
@@ CALL FORWARDING BUSY VARIABLE NUMBER SERVICE @@
@@----------------------------------------------@@
@label CFBVdata
@if {lineCFBVresult} = "no service" then return
@gosub commdatazero
@set {CfbvActivLine} = {lineCFBV} + 3
@set {CfbvDinLine}
= {lineCFBV} + 12
@copy {_lines[{CfbvActivLine}]} {ActivCFBV} 10 3
@copy {_lines[{CfbvDinLine}]} {DinCFBV} 1 20
@if {DinCFBV} <> "" then gosub commandSUDNCcfbv
@if {ActivCFBV} = "YES" then gosub commandSFSAIcfbv
@return
@label commandSUDNCcfbv
@set {command} = "SUDNC:SNB="
@set {data}
= ",SERVICE=CFBV,DIN="+{DinCFBV}
@gosub AppendCommandToFile
@gosub commdatazero
@return
@label commandSFSAIcfbv
@set {command} = "SFSAI:SNB="
@set {data}
= ",SERVICE=CFBV"
@gosub AppendCommandToFile
@gosub commdatazero
@return
@@--------------------------------------------------@@
@@ CALL FORWARDING NO REPLY VARIABLE NUMBER SERVICE @@
@@--------------------------------------------------@@
@label CFNRVdata
@if {lineCFNRVresult} = "no service" then return
@gosub commdatazero
@set {CfnrvActivLine} = {lineCFNRV} + 3
@set {CfnrvRtimeLine} = {lineCFNRV} + 9
@set {CfnrvDinLine} = {lineCFNRV} + 15
@copy {_lines[{CfnrvActivLine}]} {ActivCFNRV} 10 3
@copy {_lines[{CfnrvRtimeLine}]} {RtimeCFNRV} 1 2
@copy {_lines[{CfnrvDinLine}]} {DinCFNRV} 1 20
@if {DinCFBV} <> "" then gosub commandSUDNCcfnrv
@if {ActivCFNRV} = "YES" then gosub commandSFSAIcfnrv
@return
@label commandSFSAIcfnrv
@set {command} = "SFSAI:SNB="
@set {data}
= ",SERVICE=CFNRV,MISC=RTIME-" + {RtimeCFNRV}
@gosub AppendCommandToFile
@gosub commdatazero
@return
@label commandSUDNCcfnrv
@set {command} = "SUDNC:SNB="
@set {data}
= ",SERVICE=CFNRV,DIN="+{DinCFBV}
@gosub AppendCommandToFile
@gosub commdatazero
@return
@@-------------------------------------------------------@@
@@ CALL FORWARDING UNCONDITIONAL VARIABLE NUMBER SERVICE @@
@@-------------------------------------------------------@@
@label CFUVdata
@if {lineCFUVresult} = "no service" then return
@gosub commdatazero
@set {CfuvActivLine} = {lineCFUV} + 12
@set {CfuvDinLine} = {lineCFUV} + 12
@copy {_lines[{CfuvActivLine}]} {ActivCFUV} 1 3
@copy {_lines[{CfuvDinLine}]} {DinCFUV} 20 20
@if {DinCFUV} <> "" then gosub commandSUDNCcfuv
@if {ActivCFUV} = "YES" then gosub commandSFSAIcfuv
@return
@label commandSUDNCcfuv
@set {command} = "SUDNC:SNB="
@set {data}
= ",SERVICE=CFUV,DIN="+{DinCFUV}
@gosub AppendCommandToFile
@gosub commdatazero
@return
@label commandSFSAIcfuv
@set {command} = "SFSAI:SNB="
@set {data}
= ",SERVICE=CFUV"
@gosub AppendCommandToFile
@gosub commdatazero
@return
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@
@@@
@@@ Without Data Analysing @@@
@@@
@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@-----------------------------@@
@@ LAST NUMBER REPETITION DATA @@
@@-----------------------------@@
@label LNRdata
@return
@@---------------------@@
@@ THREE-PARTY SERVICE @@
@@---------------------@@
@label ENQdata
@return
@@-------------------------------------------------------@@
@@ CALLING LINE IDENTIFICATION PRESENTATION SERVICE DATA @@
@@-------------------------------------------------------@@
@label CLIPdata
@return
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@
@@ @@@@ @@
@@@@@
@@ @@@@@@@@
@@@ @@ @@@ @@@
@@ @@@@@@@@
@@ @@ @@@@ @@
@@
@@@ @ @ @@ @@@@ @@
@@ @@@@@@@@ @@
@@ @@@@ @@
@@ @@@@@@@@ @@@
@@ @@@ @@@
@@
@@ @@@@ @@
@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@