SmartMIB Small Solution:

VOIP Call Traffic Statistics History Report


(SM-SmallSol021)

Solution’s SOSL Based management process script:

 

The solution defines the following main module:

 

MainCallHistoryTraffic:

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

 

 

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

 


 

MODULE MainCallHistoryTraffic ();

DESCRIPTION "VOIP Call information and accounting";

BEGIN

 

            POLL-FREQ

            {

                        MODULE-CALL CallHistoryTable ();

                        MODULE-CALL cCallHistoryTraffic();

                        WAIT (9000);

            };

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  cCallHistoryTraffic();

DESCRIPTION "call history table module";

BEGIN

 

            ALL-DEV BY DEV                  

            {                 

                        WITH-INDEX cCallHistoryTable

                        {

                                    POLL (   cCallHistoryTransmitPackets;

                                                cCallHistoryTransmitBytes;

                                                cCallHistoryReceivePackets;

                                                cCallHistoryReceiveBytes;

                                                cCallHistoryPeerAddress;

                                                callHistoryLogicalIfIndex);

 

                                    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 ifDescrVariable   DB INT;

                                    ifDescrVariable = 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 Traffic Statistics 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]