SmartMIB Small Solution:

VOIP Call Accounting History Report


(SM-SmallSol023)

Solution’s SOSL Based management process script:

 

The solution defines the following main module:

 

MainCallHistoryAccounting:

This is the main module that controls and instantiates the ‘CallHistoryTable’ and the ‘CallHistoryAcct’ modules.

 

 

The details of the Main modules and the transient Service modules are provided below:

 


 

MODULE MainCallHistoryAccounting ();

DESCRIPTION "VOIP Call information and accounting";

BEGIN

 

            POLL-FREQ

            {

                        MODULE-CALL CallHistoryTable ();

                        MODULE-CALL CallHistoryAcct ();

                        WAIT (6000);

            };

END

 


 

MODULE  CallHistoryTable();

DESCRIPTION "Call history table module";

BEGIN

 

          ALL-DEV BY DEV                  

          {                 

                   SET-INDEX CallHistoryTable

                       (cvVoIPCallHistoryConnectionId [cCallHistoryIndex, INT]);

 

                   WITH-INDEX CallHistoryTable

                   {

                            DEFINE cCallHistoryCallOrigin      INT;

 

                            cCallHistoryCallOrigin = POLL (cCallHistoryCallOrigin);

 

                            IF (cCallHistoryCallOrigin ==  1) THEN

 

                                    STORE-INDEX “DialedCallsList”;

 

                                    #################################

                                    #  ELSEIF  (cCallHistoryCallOrigin == 2) THEN

                                    #          STORE-INDEX “ReceivedCallsList”;

                                    #  ELSE

                                    #          STORE-INDEX “CallBacksList”;

                                    #################################

                        ENDIF;

                   };

           };

END

 


 

MODULE  CallHistoryAcct();

DESCRIPTION "Call history acct module";

BEGIN

 

          ALL-DEV BY DEV                  

          {                 

                        WITH-INDEX DialedCallsList

                        {

                                    POLL (   cvVoIPCallHistoryRemoteIPAddress;

                                                cvVoIPCallHistoryRemoteUDPPort;

                                                cCallHistoryPeerAddress;

                                                cCallHistoryDisconnectText;

                                                cCallHistoryConnectTime;

                                                cCallHistoryDisconnectTime;

                                                callHistoryLogicalIfIndex     );

 

                                    DEFINE cCallHistoryDisconnectTime DB INT;

                                    DEFINE cCallHistoryDisconnectTime DB INT;

                                    DEFINE cCallHistoryDurationTime DB INT;

 

            cCallHistoryDurationTime = cCallHistoryDisconnectTime – cCallHistoryDisconnectTime;

                                   

                                    DEFINE callHistoryLogicalIfIndex  DB INT;

                                    DEFINE ifDescr DB INT;

 

                                    POLL (DEV, ifDescr, callHistoryLogicalIfIndex);

 

                                    #########################################

                                    # ifDescrVar database variable is defined specifically to 

                                    # allow the user to control the reports Dial Source option 

                                    # if the Interface description is to be replaced with the

                                    # knows number of the calling User’s name or even the

                                    # dial number..

                                    #########################################

 

                                    DEFINE ifDescrVar          DB INT;

                                    ifDescrVar = ifDescr;

                        };

 

                        ###############################################

                        #### CLEARING THE HISTORY LIST OF CALLS AFTER POLLING

                        #### WAS COMPLETED

                        #

                        #          SET (ciscoCallHistoryTableMaxLength       0);

                        #          SET (ciscoCallHistoryRetainTimer                         0);

                        #

                        #          SET (ciscoCallHistoryTableMaxLength       100);

                        #          SET (ciscoCallHistoryRetainTimer                         15);

                        ###############################################

 

           };

END

 


VOIP Call Accounting History Report Index Page

Previous Page Page 3/5 Next Page


[Small Solutions], [Professional Solutions], [Security Solutions], [Development Solutions]

[Home], [About], [Solutions Center], [NMS Market], [Products & Services],
[Management Technology], [Technical Support], [Contact us], [Site Map]