diff --git a/ulog_parser.pl b/ulog_parser.pl index 6dbfa9bf..e4c04941 100755 --- a/ulog_parser.pl +++ b/ulog_parser.pl @@ -61,7 +61,7 @@ open($log, "<$filename") or die "Couldn't open kamailio log, $!"; while($line = <$log>) { - my ($pid, $mode, $route, $msgid, $msgid_t, $pid_t, $json, $msg, $pjson, $callid, $method); + my ($mode, $route, $msgid, $msgid_t, $json, $msg, $pjson, $callid, $method); # Jun 25 14:52:16 spce proxy[11248]: DEBUG: debugger [debugger_api.c:427]: dbg_cfg_dump(): msg out:{ if(($msg) = ($line =~ m/.+msg out:{(.+)}$/)) { @@ -70,12 +70,13 @@ while($line = <$log>) $msg =~ s/#015#012/\n/g; push($data->{'sip_out'}, $msg); $line = <$log>; + #print substr($line, 34, 25)."\n"; if(!$line) { $line = '' } }while(($msg) = ($line =~ m/.+msg out:{(.+)}$/)); #print "msg_out\n"; } - if(($pid, $mode, $route, $msgid, $method) = ($line =~ m/.+proxy\[(\d+)\]: DEBUG: