Hi all
with the help from Henning Westerholt, i install sip-router successfull
i just wonder there are 2 command
ser
sercmd
what is the difference between them
ser is the binary of the SIP proxy, the daemon
sercmd is an utility which can be used for provisioning and interaction
with the ser process
klaus
Thank you
Ha`
debian:/usr/local/etc/ser# ser -h
version: ser 2.1.0-dev23-make (i386/linux)
Usage: ser [options]
Options:
-f file Configuration file (default: /usr/local/etc/ser/ser.cfg)
-L path Modules search path (default:
/usr/local/lib/ser/modules:/usr/local/lib/ser/modules_s:/usr/local/lib/ser/modules_k)
-c Check configuration file for errors
-l address Listen on the specified address/interface (multiple -l
mean listening on more addresses). The address format is
[proto:]addr_lst[:port], where proto=udp|tcp|tls|sctp,
addr_lst= addr|(addr, addr_lst) and
addr= host|ip_address|interface_name.
E.g: -l locahost, -l udp:127.0.0.1:5080, -l eth0:5062,
-l "sctp:(eth0)", -l "(eth0, eth1,
127.0.0.1):5065".
The default behaviour is to listen on all the interfaces.
-n processes Number of child processes to fork per interface
(default: 8)
-r Use dns to check if is necessary to add a "received="
field to a via
-R Same as `-r` but use reverse dns;
(to use both use `-rR`)
-v Turn on "via:" host checking when forwarding replies
-d Debugging mode (multiple -d increase the level)
-D no 1..do not fork (almost) anyway, 2..do not daemonize creator
3..daemonize (default)
-E Log to stderr
-T Disable tcp
-N Number of tcp child processes (default: equal to `-n')
-W poll method
-V Version number
-h This help message
-b nr Maximum receive buffer size which will not be exceeded by
auto-probing procedure even if OS allows
-m nr Size of shared memory allocated in Megabytes
-w dir Change the working directory to "dir" (default:
"/")
-t dir Chroot to "dir"
-u uid Change uid
-g gid Change gid
-P file Create a pid file
-G file Create a pgid file
-O nr Script optimization level (debugging option)
debian:/usr/local/etc/ser# sercmd -h
version: sercmd 0.1
Usage: sercmd [options][-s address] [ cmd ]
Options:
-s address unix socket name or host name to send the commands on
-R name force reply socket name, for the unix datagram socket mode
-D dir create the reply socket in the directory <dir> if no reply
socket is forced (-R) and a unix datagram socket is selected
as the transport
-f format print the result using format. Format is a string containing
%v at the places where values read from the reply should be
substituted. To print '%v', escape it using '%': %%v.
-v Verbose
-V Version number
-h This help message
address:
[proto:]name[:port] where proto is one of tcp, udp, unixs or unixd
e.g.: tcp:localhost:2048 , unixs:/tmp/ser_ctl
cmd:
method [arg1 [arg2...]]
arg:
string or number; to force a number to be interpreted as string
prefix it by "s:", e.g. s:1
Examples:
sercmd -s unixs:/tmp/ser_unix system.listMethods
sercmd -f "pid: %v desc: %v\n" -s udp:localhost:2047 core.ps
sercmd ps # uses default ctl socket
sercmd # enters interactive mode on the default socket
sercmd -s tcp:localhost # interactive mode, default port
------------------------------------------------------------------------
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev