<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Tzafrir;<br> That's a really good idea, however, I am having problems getting it to work. I tried the following:<br><br>echo -n "asterisk -rx \"database put FOO BAR 1\" " | socat - /var/run/asterisk/asterisk.ctl<br><br>and<br><br>echo -n "asterisk -rx \"database put FOO BAR 1\" " | socat - UNIX-CONNECT: /var/run/asterisk/asterisk.ctl<br><br>both look like there was a connection to asterisk on the CLI, but no update. What am I missing? BTW; the difference between connecting to asterisk by doing a asterisk -rx "<cmd>" and doing it this way was > 500ms the first way and<br>7ms the second. Awesome.<br><br><br><br><br>> Date: Sat, 24 Jan 2009 23:23:40 +0200<br>> From: tzafrir.cohen@xorcom.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] Reading/Writing the Astdb<br>> <br>> On Sat, Jan 24, 2009 at 11:00:58AM -0500, cbbs70a@hotmail.com wrote:<br>> > <br>> > All;<br>> > I have a question regarding the Astdb. When reading more than a few values, it can<br>> > take quite a while to grab several<br>> > values in the astdb using say, asterisk -rx "database show" ><br>> > output.txt and work with that and then set a new value such as asterisk<br>> > -rx "database put $key $value". The whole process can take over 1<br>> > second for EACH ENTRY which adds up for more than a few keys.<br>> <br>> Either do that through the manager interface, or (if you want to batch<br>> commands) send them directly over the unix-domain socket asterisk.ctl .<br>> <br>> -- <br>> Tzafrir Cohen<br>> icq#16849755 jabber:tzafrir.cohen@xorcom.com<br>> +972-50-7952406 mailto:tzafrir.cohen@xorcom.com<br>> http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir<br>> <br>> _______________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br><br /><hr />Windows Live™: E-mail. Chat. Share. Get more ways to connect. <a href='http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_012009' target='_new'>See how it works.</a></body>
</html>