FreeSWITCH及VOIP,Openser,电话机器人等产品中文技术资讯、交流、沟通、培训、咨询、服务一体化网络。QQ群:293697898
event socket libaray 是FreeSwitch的通信调用接口库,通过它可以很方便的配置后,通过自己的程序控制FreeSwitch相关行为,如监听,如IVR等。
视频:
Event Socket Library quick starter
Introduction
The Event Socket Library, or ESL, is a library that aims to ease controlling FreeSWITCH from external applications, that can be written in any language and run in any operating system. It's written in C and has bindings for many langu
系统图如下:
采用Redis作为消息对接,把FreeSWITCH与CRM或其它应用接口间进行消息互通。
中间件下载地址,含windows,linux
/ GPL许可 上海宁卫信息技术有限公司李浩 lihao@nway.com.cn /
package nway_fs_oubound_ctl
import (
"errors"
"fmt"
"github.com/fiorix/go-eventsocket/eventsocket"
"time"
)
//bool结果为是否为终止符,检查一个输入按键
func CheckADtmfEvent(c *eventsocket.Connectio
About
The current up-to-date list of events can be found in src/switch_event.c in a char array called EVENT_NAMES and is summarized here.
Click here to expand Table of Contents
Event fields
Below is an explanation of each event field.
Core-UUID
```c
ESL_DECLARE(esl_status_t) esl_send(esl_handle_t handle, const char cmd) { const char *e = cmd + strlen(cmd) -1;
if (!handle || !handle->connected || handle->sock == ESL_SOCK_INVALID) {
return ESL_FAIL;
}
esl_log(ESL_LOG_DEBUG, "SEND\n%s\n", cmd);
if (send(handle->sock, cmd, strl
Installation
In the FreeSWITCH source directory change to libs/esl and run:
make pymod
make pymod-install
This should install the ESL module into your python site-packages folder. If for some reason you want to manually install it or keep it locally you still must run the
Overview
Assuming PHP support for ESL was installed it is relatively simple to include the ESL Library and perform interaction with FreeSWITCH. It can be done by connecting to a running FreeSWITCH as well as having FreeSWITCH connecting to a socket application as needed. This is the same potent
Java Connection Options There are at least three options for using Java to connect to the FreeSWITCH Event Socket.
esl.jar (freeswitch core)
License: Same as FreeSWITCH
Available: esl.jar can be built as part of FreeSWITCH code base
Features:
Automatically generated by SWIG fro
Introduction
GoESL is a very simple and straight forward Go package designed to interact with FreeSWITCH ESL. GoESL supports both client and server. Server is used to bind and listen for incoming FreeSWITCH messages where client is used for sending API commands. GoESL package contains few helpe