Code Monkey home page Code Monkey logo

ansible-role-fsmrf's Introduction

ansible-role-fsmrf Build Status

This is an ansible role for building a Freeswitch v1.8 that is configured to work with the drachtio-fsmrf module. The mod_audio_fork module is built and installed as part of this role.

Additionally, by setting the build_with_grpc variable to true, these additional modules will be built and included:

Freeswitch modules

Because this is designed for use as a media server via drachtio-fsmrf, a very limited list of modules are built and installed:

  <load module="mod_console"/>
  <load module="mod_audio_fork"/>
  <load module="mod_logfile"/>
  <load module="mod_cdr_csv"/>
  <load module="mod_event_socket"/>
  <load module="mod_sofia"/>
  <load module="mod_rtc"/>
  <load module="mod_commands"/>
  <load module="mod_conference"/>
  <load module="mod_dptools"/>
  <load module="mod_dialplan_xml"/>
  <load module="mod_httapi"/>
  <load module="mod_spandsp"/>
  <load module="mod_g723_1"/>
  <load module="mod_g729"/>
  <load module="mod_amr"/>
  <load module="mod_opus"/>
  <load module="mod_sndfile"/>
  <load module="mod_native_file"/>
  <load module="mod_local_stream"/>
  <load module="mod_tone_stream"/>
  <load module="mod_say_en"/>

Role variables

Available variables are listed below, along with default values (see defaults/main.yml):

build_with_grpc: false

set to true if you want to build with the google grpc library and then build related google modules as described above

grpc_version: v1.20.0

The version of grpc to build

freeswitch_sources_path: /usr/local/src/freeswitch/

path to the FreeSwitch source directory

freeswitch_path: /usr/local/freeswitch/

path to the FreeSwitch install directory

freeswitch_secret: ClueCon 

freeswitch secret

freeswitch_sip_port: 5080
freeswitch_dtls_sip_port: 5081

sip ports to listen on

freeswitch_socket_acl:
  - 127.0.0.1/32

add any addresses (in cidr format) that should be allowed to connect to event socket

freeswitch_modules_template: ../templates/modules.conf 

modules.conf file used for FreeSwitch compilation

freeswitch_configure_command: configure --with-lws=yes

freeswitch configure command - you can add option

freeswitch_log_conf_template: ../templates/logfile.conf.xml

freeswitch log configuration file template

Example playbook

---
- hosts: all
  become: yes
  vars_prompt:
    - name: "build_with_grpc"
      prompt: "Include the grpc modules (mod_google_transcribe, mod_google_tts, mod_dialogflow)?"
      private: no
      default: false
  roles:
    - ansible-role-fsmrf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.