<div dir="auto">The Asterisk source has a tool to create the db <br><br><div data-smartmail="gmail_signature">Marcelo</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 6 Dec 2018, 19:44 Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thursday 06 December 2018 at 17:49:25, hw wrote:<br>
<br>
> On 12/05/2018 05:00 PM, Antony Stone wrote:<br>
> > On Wednesday 05 December 2018 at 15:31:38, hw wrote:<br>
> >> I don't see a table for that.<br>
> > <br>
> > You need to create that for yourself.<br>
> > <br>
> > Asterisk can write to database tables, but doesn't help you set them up,<br>
> > for reasons I can't comment on.<br>
> <br>
> How do I know what the schema needs to be? Does anybody have a scheme<br>
> for the queue_log table (and maybe others)?<br>
<br>
A Google search for "asterisk queue_log schema" gives results such as:<br>
<br>
<a href="http://work.mikeboylan.com/posts/2012/03/asterisk-queuelog-to-mysql.html" rel="noreferrer noreferrer" target="_blank">http://work.mikeboylan.com/posts/2012/03/asterisk-queuelog-to-mysql.html</a><br>
<br>
<a href="https://gist.github.com/melvinlee/f57da3080dff40f71631" rel="noreferrer noreferrer" target="_blank">https://gist.github.com/melvinlee/f57da3080dff40f71631</a><br>
<br>
<a href="https://stackoverflow.com/questions/30161384/asterisk-11-queue-log-to-mysql" rel="noreferrer noreferrer" target="_blank">https://stackoverflow.com/questions/30161384/asterisk-11-queue-log-to-mysql</a><br>
<br>
<a href="https://www.voip-info.org/asterisk-queuelog-on-mysql/" rel="noreferrer noreferrer" target="_blank">https://www.voip-info.org/asterisk-queuelog-on-mysql/</a><br>
<br>
> Do I get to see the queries that are being used to write this data,<br>
<br>
No.<br>
<br>
> or do I need to form them myself and enter them into some configuration file?<br>
<br>
No.<br>
<br>
> >> How dynamic are changes made in the database?<br>
> > <br>
> > If by "dynamic" you mean "quickly used" then the answer is "immediately".<br>
> <br>
> There's a note in some configuration file saying that dynamic extensions<br>
> are deprecated and suggesting to use func_odbc instead. This func_odbc<br>
> seems to be the most awkward way anyone could think of for this, though.<br>
<br>
I use func_odbc in plenty of situations, but I'm not familiar with it being <br>
recommended for managing queues.<br>
<br>
Without seeing the "note in some configuration file" that you refer to, though, <br>
I don't know what to say about this.<br>
<br>
> >> For example, if I want to have an extension 'foobar' and want to ring<br>
> >> different devices depending on some factors (like time of day, for<br>
> >> example), can I modify the entry in the database for the device to ring<br>
> >> from 'bar' to 'baz', and baz will ring instead of bar from thereon?<br>
> > <br>
> > Yes.<br>
> <br>
> And IIUC the extension would use something like<br>
> 'Dial(SIP/ODBC_PICK_USER(...))' after defining a query for my<br>
> ..._PICK_USER function in func_odbc.conf to return what to dial<br>
> depending on the argument(s) supplied?<br>
<br>
No comment; I don't use this feature myself.<br>
<br>
> How do I make asterisk reload func_odbc.conf? Or is that not needed?<br>
<br>
Not needed. The whole point of configs in database tables is that they take <br>
effect immediately without having to tell Asterisk to reload anything.<br>
<br>
We did start off just talking about getting queue_log into a database table, <br>
though.<br>
<br>
> >> Is it possible to use configuration from both the database and the files<br>
> >> at the same time?<br>
> > <br>
> > Yes.<br>
> <br>
> So far, that seems to work fine :)<br>
<br>
Good.<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
Software development can be quick, high quality, or low cost.<br>
<br>
The customer gets to pick any two out of three.<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>