From aed809a44f206f8636a03a6bbd6f427118c09446 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 8 Oct 2013 16:01:27 -0400 Subject: [PATCH] Log and exit gracefully ILS re-init failure in mux handler Signed-off-by: Bill Erickson --- SIPServer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SIPServer.pm b/SIPServer.pm index 38a1f64..7b0e1a2 100644 --- a/SIPServer.pm +++ b/SIPServer.pm @@ -275,6 +275,11 @@ sub mux_input { # build the connection we deleted after logging in $self->{ils} = $active_connections{$conn_id}->{ils}->new($self->{institution}, $self->{account}); + if (!$self->{ils}) { + syslog('LOG_ERR', "Unable to build ILS module in mux child"); + exit(0); + } + # build the connection we deleted after logging in my $input = Sip::read_SIP_packet($str_fh); $input =~ s/[\r\n]+$//sm; # Strip off any trailing line ends -- 2.11.0