[Asterisk-Users] asterisk console from xinetd?

Mark Turner mark at kram.org
Wed Sep 8 04:54:50 MST 2004


I'm trying to set up xinetd to run an asterisk console on a tcp port.

So far I've added a file in /etc/xinetd.d/ like:

	service actl
	{
	        disable         = no
	        socket_type     = stream
	        protocol        = tcp
	        port            = 1234
	        wait            = no
	        user            = root
	        server          = /usr/sbin/asterisk
	        server_args     = -r -n
	        log_on_failure  += USERID
	}

After adding actl to /etc/services and restarting xinetd it reports
one new service.  When connecting to port 1234 on 127.0.0.1 (iptables
preventing remote hosts from accessing this service) I see the CLI prompt
repeating over and over with no line breaks.

Any idea how to prevent the looping please?

Thanks,

Mark.

p.s. Why am I doing this?  We have an application that already knows
how to talk to other things via TCP sockets and we'd like to make it
talk to Asterisk too.  The network between the two servers is trusted
so sending stuff clear-text isn't a problem.




More information about the asterisk-users mailing list