Versions in this module Expand all Collapse all v1 v1.0.1 Jul 12, 2023 Changes in this version + const Forward + const Pause + const Restart + const Reverse + const Stop + func Connect(ctx context.Context, client Client) (bool, error) + func GetUUID() (string, error) + func Login(ctx context.Context, client Client, user, secret, events, actionID string) error + func Logoff(ctx context.Context, client Client, actionID string) error + func Ping(ctx context.Context, client Client, actionID string) error + type AGIControl string + type AOCData struct + AOCBillingID string + Channel string + ChannelPrefix string + ChargeType string + ChargingAssociationID string + ChargingAssociationNumber string + ChargingAssociationPlan string + CurrencyAmount string + CurrencyMultiplier string + CurrencyName string + MsgType string + TotalType string + UnitAmount string + UnitType string + type CallData struct + Channel string + Context string + Exten string + ExtraChannel string + ExtraContext string + ExtraExten string + ExtraPriority string + Priority string + type Client interface + Close func(ctx context.Context) error + Connected func() bool + Recv func(ctx context.Context) (string, error) + Send func(message string) error + type ExtensionData struct + Application string + ApplicationData string + Context string + Extension string + Priority string + Replace string + type KhompSMSData struct + Confirmation bool + Destination string + Device string + Message string + type MessageData struct + Base64Body string + Body string + From string + To string + Variable string + type OriginateData struct + Account string + Application string + Async string + CallerID string + Channel string + ChannelID string + Codecs string + Context string + Data string + EarlyMedia string + Exten string + OtherChannelID string + Priority int + Timeout int + Variable []string + type QueueData struct + Event string + Interface string + MemberName string + Members string + Message string + Parameters string + Paused string + Penalty string + Queue string + Reason string + Rules string + StateInterface string + UniqueID string + type Response map[string][]string + func AGI(ctx context.Context, client Client, ...) (Response, error) + func AOCMessage(ctx context.Context, client Client, actionID string, aocData AOCData) (Response, error) + func AbsoluteTimeout(ctx context.Context, client Client, actionID, channel string, timeout int) (Response, error) + func AgentLogoff(ctx context.Context, client Client, actionID, agent string, soft bool) (Response, error) + func Agents(ctx context.Context, client Client, actionID string) ([]Response, error) + func Atxfer(ctx context.Context, client Client, actionID, channel, exten, context string) (Response, error) + func BlindTransfer(ctx context.Context, client Client, ...) (Response, error) + func Bridge(ctx context.Context, client Client, actionID, channel1, channel2 string, ...) (Response, error) + func BridgeDestroy(ctx context.Context, client Client, actionID, bridgeUniqueID string) (Response, error) + func BridgeInfo(ctx context.Context, client Client, actionID, bridgeUniqueID string) (Response, error) + func BridgeKick(ctx context.Context, client Client, actionID, bridgeUniqueID, channel string) (Response, error) + func BridgeList(ctx context.Context, client Client, actionID, bridgeType string) (Response, error) + func BridgeTechnologyList(ctx context.Context, client Client, actionID string) ([]Response, error) + func BridgeTechnologySuspend(ctx context.Context, client Client, actionID, bridgeTechnology string) (Response, error) + func BridgeTechnologyUnsuspend(ctx context.Context, client Client, actionID, bridgeTechnology string) (Response, error) + func CancelAtxfer(ctx context.Context, client Client, actionID, channel string) (Response, error) + func Challenge(ctx context.Context, client Client, actionID string) (Response, error) + func ChangeMonitor(ctx context.Context, client Client, actionID, channel, file string) (Response, error) + func Command(ctx context.Context, client Client, actionID, cmd string) (Response, error) + func ConfbridgeKick(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeList(ctx context.Context, client Client, actionID string, conference string) ([]Response, error) + func ConfbridgeListRooms(ctx context.Context, client Client, actionID string) ([]Response, error) + func ConfbridgeLock(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeMute(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeSetSingleVideoSrc(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeStartRecord(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeStopRecord(ctx context.Context, client Client, actionID string, conference string) (Response, error) + func ConfbridgeUnlock(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ConfbridgeUnmute(ctx context.Context, client Client, actionID string, conference string, ...) (Response, error) + func ControlPlayback(ctx context.Context, client Client, actionID, channel string, ...) (Response, error) + func CoreSettings(ctx context.Context, client Client, actionID string) (Response, error) + func CoreShowChannels(ctx context.Context, client Client, actionID string) ([]Response, error) + func CoreStatus(ctx context.Context, client Client, actionID string) (Response, error) + func CreateConfig(ctx context.Context, client Client, actionID, filename string) (Response, error) + func DAHDIDNDoff(ctx context.Context, client Client, actionID, channel string) (Response, error) + func DAHDIDNDon(ctx context.Context, client Client, actionID, channel string) (Response, error) + func DAHDIDialOffhook(ctx context.Context, client Client, actionID, channel, number string) (Response, error) + func DAHDIHangup(ctx context.Context, client Client, actionID, channel string) (Response, error) + func DAHDIRestart(ctx context.Context, client Client, actionID string) (Response, error) + func DAHDIShowChannels(ctx context.Context, client Client, actionID, channel string) ([]Response, error) + func DAHDITransfer(ctx context.Context, client Client, actionID, channel string) (Response, error) + func DBDel(ctx context.Context, client Client, actionID, family, key string) (Response, error) + func DBDelTree(ctx context.Context, client Client, actionID, family, key string) (Response, error) + func DBGet(ctx context.Context, client Client, actionID, family, key string) (Response, error) + func DBPut(ctx context.Context, client Client, actionID, family, key, val string) (Response, error) + func DataGet(ctx context.Context, client Client, actionID, path, search, filter string) (Response, error) + func DeviceStateList(ctx context.Context, client Client, actionID string) ([]Response, error) + func DialplanExtensionAdd(ctx context.Context, client Client, actionID string, extension ExtensionData) (Response, error) + func DialplanExtensionRemove(ctx context.Context, client Client, actionID string, extension ExtensionData) (Response, error) + func EventFlow(ctx context.Context, client Client, actionID, eventMask string) (Response, error) + func Events(ctx context.Context, client Client) (Response, error) + func ExtensionState(ctx context.Context, client Client, actionID, exten, context string) (Response, error) + func ExtensionStateList(ctx context.Context, client Client, actionID string) ([]Response, error) + func FAXSession(ctx context.Context, client Client, actionID, sessionNumber string) (Response, error) + func FAXSessions(ctx context.Context, client Client, actionID string) ([]Response, error) + func FAXStats(ctx context.Context, client Client, actionID string) (Response, error) + func Filter(ctx context.Context, client Client, actionID, operation, filter string) (Response, error) + func GetConfig(ctx context.Context, client Client, ...) (Response, error) + func GetConfigJSON(ctx context.Context, client Client, ...) (Response, error) + func Getvar(ctx context.Context, client Client, actionID, channel, variable string) (Response, error) + func Hangup(ctx context.Context, client Client, actionID, channel, cause string) (Response, error) + func IAXnetstats(ctx context.Context, client Client, actionID string) ([]Response, error) + func IAXpeerlist(ctx context.Context, client Client, actionID string) ([]Response, error) + func IAXpeers(ctx context.Context, client Client, actionID string) ([]Response, error) + func IAXregistry(ctx context.Context, client Client, actionID string) ([]Response, error) + func JabberSend(ctx context.Context, client Client, actionID, jabber, jid, message string) (Response, error) + func KSendSMS(ctx context.Context, client Client, actionID string, data KhompSMSData) (Response, error) + func ListCategories(ctx context.Context, client Client, actionID, filename string) (Response, error) + func ListCommands(ctx context.Context, client Client, actionID string) (Response, error) + func LocalOptimizeAway(ctx context.Context, client Client, actionID, channel string) (Response, error) + func LoggerRotate(ctx context.Context, client Client, actionID string) (Response, error) + func MWIDelete(ctx context.Context, client Client, actionID, mailbox string) (Response, error) + func MWIGet(ctx context.Context, client Client, actionID, mailbox string) (Response, error) + func MWIUpdate(ctx context.Context, client Client, ...) (Response, error) + func MailboxCount(ctx context.Context, client Client, actionID, mailbox string) (Response, error) + func MailboxStatus(ctx context.Context, client Client, actionID, mailbox string) (Response, error) + func MeetmeList(ctx context.Context, client Client, actionID, conference string) ([]Response, error) + func MeetmeListRooms(ctx context.Context, client Client, actionID string) ([]Response, error) + func MeetmeMute(ctx context.Context, client Client, actionID, meetme, usernum string) (Response, error) + func MeetmeUnMute(ctx context.Context, client Client, actionID, meetme, usernum string) (Response, error) + func MessageSend(ctx context.Context, client Client, actionID string, message MessageData) (Response, error) + func MixMonitor(ctx context.Context, client Client, ...) (Response, error) + func MixMonitorMute(ctx context.Context, client Client, actionID, channel, direction string, ...) (Response, error) + func ModuleCheck(ctx context.Context, client Client, actionID, module string) (Response, error) + func ModuleLoad(ctx context.Context, client Client, actionID, module, loadType string) (Response, error) + func Monitor(ctx context.Context, client Client, actionID, channel, file, format string, ...) (Response, error) + func MuteAudio(ctx context.Context, client Client, actionID, channel, direction string, ...) (Response, error) + func Originate(ctx context.Context, client Client, actionID string, originate OriginateData) (Response, error) + func PJSIPNotify(ctx context.Context, client Client, actionID, endpoint, uri, variable string) (Response, error) + func PJSIPQualify(ctx context.Context, client Client, actionID, endpoint string) (Response, error) + func PJSIPRegister(ctx context.Context, client Client, actionID, registration string) (Response, error) + func PJSIPShowEndpoint(ctx context.Context, client Client, actionID, endpoint string) ([]Response, error) + func PJSIPShowEndpoints(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowRegistrationInboundContactStatuses(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowRegistrationsInbound(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowRegistrationsOutbound(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowResourceLists(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowSubscriptionsInbound(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPShowSubscriptionsOutbound(ctx context.Context, client Client, actionID string) ([]Response, error) + func PJSIPUnregister(ctx context.Context, client Client, actionID, registration string) (Response, error) + func PRIDebugFileSet(ctx context.Context, client Client, actionID, filename string) (Response, error) + func PRIDebugFileUnset(ctx context.Context, client Client, actionID string) (Response, error) + func PRIDebugSet(ctx context.Context, client Client, actionID, span, level string) (Response, error) + func PRIShowSpans(ctx context.Context, client Client, actionID, span string) ([]Response, error) + func Park(ctx context.Context, client Client, actionID, channel1, channel2 string, ...) (Response, error) + func ParkedCalls(ctx context.Context, client Client, actionID string) ([]Response, error) + func Parkinglots(ctx context.Context, client Client, actionID string) ([]Response, error) + func PauseMonitor(ctx context.Context, client Client, actionID, channel string) (Response, error) + func PlayDTMF(ctx context.Context, client Client, actionID, channel, digit string, ...) (Response, error) + func PresenceState(ctx context.Context, client Client, actionID, provider string) (Response, error) + func PresenceStateList(ctx context.Context, client Client, actionID string) ([]Response, error) + func QueueAdd(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueueLog(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueueMemberRingInUse(ctx context.Context, client Client, actionID, iface, ringInUse, queue string) (Response, error) + func QueuePause(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueuePenalty(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueueReload(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueueRemove(ctx context.Context, client Client, actionID string, queueData QueueData) (Response, error) + func QueueReset(ctx context.Context, client Client, actionID, queue string) (Response, error) + func QueueRule(ctx context.Context, client Client, actionID, rule string) (Response, error) + func QueueStatus(ctx context.Context, client Client, actionID, queue, member string) (Response, error) + func QueueStatuses(ctx context.Context, client Client, actionID, queue string) ([]Response, error) + func QueueSummary(ctx context.Context, client Client, actionID, queue string) ([]Response, error) + func Redirect(ctx context.Context, client Client, actionID string, call CallData) (Response, error) + func Reload(ctx context.Context, client Client, actionID, module string) (Response, error) + func SIPNotify(ctx context.Context, client Client, actionID string, channel string, ...) (Response, error) + func SIPPeerStatus(ctx context.Context, client Client, actionID string, peer string) ([]Response, error) + func SIPPeers(ctx context.Context, client Client, actionID string) ([]Response, error) + func SIPQualifyPeer(ctx context.Context, client Client, actionID string, peer string) (Response, error) + func SIPShowPeer(ctx context.Context, client Client, actionID string, peer string) (Response, error) + func SIPShowRegistry(ctx context.Context, client Client, actionID string) ([]Response, error) + func SKINNYdevices(ctx context.Context, client Client, actionID string) ([]Response, error) + func SKINNYlines(ctx context.Context, client Client, actionID string) ([]Response, error) + func SKINNYshowdevice(ctx context.Context, client Client, actionID, device string) (Response, error) + func SKINNYshowline(ctx context.Context, client Client, actionID, line string) (Response, error) + func SendText(ctx context.Context, client Client, actionID, channel, msg string) (Response, error) + func Setvar(ctx context.Context, client Client, actionID, channel, variable, value string) (Response, error) + func ShowDialPlan(ctx context.Context, client Client, actionID, extension, context string) ([]Response, error) + func SorceryMemoryCacheExpire(ctx context.Context, client Client, actionID, cache string) (Response, error) + func SorceryMemoryCacheExpireObject(ctx context.Context, client Client, actionID, cache, object string) (Response, error) + func SorceryMemoryCachePopulate(ctx context.Context, client Client, actionID, cache string) (Response, error) + func SorceryMemoryCacheStale(ctx context.Context, client Client, actionID, cache string) (Response, error) + func SorceryMemoryCacheStaleObject(ctx context.Context, client Client, actionID, cache, object string, ...) (Response, error) + func Status(ctx context.Context, client Client, actionID, channel, variables string) (Response, error) + func StopMixMonitor(ctx context.Context, client Client, actionID, channel, mixMonitorID string) (Response, error) + func StopMonitor(ctx context.Context, client Client, actionID, channel string) (Response, error) + func UnpauseMonitor(ctx context.Context, client Client, actionID, channel string) (Response, error) + func UpdateConfig(ctx context.Context, client Client, actionID, srcFilename, dstFilename string, ...) (Response, error) + func VoicemailRefresh(ctx context.Context, client Client, actionID, context, mailbox string) (Response, error) + func VoicemailUsersList(ctx context.Context, client Client, actionID string) ([]Response, error) + func (r Response) Get(key string) string + type Socket struct + func NewSocket(ctx context.Context, address string) (*Socket, error) + func (s *Socket) Close(ctx context.Context) error + func (s *Socket) Connected() bool + func (s *Socket) Recv(ctx context.Context) (string, error) + func (s *Socket) Send(message string) error + type UpdateConfigAction struct + Action string + Category string + Value string + Var string