[asterisk-users] Asterisk -rx, how expensive is it? Should you avoid "spamming" it?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Apr 27 12:56:38 CDT 2014


On Fri, Apr 25, 2014 at 11:48:42AM +0100, A J Stiles wrote:
> On Thursday 24 Apr 2014, Mikael Fredin wrote:
> > I will look into netcat as well, thank you
> 
> There's not much to look into, really!  It's just a command-line tool for 
> connecting STDIN and STDOUT to a network socket.
> 
> $ echo -e "WIBBLE\nWIBBLE\nWIBBLE" | nc somehost.co.uk 3245
> 
> will send
> WIBBLE
> WIBBLE
> WIBBLE
> to port 3245 of host somehost.co.uk , and display any response coming back on 
> STDOUT.  It really is that simple!
> 
> Another example:
> 
> $ echo -e "USER fred\nPASS b00bies\nQUIT" | nc pop3.myisp.co.uk 110
> 
> will quickly login to your POP3 server and then logout without retrieving any 
> messages; this can be useful if you need to make a POP3 connection before you 
> can send mail using SMTP.

Which is a bit irrelevant if you want to connect to Asterisk through the
unix-domain socket [/var]/run/asterisk/asterisk.ctl .

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-users mailing list