Skip to content

striveh/freeswitch-esl-all

 
 

Repository files navigation

FreeSWITCH ESL ALL

Jdk Version License Maven Central

目标

1、支持连接FreeSWITCH大规模集群
2、更易于集成使用
4、与spring boot 2.2.x深度整合,提供 starter
5、可动态配置

模块说明

freeswitch esl 客户端(详细信息,移步至子模块)
基于 freeswitch-esl 客户端示例(详细信息,移步至子模块)
基于 Spring boot 2.2.x, freeswitch-esl 客户端(详细信息,移步至子模块)
基于 freeswitch-esl-spring-boot-starter 客户端示例(详细信息,移步至子模块)

特性说明

获取实例 
    InboundClient.getInstance()
    SpringBoot容器 : @Autowired inboundClient

可动态配置添加或删除远端地址
    添加远端地址
        a、inboundClient.option().addServerOption(new ServerOption(host, port));
        b、InboundClient.getInstance().option().addServerOption(new ServerOption(host, port));
    
    删除远端地址
        ServerOption serverOption = inboundClient.option().serverOptions().get(0);
        
        a、inboundClient.option().removeServerOption(serverOption);
        b、InboundClient.getInstance().option().removeServerOption(serverOption);
        
服务端连接监听器 ServerConnectionListener
    inboundClient.option().serverConnectionListener(serverConnectionListenerImpl);
        void onOpened(ServerOption serverOption);
        void onClosed(ServerOption serverOption);

License

Apache License, Version 2.0 Copyright (C) Apache Software Foundation

About

freeswitch event socket base on netty 4 and has some new features.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%