Send commands to unix socket


#1

I’m trying to send commands to Asterisk thru unix socket with netcat, it’s possible?

$ nc.openbsd -U /var/run/asterisk/asterisk.ctl
cc/435/11.25.3
dialplan reload

But nothing it’s return.


#2

I don’t know of anyone who has done such a thing. Provided you could make it do the same thing as “asterisk -r” then it could work, but what that is you would likely need to read the Asterisk code.


#3

Ok, I know.

It’s only if there are a guide to do this.

Thanks anyway.


#4

Oh, easy peasy!

Thanks again!