[asterisk-users] Reading/Writing the Astdb

Steve Edwards asterisk.org at sedwards.com
Mon Jan 26 20:31:30 CST 2009


On Mon, 26 Jan 2009, cbbs70a at hotmail.com wrote:

>   That's a really good idea, however, I am having problems getting it to work. I tried the following:
>
> echo -n "asterisk -rx \"database put FOO BAR 1\" " | socat - /var/run/asterisk/asterisk.ctl
>
> and
>
> echo -n "asterisk -rx \"database put FOO BAR 1\" " | socat - UNIX-CONNECT: /var/run/asterisk/asterisk.ctl

echo -n "show channels"\
 	| sudo socat STDIO UNIX-CONNECT:/var/run/asterisk.ctl

and

echo -n "show channels"\
 	| sudo socat STDIO /var/run/asterisk.ctl

work for me.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list