[Freeswitch-svn] [commit] r10177 - freeswitch/trunk/scripts/trace
Freeswitch SVN
brian at freeswitch.org
Tue Oct 28 06:22:32 EDT 2008
Author: brian
Date: Tue Oct 28 06:22:31 2008
New Revision: 10177
Modified:
freeswitch/trunk/scripts/trace/sipgrep
Log:
FSSCRIPTS-7
Modified: freeswitch/trunk/scripts/trace/sipgrep
==============================================================================
--- freeswitch/trunk/scripts/trace/sipgrep (original)
+++ freeswitch/trunk/scripts/trace/sipgrep Tue Oct 28 06:22:31 2008
@@ -23,7 +23,7 @@
$colorsmethods="INVITE|REGISTER|BYE|ACK|CANCEL|OPTIONS|REFER|NOTIFY|MESSAGE|INFO|PRACK|UPDATE";
%options=();
-getopts("f:t:l:ahVp:TcCnArm:",\%options);
+getopts("f:t:l:ahVp:d:TcCnArm:",\%options);
$version=<<END;
Sipgrep version 0.2
@@ -32,7 +32,7 @@
END
$usage=<<END;
-Usage: sipgrep <-h> <-f number> <-t number> <-a> <-l file> <-V> <-p> <-T> <-n|-c>
+Usage: sipgrep <-h> <-f number> <-t number> <-a> <-l file> <-V> <-p> <-d device> <-T> <-n|-c>
-h Displays this help message.
-A Match anything.
@@ -42,6 +42,7 @@
-a Search the ARG from '-f' and '-t' parameters in To and From fields.
-l ARG Debug file name.
-V Displays the current version.
+ -d Device for ngrep.
-p Port for ngrep.
-T Parameter for ngrep. Indicating the delta between packet matches.
-C Allow colors in debug file.
@@ -68,6 +69,9 @@
#TimeStamp
$ngrep_flags .= sprintf(" %s", (defined $options{T}) ? "-T" : "-t" );
+#Device
+$ngrep_flags .= sprintf(" -d %s", (defined $options{d}) ? $options{d} : "eth0" );
+
#Port
$ngrep_flags .= sprintf(" port %d", (defined $options{p}) ? $options{p} : "5060" );
More information about the Freeswitch-svn
mailing list