summary

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallRemainCount

type CallRemainCount struct {
	State       bool // calls remaining count is set
	CountRemain int  // calls remaing count
}

type CallRemainDuration

type CallRemainDuration struct {
	State      bool          // call remaining duration is set
	TimeRemain time.Duration // call remaining duration
}

type SMSRemain

type SMSRemain struct {
	State       bool // sms remaining count is set
	CountRemain int  // sms remaining count
}

type Status

type Status struct {
	Line                  int                // line number
	GSMModuleStatus       bool               // gsm module status. false -down, true - up
	SimCard               bool               // sim status. false - NoSim, true -detected
	GSMRegistration       bool               // gsm connection status. false - gsm is down, true - gsm is up
	VoIPRegistration      bool               // voip connection status. false - line not connected to voip, true - line connected to voip
	VoIPStatus            string             // current line state.
	SMSServerLogin        bool               // sms server connected
	ACD                   time.Duration      // average call duration
	ASR                   int                // average call success ratio
	TotalCallDuration     time.Duration      // total line calls duration
	ConnectedCallsCount   int                // successfull calls count
	TotalCallsCount       int                // total calls count
	CDRStartTime          time.Time          // CallDetailedRecoding start time
	RSSI                  int                // RSSI dbm
	Carrier               string             // Carrier name
	BCCH                  interface{}        // not recognized
	IdleTime              time.Duration      // idle time duration since last call
	CallRemainingCount    CallRemainCount    // remaing of calls count
	CallRemainingDuration CallRemainDuration // remaining of calls duration
	SMSRemaining          SMSRemain          // remaing of SMS count
}

func ReadSummary

func ReadSummary(lines int, body string) ([]Status, error)

ReadSummary - parse xml body of status page

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL