[Serusers] Quick simple question about serweb.
Dana Olson
rickaster at gmail.com
Wed Mar 16 18:38:03 CET 2005
You could do this with a simple CGI page:
(assume you put this in /thttp/ and started the server like so: thttpd
-c *.cgi -d /thttp/ -u root)
#!/bin/bash
export SIP_DOMAIN=MY_DOMAIN
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
echo content-type: text/html
echo
echo "<h1>Force Out SIP Users</h1>"
echo
if [ "$QUERY_STRING" != "" ]; then
echo "Removing $QUERY_STRING...<br><pre>"
serctl ul rm $QUERY_STRING
echo "</pre>"
fi
echo
echo "Click the RLS link beside the username that you wish to
release.<br><br><hr>"
echo
echo y | serctl ul show | grep "Contact " | awk -F\' '{ print $2 }' |
awk -F"sip:" '{ print "<a href=\"?" $2 "\">[RLS]</a> " $2 "<br>" }'
echo
echo "<hr>"
You need to have root permissions for FIFO, blah blah.
Hope that helps.
--
Dana
On Wed, 16 Mar 2005 13:27:10 -0400, Ricardo Martinez
<rmartinez at redvoiss.net> wrote:
> Hello.
> I'm not familiar with serweb. I have a couple of questions
> regarding to it.
> - Can i use serweb to show the location table?. (the same as the
> serctl ul show)?
> - Can i remove users from the location table?
>
> Thanks
>
> Ricardo Martinez.-
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list