diff --git a/components/app/lib/call_platform/fake_client.rb b/components/app/lib/call_platform/fake_client.rb index 9d0ec873a..d29b159d8 100644 --- a/components/app/lib/call_platform/fake_client.rb +++ b/components/app/lib/call_platform/fake_client.rb @@ -8,7 +8,6 @@ def create_call(params) twiml = case params.fetch(:to) when "1111" then "Hello World!" - when "2222" then "" else "https://demo.twilio.com/docs/classic.mp3" end diff --git a/components/app/spec/lib/rayo/command/audio_fork/start_spec.rb b/components/app/spec/lib/rayo/command/audio_fork/start_spec.rb deleted file mode 100644 index c06363985..000000000 --- a/components/app/spec/lib/rayo/command/audio_fork/start_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require "spec_helper" - -module Rayo - module Command - module AudioFork - RSpec.describe Start do - def parse_stanza(xml) - Nokogiri::XML.parse(xml, nil, nil, Nokogiri::XML::ParseOptions::NOBLANKS) - end - - describe "#to_xml" do - it "serializes to Rayo XML" do - command = Start.new( - uuid: "call-id", - url: "wss://mystream.ngrok.io/audiostream", - mix_type: "mono", - sampling_rate: "16k" - ) - - xml = Hash.from_xml(command.to_xml) - - expect(xml.fetch("exec")).to include( - "api" => "uuid_audio_fork", - "args" => "call-id start wss://mystream.ngrok.io/audiostream mono 16k" - ) - end - end - end - end - end -end diff --git a/components/freeswitch/Dockerfile b/components/freeswitch/Dockerfile index 3994a0e27..85ac5f768 100644 --- a/components/freeswitch/Dockerfile +++ b/components/freeswitch/Dockerfile @@ -1,19 +1,3 @@ -FROM drachtio/drachtio-freeswitch-base as freeswitch-build - -FROM public.ecr.aws/debian/debian:bookworm-slim AS deps-build - -RUN apt-get update && apt-get -y --quiet --allow-remove-essential upgrade && \ - apt-get install -y --quiet --no-install-recommends \ - lsof gcc g++ make cmake build-essential git autoconf automake \ - libssl-dev pkg-config ca-certificates - -RUN export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib && \ - cd /usr/local/src && \ - git clone https://github.com/warmcat/libwebsockets.git -b v4.3.2 && \ - cd libwebsockets && \ - mkdir -p /usr/local/src/libwebsockets/install/ && \ - mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && make && make install - FROM public.ecr.aws/aws-cli/aws-cli as aws-cli FROM public.ecr.aws/debian/debian:bookworm-slim @@ -26,7 +10,7 @@ RUN apt-get update && apt-get install --no-install-recommends -yq gnupg2 wget ca echo "deb [signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] https://freeswitch.signalwire.com/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list && \ echo "deb-src [signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] https://freeswitch.signalwire.com/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list && \ apt-get update --allow-releaseinfo-change && \ - apt-get -y install --no-install-recommends libc-dev groff pkg-config less netcat-traditional ffmpeg \ + apt-get -y install --no-install-recommends netcat-traditional ffmpeg \ freeswitch \ freeswitch-mod-console \ freeswitch-mod-event-socket \ @@ -61,9 +45,6 @@ RUN chown -R freeswitch:daemon /etc/freeswitch && \ COPY --link --from=aws-cli /usr/local/aws-cli/ /usr/local/aws-cli/ COPY --link --from=aws-cli /usr/local/bin/ /usr/local/bin -COPY --link --from=freeswitch-build /usr/local/freeswitch/mod/mod_audio_fork.* /usr/lib/freeswitch/mod/ -COPY --link --from=deps-build /usr/local/lib/ /usr/local/lib/ -RUN ldconfig # Install the entrypoint script COPY --link docker-entrypoint.sh /docker-entrypoint.sh diff --git a/components/freeswitch/conf/autoload_configs/modules.conf.xml b/components/freeswitch/conf/autoload_configs/modules.conf.xml index 9e1c9465b..827c7da21 100644 --- a/components/freeswitch/conf/autoload_configs/modules.conf.xml +++ b/components/freeswitch/conf/autoload_configs/modules.conf.xml @@ -19,7 +19,6 @@ - diff --git a/components/testing/scenarios/uac_pcap.xml b/components/testing/scenarios/uac_pcap.xml deleted file mode 100644 index 315313a35..000000000 --- a/components/testing/scenarios/uac_pcap.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - ;tag=[pid]SIPpTag09[call_number] - To: [service] - Call-ID: [call_id] - CSeq: 1 INVITE - Contact: sip:+85512234567@[local_ip]:[local_port] - Max-Forwards: 70 - Subject: Performance Test - Content-Type: application/sdp - Content-Length: [len] - - v=0 - o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] - s=- - c=IN IP[local_ip_type] [local_ip] - t=0 0 - m=audio [media_port] RTP/AVP 8 101 - a=rtpmap:8 PCMA/8000 - a=rtpmap:101 telephone-event/8000 - a=fmtp:101 0-11,16 - - ]]> - - - - - - - - - - - - - - - - - - ;tag=[pid]SIPpTag09[call_number] - To: [service] [peer_tag_param] - Call-ID: [call_id] - CSeq: 1 ACK - Contact: sip:+85512234567@[local_ip]:[local_port] - Max-Forwards: 70 - Subject: Performance Test - Content-Length: 0 - - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - ;tag=[pid]SIPpTag09[call_number] - To: [service] [peer_tag_param] - Call-ID: [call_id] - CSeq: 2 BYE - Contact: sip:+85512234567@[local_ip]:[local_port] - Max-Forwards: 70 - Subject: Performance Test - Content-Length: 0 - - ]]> - - - - - - - - - - - - diff --git a/components/testing/tests/public_gateway/connect_stream_test.sh b/components/testing/tests/public_gateway/connect_stream_test.sh deleted file mode 100755 index bedd5b8d4..000000000 --- a/components/testing/tests/public_gateway/connect_stream_test.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -e - -current_dir=$(dirname "$(readlink -f "$0")") -source $current_dir/support/test_helpers.sh -source $current_dir/../support/test_helpers.sh - -scenario=$current_dir/../../scenarios/uac_pcap.xml - -reset_db -create_load_balancer_entry "gw" "5060" -create_address_entry $(hostname -i) -reload_opensips_tables - -rm -f uac_*_messages.log -sipp -sf $scenario public_gateway:5060 -key username "+855715100850" -s 2222 -m 1 -trace_msg > /dev/null - -reset_db - -# Assert correct IP in SDP -if ! assert_in_file "uac_*_messages.log" "c=IN IP4 13.250.230.15"; then - exit 1 -fi