serctl (note the missing underscore) was the only tool for ser < 0.9.x
ser 0.10 introduced xmlrpc interface (basically the dispatch_rpc in the
script calls the function) and ser_ctl family of tools was introduced
(ser_rpc just for the XML-RPC call, ser_user, ser_domain, .....
specialized (the name suggests what they do), ser_ctl as the shell
around all of them. They are written in python.
Due to the fact of XML parsing, etc. the binary protocol was
re-introduced. You need to load the ctl module, set the protocol,
address, port) and use sercmd as cli.
All methods which are callable via XML-RPC are visible via sercmd, it is
just protocol between ser and controller. So if you have configured both
was you can use ser_rpc and sercmd interchangeable.
For the methods available use:
sercmd system.listMethods
Michal
P.S. Please keep always the list in To/Cc to follow the thread. Somebody
else might be interested as well.
On Mon, 2007-01-08 at 20:01 +0100, =?UTF-8?Q? tzieleniewski ?= wrote:
Just to make sure:)
So sercmd is a tool used to send command directly so through ser unix socket and rpc
calls are entrily handled by xmlrpc module after dispatch_rpc() method??
> The ctl module serves the sercmd (utils/sercmd).
>
> If you want to use ser_ctl then you have to support it in the script
> file like this:
>
> if (method=="POST" || method=="GET") {
> # create_via(); shouldn't be required with the latest CVS source
> rewriteuri("sip:xmlrpc@127.0.0.1:5060");
> dispatch_rpc();
> drop;
> }
>
> Michal
>
> On Mon, 2007-01-08 at 17:26 +0100, =?UTF-8?Q? tzieleniewski ?= wrote:
> > Results in the attached files
> >
> > tomasz
> >
> > > Plese, try 'netstat -tupan' and 'ser_ctl -Gg ps' and post
results. -- hallik
> > >
> > > On Mon, Jan 08, 2007 at 04:41:59PM +0100, =?UTF-8?Q? tzieleniewski ?=
wrote:
> > > > Hi !
> > > >
> > > > I've set up the ser 0.10.99, basic functionality works - ser
registers users
> > > > and establishes the media sessions correctly. Now I tried to use the
new serctl
> > > > tool: version 0.3.17. When I try to invoke for instance #ser_ctl ps
while ser is
> > > > running I get the following:
> > > > ser_ctl: (111, 'Connection refused'): error
> > > >
> > > > my ser.cfg file part:
> > > > port=5060
> > > > ...
> > > > modparam("ctl", "binrpc",
"unixs:/tmp/ser_ctl")
> > > > modparam("ctl", "fifo",
"fifo:/tmp/ser_fifo")
> > > > modparam("ctl", "mode", 0666)
> > > >
> > > > and my serctl.conf and serctl/config.py files lines:
> > > > ..
> > > > SER_URI = 'http://localhost:5060/'
> > > > ...
> > > >
> > > > Please point me what do I need to do to make it work.
> > > > Best
> > > > Tomasz
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Serusers mailing list
> > > > Serusers(a)lists.iptel.org
> > > >
http://lists.iptel.org/mailman/listinfo/serusers
> > _______________________________________________
> > Serusers mailing list
> > Serusers(a)lists.iptel.org
> >
http://lists.iptel.org/mailman/listinfo/serusers
>