mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 05:56:12 +00:00
FSSCRIPTS-7
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10177 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
df111ecff1
commit
d0d28568fe
@ -23,7 +23,7 @@ $ngrep_flags="-l -d eth1"; # Flag for Ngrep
|
|||||||
$colorsmethods="INVITE|REGISTER|BYE|ACK|CANCEL|OPTIONS|REFER|NOTIFY|MESSAGE|INFO|PRACK|UPDATE";
|
$colorsmethods="INVITE|REGISTER|BYE|ACK|CANCEL|OPTIONS|REFER|NOTIFY|MESSAGE|INFO|PRACK|UPDATE";
|
||||||
|
|
||||||
%options=();
|
%options=();
|
||||||
getopts("f:t:l:ahVp:TcCnArm:",\%options);
|
getopts("f:t:l:ahVp:d:TcCnArm:",\%options);
|
||||||
|
|
||||||
$version=<<END;
|
$version=<<END;
|
||||||
Sipgrep version 0.2
|
Sipgrep version 0.2
|
||||||
@ -32,7 +32,7 @@ Sipgrep version 0.2
|
|||||||
END
|
END
|
||||||
|
|
||||||
$usage=<<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.
|
-h Displays this help message.
|
||||||
-A Match anything.
|
-A Match anything.
|
||||||
@ -42,6 +42,7 @@ Usage: sipgrep <-h> <-f number> <-t number> <-a> <-l file> <-V> <-p> <-T> <-n|-c
|
|||||||
-a Search the ARG from '-f' and '-t' parameters in To and From fields.
|
-a Search the ARG from '-f' and '-t' parameters in To and From fields.
|
||||||
-l ARG Debug file name.
|
-l ARG Debug file name.
|
||||||
-V Displays the current version.
|
-V Displays the current version.
|
||||||
|
-d Device for ngrep.
|
||||||
-p Port for ngrep.
|
-p Port for ngrep.
|
||||||
-T Parameter for ngrep. Indicating the delta between packet matches.
|
-T Parameter for ngrep. Indicating the delta between packet matches.
|
||||||
-C Allow colors in debug file.
|
-C Allow colors in debug file.
|
||||||
@ -68,6 +69,9 @@ if((!defined $options{f} && !defined $options{t} && !defined $options{c} && !def
|
|||||||
#TimeStamp
|
#TimeStamp
|
||||||
$ngrep_flags .= sprintf(" %s", (defined $options{T}) ? "-T" : "-t" );
|
$ngrep_flags .= sprintf(" %s", (defined $options{T}) ? "-T" : "-t" );
|
||||||
|
|
||||||
|
#Device
|
||||||
|
$ngrep_flags .= sprintf(" -d %s", (defined $options{d}) ? $options{d} : "eth0" );
|
||||||
|
|
||||||
#Port
|
#Port
|
||||||
$ngrep_flags .= sprintf(" port %d", (defined $options{p}) ? $options{p} : "5060" );
|
$ngrep_flags .= sprintf(" port %d", (defined $options{p}) ? $options{p} : "5060" );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user