Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 22, 2024
1 parent e9548fe commit d242277
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
{
"identifier": "switch-services-staging",
"environment": "staging",
"branch": "develop",
"branch": "handle_freeswitch_gw_timeouts",
"friendly_image_tag": "beta",
"image_tag": "stag-${{ github.sha }}"
},
Expand Down
2 changes: 1 addition & 1 deletion components/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ WORKDIR $APP_ROOT

RUN apk update && \
apk upgrade && \
apk add --update --no-cache build-base pcre-dev && \
apk add --update --no-cache build-base pcre-dev gcompat && \
gem install bundler

COPY --from=build-image $APP_ROOT $APP_ROOT
Expand Down
2 changes: 1 addition & 1 deletion components/app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
2.5.18
2.5.19
2 changes: 1 addition & 1 deletion components/gateway/public_gateway/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ failure_route[GW_FAILOVER] {

# failure detection with redirect to next available trunk
if (t_check_status("(408)|([56][0-9][0-9])")) {
xlog("L_ERR", "$T_reply_code_lb_response_error_$avp(lb_dest)");
xlog("L_CRIT", "$T_reply_code-lb-response-error-$avp(lb_dest)");

if ( lb_next() ) {
t_on_failure("GW_FAILOVER");
Expand Down
1 change: 1 addition & 0 deletions components/services/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def self.process(event:, context:)
logger = Logger.new($stdout)
logger.info("## Processing Event")
logger.info(event)
logger.info(context)

new(event:, context:).process
rescue Exception => e
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/modules/public_gateway/health_checks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ resource "aws_lambda_permission" "this" {
resource "aws_cloudwatch_log_subscription_filter" "this" {
name = var.identifier
log_group_name = aws_cloudwatch_log_group.this.name
filter_pattern = "logtype test"
filter_pattern = "{ ($.level = \"CRITICAL\" ) || ( $.level = \"ALERT\" ) }"
destination_arn = var.services_function.this.arn
}

0 comments on commit d242277

Please sign in to comment.