Documentation
¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) Dial(ip string, host string, number string, headers map[string]string) error
- func (c *Client) LocalIP() string
- func (c *Client) Record(w io.WriteCloser)
- func (c *Client) RemoteHeaders() []sip.Header
- func (c *Client) SendAudio(path string) error
- func (c *Client) SendDTMF(digits string) error
- func (c *Client) SendNotify(eventReq *sip.Request, notifyStatus string) error
- func (c *Client) SendSignal(ctx context.Context, n int, val int) error
- func (c *Client) SendSilence(ctx context.Context) error
- func (c *Client) WaitSignals(ctx context.Context, vals []int, w io.WriteCloser) error
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Record ¶
func (c *Client) Record(w io.WriteCloser)
func (*Client) RemoteHeaders ¶
func (*Client) SendNotify ¶
func (*Client) SendSignal ¶
SendSignal generate an audio signal with a given value. It repeats the signal n times, each frame containing one signal. If n <= 0, it will send the signal until the context is cancelled.
func (*Client) WaitSignals ¶
WaitSignals waits for an audio frame to contain all signals.
Click to show internal directories.
Click to hide internal directories.