Thanks for the feedback, but unfortunately, there is still no joy. If I do this:
echo -n "database put FOO BAR 1" | socat STDIO
UNIX-CONNECT:/var/run/asterisk/asterisk.ctl
I get the following output on the command line:
pbx-75/2395/1.4.20.1
pbx-75 is the hostname, 2395 is the PID of the asterisk process, and 1.4.20.1
is the version of asterisk I am running. I also see this in the asterisk CLI:
-- Remote UNIX connection
-- Remote UNIX connection disconnected
But the database value did not update.
Thanks
FSD
> Date: Mon, 26 Jan 2009 18:31:30 -0800
> From: [email protected]
> To: [email protected]
> Subject: Re: [asterisk-users] Reading/Writing the Astdb
>
> On Mon, 26 Jan 2009, [email protected] 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 [email protected] Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
_________________________________________________________________
Windows Liveā¢: E-mail. Chat. Share. Get more ways to connect.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users