From 8aee3b6fe0a4aed796e2bd8950241fee79c22e42 Mon Sep 17 00:00:00 2001 From: andronache Date: Thu, 24 Jun 2021 08:33:50 +0300 Subject: [PATCH] Modified anisble script for pjsua --- data/ansible/calls/freeswitch/pjsua.yaml | 13 +++++++------ data/ansible/calls/kamailio/pjsua.yaml | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/data/ansible/calls/freeswitch/pjsua.yaml b/data/ansible/calls/freeswitch/pjsua.yaml index 21cbe5a8a..ae489c498 100644 --- a/data/ansible/calls/freeswitch/pjsua.yaml +++ b/data/ansible/calls/freeswitch/pjsua.yaml @@ -1,13 +1,13 @@ --- - name: Download PJSUA become: yes - shell: 'wget https://github.com/pjsip/pjproject/archive/2.10.tar.gz' + shell: 'sudo wget https://github.com/pjsip/pjproject/archive/refs/tags/2.9.tar.gz' args: chdir: '/tmp' - name: Unzip PJSUA become: yes - shell: 'tar -xvf 2.10.tar.gz' + shell: 'sudo tar -xvf 2.9.tar.gz' args: chdir: '/tmp' @@ -17,12 +17,13 @@ - name: Install PJSUA become: yes - shell: './configure && make dep && make && make install' + shell: 'sudo ./configure && make dep && make && make install' args: - chdir: '/tmp/pjproject-2.10' + chdir: '/tmp/pjproject-2.9' - name: Copy PJSUA into /usr/bin become: yes - shell: 'mv pjsua-x86_64-unknown-linux-gnu /usr/bin/pjsua' + shell: 'sudo mv pjsua-x86_64-unknown-linux-gnu /usr/bin/pjsua' args: - chdir: '/tmp/pjproject-2.10/pjsip-apps/bin' + chdir: '/tmp/pjproject-2.9/pjsip-apps/bin' + \ No newline at end of file diff --git a/data/ansible/calls/kamailio/pjsua.yaml b/data/ansible/calls/kamailio/pjsua.yaml index 2b360519a..ae489c498 100644 --- a/data/ansible/calls/kamailio/pjsua.yaml +++ b/data/ansible/calls/kamailio/pjsua.yaml @@ -1,13 +1,13 @@ --- - name: Download PJSUA become: yes - shell: 'sudo wget https://www.pjsip.org/release/2.9/pjproject-2.9.tar.bz2' + shell: 'sudo wget https://github.com/pjsip/pjproject/archive/refs/tags/2.9.tar.gz' args: chdir: '/tmp' - name: Unzip PJSUA become: yes - shell: 'sudo tar -xvf pjproject-2.9.tar.bz2' + shell: 'sudo tar -xvf 2.9.tar.gz' args: chdir: '/tmp' @@ -26,3 +26,4 @@ shell: 'sudo mv pjsua-x86_64-unknown-linux-gnu /usr/bin/pjsua' args: chdir: '/tmp/pjproject-2.9/pjsip-apps/bin' + \ No newline at end of file