<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I enabled the logs on the mysql database and ran :</div><div><br></div><div>realtime load queues name cou0002-test</div><div><br></div><div>in the mysql log I can see that the proper select statement is being executed:</div><div>2018-12-04T16:29:27.253094Z       229 Query     SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED<br>2018-12-04T16:29:27.254384Z       229 Prepare   SELECT * FROM queues WHERE name = ?<br>2018-12-04T16:29:27.254902Z       229 Execute   SELECT * FROM queues WHERE name = 'cou0002-test'<br>2018-12-04T16:29:27.255606Z       229 Close stmt</div><div><br></div><div>I also ran the query (SELECT * FROM queues WHERE name = 'cou0002-test') on the db and I do get a result.<br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 9:08 AM Mitch Claborn <<a href="mailto:mitch_ml@claborn.net">mitch_ml@claborn.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Maybe try capturing the queries that are executed on the mysql server? <br>
That might point you in the right direction.<br>
<br>
-- show the log file name<br>
SHOW VARIABLES LIKE 'general_log%';<br>
-- turn logging on and off<br>
SET GLOBAL general_log='ON';<br>
SET GLOBAL general_log='OFF';<br>
<br>
<br>
<br>
Mitch<br>
<br>
On 12/4/18 7:50 AM, Dominic wrote:<br>
> Hi I am facing an issue where asterisk cannot see the queues that exist <br>
> in my database through realtime. I am using res_odbc and a local mysql <br>
> database.<br>
> <br>
> If I run:<br>
> <br>
> realtime load queues name myqueue<br>
> <br>
> I get "No rows found matching search criteria.", however if I do the <br>
> same for a peer:<br>
> <br>
> realtime load sippeers name<br>
> <br>
> Then I get a result. Since my queues table is in the same database as my <br>
> sippeers table, I was expecting consistent result between the two.<br>
> <br>
> I am a bit stuck here on where to look for errors or how I can debug <br>
> this issue, I can't see any error messages when I call the Queue <br>
> application besides "queue_exec: Unable to join queue". Also, this is an <br>
> almost exact copy of an existing Asterisk, so I'm confident the table <br>
> structure is correct but I'm obviously missing something.<br>
> <br>
> Any suggestions?<br>
> <br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="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" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>