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.-
Ricardo Martinez 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?
A user which logs on to the system can see all its registered locations and can remove them (or add now ones).
Try it out yourself. Subscribe at iptel.org and login to your account.
regards, klaus
Thanks
Ricardo Martinez.-
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers