1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
.\" sipwitch - script control and manage GNU sipwitch server.
.\" Copyright (c) 2009 David Sugar <dyfet@gnutelephony.org>
.\"
.\" This manual page is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 3 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.\"
.\" This manual page is written especially for Debian GNU/Linux.
.\"
.TH sipwitch "1" "January 2009" "GNU SIP Witch" "GNU Telephony"
.SH NAME
sipwitch \- script control and manage GNU sipwitch server.
.SH SYNOPSIS
.B sipwitch
.B command
.RI [ arguments... ]
.br
.SH DESCRIPTION
The sipwitch command allows one to interact with a running sipwitch daemon
instance on the current machine. This can be used to create management shell
scripts or to perform basic service operations, using the sipwitch fifo control
interface. Normally this command would be used only by root or someone in an
admin group that the sipwitch daemon is running under. If the sipwitch daemon
is started by an ordinary user, the command can be used by the same user to
control that daemon instance.
.PP
.TP
.B abort
terminate running daemon with core for debugging.
.TP
.BI activate " ext ipaddr"
register a static sip extension manually on a fixed address.
.TP
.B calls
list active call sessions on the server.
.TP
.B check
verify running daemon for deadlocks or other problems.
.TP
.BI concurrency " level"
set concurrency level of the daemon. See pthread_setconcurrency.
.TP
.TP
.B contact
return server contact address for autoconfig.
.TP
.BI digest " userid [realm [type]]"
compute a sip digest for the server realm.
.TP
.BI disable " conf-id..."
remove /etc/sipwitch.d configurations.
.TP
.B down
stop and shutdown the running sipwitch daemon.
.TP
.BI drop " user|callid"
drop specified calls either by a user or call id.
.TP
.B dump
dump server configuration to stdout.
.TP
.BI enable " conf-id..."
enable /etc/sipwitch.d configurations.
.TP
.B events
display server events as received.
.TP
.BI grant " group"
grants directory access to system group.
.TP
.BI history " [size]"
set size or dump recent error log history.
.TP
.BI ifdown " iface"
notify server interface went down.
.TP
.BI ifup " iface"
notify server interface came up.
.TP
.BI message " ext ``Text''"
send a short text message to a registered extension.
.TP
.B policy
print access policy list and peering (published) addresss.
.TP
.BI period " interval"
dump periodic stats for specified minute interval, often used for cron.
.TP
.B pstats
dump server periodic statistics. See ``stats''.
.TP
.B registry
dump all user agent registrations to stdout.
.TP
.BI realm " [new-realm [digest-type]]"
set or show the server realm.
.TP
.BI release " ext"
deactivate an extension registered with the daemon.
.TP
.B reload
load server configuration while live.
.TP
\fBrestart\fR
force server restart.
.TP
.B siplog
dump sip messages from when trace is enabled.
.TP
.B snapshot
create snapshot diagnostic file from daemon.
.TP
.BI state " id"
set daemon to specified state id.
.TP
.B stats
dump server call statistics.
.TP
.B status
server mapped call status list.
.TP
.BI trace " on|off|clear"
Set or clear server sip message tracing.
.TP
.B usercache
dump user cache.
.TP
.BI verbose " level"
set daemon error logging verbosity.
.SH "EXIT STATUS"
Normally exit status is 0 if the request was successfully processed by the
sipwitch service daemon. An exit status of 0x indicates an error in the
sipwitch utility, such as invalid argument parsing. An error of 1x indicates
some communication failure with the server, and a error of 2x is related to
errors on server processed requests.
.SH AUTHOR
.B sipwitch
was written by David Sugar <dyfet@gnutelephony.org>.
.SH "REPORTING BUGS"
Report bugs to sipwitch-devel@gnu.org.
.SH COPYRIGHT
Copyright \(co 2009 David Sugar, Tycho Softworks.
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
|