go-eventsocket

module
v0.0.0-...-da5ddbe Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: BSD-3-Clause

README

eventsocket

FreeSWITCH Event Socket library for the Go programming language.

It supports both inbound and outbound event socket connections, acting either as a client connecting to FreeSWITCH or as a server accepting connections from FreeSWITCH to control calls.

This code has not been tested in production and is considered alpha. Use at your own risk.

Installing

Make sure $GOPATH is set, and use the following command to install:

go get github.com/fiorix/go-eventsocket/eventsocket

The library is currently a single file, so feel free to drop into any project without bothering to install.

Usage

There are simple and clear examples of usage under the examples directory. A client that connects to FreeSWITCH and originate a call, pointing to an Event Socket server, which answers the call and instructs FreeSWITCH to play an audio file.

Directories

Path Synopsis
FreeSWITCH Event Socket library for the Go programming language.
FreeSWITCH Event Socket library for the Go programming language.
examples
client
Event Socket client that connects to FreeSWITCH to originate a new call.
Event Socket client that connects to FreeSWITCH to originate a new call.
server
Server that accepts connections from FreeSWITCH and controls incoming calls.
Server that accepts connections from FreeSWITCH and controls incoming calls.

Jump to

Keyboard shortcuts

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