Re: Re: Re: [Serusers] ser_ctl: (111, 'Connection refused'): error

tzieleniewski tzieleniewski at o2.pl
Tue Jan 9 09:20:02 CET 2007


I was trying to use sercmd & ser_ctl commands and I was receiving the same error in both cases: 111, connection refused. But after I change the fork parameter in ser.cfg file to yes, everything started to work. so there was the problem:) Is it so that when everser is started in the no fork mode it only listens on the localhost udp port??


> Oh, yes, I understand. There are many ;( serxxxctl utilities which are poorly
> documented. Ser_ctl is one of them. Sorry.
> 
> For ser_ctl (ser_user, ser_domain, ...) utility working  you need to:
> 
>  * ser's xml-rpc module loaded and ser configured to listen on TCP.
>    (your ser is not listen on TCP)
> 
> or
> 
>  * ser and ser_ctl configured to use fifo:
>    for serctl, e.g.: 
> 	serctl -j -J /tmp/ser_fifo ps
>    or without command line switches - set next variables in config file:
> 	USE_FIFO = True
> 	FIFO = "/tmp/ser_fifo"
> 
> You not need to load binrpc module, which is for sercdm utility.
> 
> -- hallik
> 
> On Mon, Jan 08, 2007 at 05:26:35PM +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 at lists.iptel.org
> > > > http://lists.iptel.org/mailman/listinfo/serusers
> 
> 
> 
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> 
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list