title: Using mysql with asterisk
body: <p>I have installed asterisk 11 on my centos 6 ,now i want to connect my asterisk with database
  I am following <a href="http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/managing_databases.html" rel="nofollow">this</a> .I have both installed and configured mysql </p>
  
  <p>I have created an outbound call (b.call)</p>
  
  <pre><code>Channel: DAHDI/g0/09********
  MaxRetries: 1
  RetryTime: 60
  WaitTime: 30
  Context: out
  Extension: 47******
  Priority: 1
  </code></pre>
  
  <p>and a simple dialplan(extensions.conf)</p>
  
  <pre><code>[out]
  exten =&gt; 47*****,1,NoOp(&lt;-------IVR-----------&gt;)
  same =&gt; n,dial(DAHDI/g0/09********)
  same =&gt; n,MYSQL(Connect connid localhost username pass dbname)
  same =&gt; n,MYSQL(Query resultid ${connid} INSERT INTO `emp` (`name`) VALUES ('Akash'))
  </code></pre>
  
  <p>My problem is that,first 2 lines of dialplan executes perfectly but database lines are not executed,cli shows only first 2 lines executed and  last 2 lines not executed.</p>
  
  <p>Am i missing any configuration settings??</p>
  
  <p>Thanks</p>