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

Michal Matyska michal at iptel.org
Mon Jan 8 23:30:42 CET 2007


I did copy&paste from one of my testing scripts I have on disk .... as
it contained the create_via (which is not neccesary now) it was designed
for the older xml-rpc way of handling. 

You can safely use the code from the CVS ser.cfg example, it's kept up
to date.

Michal

On Mon, 2007-01-08 at 19:55 +0100, =?UTF-8?Q? tzieleniewski ?= wrote:
> I have something like this    
>         if ((method=="POST" || method=="GET") & src_ip==127.0.0.1) {
>                 if (msg:len >= 8192) {
>                         sl_send_reply("513", "Request to big");
>                         drop;
>                 }
>                 dispatch_rpc();
>                 drop;
>         }
> taken from the latest cvs etc/ser.cfg file.
> Is this rewriteuri(...) required? Does it imply that sip:xmlrpc.. is somehow reserved?
> 
> 
> > 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 at 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 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