Code Monkey home page Code Monkey logo

ansible-role-fsmrf's People

Contributors

davehorton avatar manum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-role-fsmrf's Issues

mod_audio_fork does not compile

Using fs v1.10.5, when mod_audio_fork is present in the apps dir, I get this error when trying to build FS:

mod_audio_fork.c: In function ‘start_capture’:
mod_audio_fork.c:69:18: error: variable ‘samples_per_second’ set but not used [-Werror=unused-but-set-variable]
   69 |         uint32_t samples_per_second;
      |                  ^~~~~~~~~~~~~~~~~~

How to install

Hi there

I'm new to Freeswitch and have been playing around with it recently. I saw your repository https://github.com/davehorton/drachtio-freeswitch-modules and wanted to try it out, which lead me to this repository.

How would I install this? I have never used ansible before.

I did a bit of googling and here is what I tried.

I have a clean install of Debian 10.
I installed ansible as per below:

sudo apt update
sudo apt install ansible -y

I saw you posted this playbook on this issue (#6), which appears to be more current than the one on the readme:

---
- hosts: all
  become: yes
  vars_prompt:
    - name: "build_with_extra"
      prompt: "Include the extra modules (mod_aws_transcribe, mod_google_transcribe, mod_google_tts, mod_dialogflow)?"
      private: no
      default: false
    - name: "cloud_provider"
      prompt: "Cloud provider: aws, gcp, azure, digital_ocean"
      private: no
      default: none

  roles:
    - ansible-role-fsmrf

I created a file with the above content called install.yml in the root directory of where I extracted the files to, and tried the following command (found online for running a playbook locally)

ansible-playbook -c local -i localhost, install.yml

But I got the following error:

ERROR! the role 'ansible-role-fsmrf' was not found in /root/ansible-role-fsmrf-master/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/root/ansible-role-fsmrf-master

The error appears to have been in '/root/ansible-role-fsmrf-master/install.yml': line 15, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - ansible-role-fsmrf
      ^ here

I noticed there is no roles folder in the repository. Should this file be in a specific folder, is there another file I need to create, or am I way off?

Any guidance would be appreciated.

Install Fails

Hello,

Please note that I have tried to run your playbook, however, the installation fails on a clean deployment of Debian 11 as shown below. I tried updating Autoconf to version 2.7.1, but that generated an error while building libfvad. Any suggestions?

ERROR
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "./bootstrap.sh && ./configure && make -j 4 && make install", "delta": "0:00:01.796610", "end": "2023-07-09 17:16:35.885725", "msg": "non-zero return code", "rc": 127, "start": "2023-07-09 17:16:34.089115", "stderr": "mkdir: cannot create directory ‘config’: File exists\nconfigure.ac:21: error: Autoconf version 2.71 or higher is required\nconfigure.ac:21: the top level\nautom4te: /usr/bin/m4 failed with exit status: 63\naclocal: error: /usr/bin/autom4te failed with exit status: 63\nautoreconf: aclocal failed with exit status: 63\n/bin/sh: 1: ./configure: not found", "stderr_lines": ["mkdir: cannot create directory ‘config’: File exists", "configure.ac:21: error: Autoconf version 2.71 or higher is required", "configure.ac:21: the top level", "autom4te: /usr/bin/m4 failed with exit status: 63", "aclocal: error: /usr/bin/autom4te failed with exit status: 63", "autoreconf: aclocal failed with exit status: 63", "/bin/sh: 1: ./configure: not found"], "stdout": "", "stdout_lines": []}

PLAY RECAP **************************************************************************************************************************************************************************
localhost :ok=16changed=11 unreachable=0failed=1 skipped=0 rescued=0 ignored=0

ERROR! couldn't resolve module/action 'patch'

Hi,

Hope you are doing well.
I am trying use drachtio-fsmrf module including the extra modules. But an error appear when i run ansible playbook, as i mage shown below.

ERROR! couldn't resolve module/action 'patch'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/Users/mohamaddenialhaq/Documents/All about Drachtio/ansible-role-fsmrf/tasks/main.yml': line 92, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: patch switch_rtp.c to disable the flushing of rtp packets feature
    ^ here

Kindy need your advice.

Thank you

Issue with latest ansible scripts

From the following checkin a lot of files were removed but the yaml tasks were not updated 139cc8e

From grpc.yml

  • name: apply patches for grpc
    patch:
    remote_src: no
    src: "{{ item.src }}"
    dest: "{{ item.dest }}"
    loop:
    • {src: "configure.ac.grpc.patch", dest: "{{freeswitch_sources_path}}/configure.ac"}
    • {src: "Makefile.am.grpc.patch", dest: "{{freeswitch_sources_path}}/Makefile.am"}
    • {src: "modules.conf.in.grpc.patch", dest: "{{freeswitch_sources_path}}/build/modules.conf.in"}

None of the grpc.patch files are there as a result the playbook does not work

The extra modules are not being installed

The extra modules are not being installed with this version of the ansible-role-fsmrf.

During the playbook run all looks fine:

TASK [ansible-role-fsmrf : include_tasks] **************************************
included: /etc/ansible/roles/ansible-role-fsmrf/tasks/extra.yml for freeswitch-mrf-02

TASK [ansible-role-fsmrf : copy modules into place] ****************************
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//src/mod/applications/', u'src': u'/usr/local/src/drachtio-freeswitch-modules/modules/mod_google_transcribe/'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//src/mod/applications/', u'src': u'/usr/local/src/drachtio-freeswitch-modules/modules/mod_google_tts/'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//src/mod/applications/', u'src': u'/usr/local/src/drachtio-freeswitch-modules/modules/mod_dialogflow/'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//src/mod/applications/', u'src': u'/usr/local/src/drachtio-freeswitch-modules/modules/mod_aws_transcribe/'})

TASK [ansible-role-fsmrf : copy Makefile.am, configure.ac etc into place] ******
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//configure.ac', u'src': u'configure.ac.extra'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//Makefile.am', u'src': u'Makefile.am.extra'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//build/modules.conf.in', u'src': u'modules.conf.in.extra'})
changed: [freeswitch-mrf-02] => (item={u'dest': u'/usr/local/src/freeswitch//conf/vanilla/autoload_configs/modules.conf.xml', u'src': u'modules.conf.vanilla.xml.extra'})

However, upon the installation completion the freeswitch log reports the errors during the test call:

7a5ae09c-05c0-11eb-914e-074ba808c07a 2020-10-03 17:36:22.180645 [DEBUG] switch_ivr.c:632 sofia/drachtio_mrf/[email protected]:5060 Command Execute [depth=1] speak(google_tts|en-GB-Wavenet-A|Hi there! Let's play a game of telephone: you say something and I will repeat back what I heard. Go ahead..)
7a5ae09c-05c0-11eb-914e-074ba808c07a EXECUTE [depth=1] sofia/drachtio_mrf/[email protected]:5060 speak(google_tts|en-GB-Wavenet-A|Hi there! Let's play a game of telephone: you say something and I will repeat back what I heard. Go ahead..)
2020-10-03 17:36:22.180645 [ERR] switch_core_speech.c:62 Invalid speech module [google_tts]!
7a5ae09c-05c0-11eb-914e-074ba808c07a 2020-10-03 17:36:22.180645 [ERR] switch_ivr_play_say.c:3006 Invalid TTS module google_tts[en-GB-Wavenet-A]!

Freeswitch Service not starting

Hello the ansible script ran well on Debian buster (10). No errors:

PLAY RECAP
localhost : ok=53 changed=32 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0

But when starting the Freeswitch service it throw this error:

freeswitch.service - freeswitch
Loaded: loaded (/etc/systemd/system/freeswitch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-03-30 19:33:22 UTC; 4s ago
Process: 28303 ExecStart=/usr/local/freeswitch//bin/freeswitch -nc -nonat (code=exited, status=0/SUCCESS)
Main PID: 28305 (code=exited, status=255/EXCEPTION)

Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Service RestartSec=100ms expired, scheduling restart.
Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 5.
Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: Stopped freeswitch.
Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Start request repeated too quickly.
Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Failed with result 'exit-code'.
Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: Failed to start freeswitch.

any idea? Thanks

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.