Class CallDetailRecord

    • Field Detail

      • startTime

        protected long startTime
      • endTime

        protected long endTime
      • callingPartyPublicNumber

        protected String callingPartyPublicNumber
      • calledPartyPublicNumber

        protected String calledPartyPublicNumber
      • redirectingNumber

        protected String redirectingNumber
      • terminationReason

        protected String terminationReason
    • Constructor Detail

      • CallDetailRecord

        public CallDetailRecord()
    • Method Detail

      • setStartTime

        public void setStartTime​(long time)
        Set the start time for the call
        Parameters:
        time - the start time of this call, in milliseconds since 1970/01/01.
      • setEndTime

        public void setEndTime​(long time)
        Set the end time for the call
        Parameters:
        time - the end time of this call, in milliseconds since 1970/01/01.
      • setServiceAccessType

        public void setServiceAccessType​(ServiceAccessType type)
        Set the calls service access type
        Parameters:
        type - the service access type
      • setCallingPartyPublicNumber

        public void setCallingPartyPublicNumber​(String s)
        Set the calling party's public address
        Parameters:
        s - the calling party's public number
      • setCalledPartyPublicNumber

        public void setCalledPartyPublicNumber​(String s)
        Set the called party's public address
        Parameters:
        s - the called party's public number
      • setRedirectingNumber

        public void setRedirectingNumber​(String s)
        Set the redirecting party's number if there was any redirection involved in this call
        Parameters:
        s - the redirecting number
      • setTerminationReason

        public void setTerminationReason​(String s)
        Set the reason for terminatin of the call
        Parameters:
        s - the termination reason for this call
      • getStartTime

        public long getStartTime()
        Get the calls start time
        Returns:
        the start time of this call, in milliseconds since 1970/01/01.
      • getEndTime

        public long getEndTime()
        Get the calls end time
        Returns:
        the end time of this call, in milliseconds since 1970/01/01.
      • getServiceAccessType

        public ServiceAccessType getServiceAccessType()
        Get the calls service access type
        Returns:
        the service access type for this call
      • getCallingPartyPublicNumber

        public String getCallingPartyPublicNumber()
        Get the calling party's public address
        Returns:
        the calling party's public number
      • getCalledPartyPublicNumber

        public String getCalledPartyPublicNumber()
        Get the called party's public address
        Returns:
        the called party's public number
      • getRedirectingNumber

        public String getRedirectingNumber()
        Get the redirecting number if any was involved in the call
        Returns:
        the redirecting number for any redirection involved in this call
      • getTerminationReason

        public String getTerminationReason()
        Get the termination reason for the call
        Returns:
        the termination reason for this call
      • toString

        public String toString()
        Format this CDR record as a string. The returned string is suitable for writing to a CDR file.
        Overrides:
        toString in class Object
        Returns:
        comma delimited string containing the CDR information