From: Joe Atzberger Date: Tue, 11 May 2010 03:09:29 +0000 (+0000) Subject: Correct log message: Sip::MsgType::_initialize X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b398b624e74d87093dcedca902aa4c0e68093cf8;p=SIPServer.git Correct log message: Sip::MsgType::_initialize not Sip::MsgType:_initialize (one colon) --- diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 78d62d2..55555aa 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -327,17 +327,17 @@ sub _initialize { my ($fs, $fn, $fe); my $proto = $control_block->{protocol}->{$protocol_version}; - $self->{name} = $control_block->{name}; + $self->{name} = $control_block->{name}; $self->{handler} = $control_block->{handler}; $self->{fields} = {}; $self->{fixed_fields} = []; - syslog("LOG_DEBUG", "Sip::MsgType:_initialize('%s', '%s...')", - $self->{name}, substr($msg, 0, 20)); + syslog("LOG_DEBUG", "Sip::MsgType::_initialize('%s', '%s...')", $self->{name}, substr($msg,0,20)); + foreach my $field (@{$proto->{fields}}) { - $self->{fields}->{$field} = undef; + $self->{fields}->{$field} = undef; } syslog("LOG_DEBUG",