<div dir="ltr"><div>Hi Noll,</div>
<div> </div>
<div>all works perfectly thanks a lot for your help and support i really appreciate it :)</div>
<div> </div>
<div>Best Regards<br><br></div>
<div class="gmail_quote">2011/12/1 Dale Noll <span dir="ltr">&lt;<a href="mailto:dnoll@wi.rr.com">dnoll@wi.rr.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br>On 11/30/2011 11:13 AM, salaheddine elharit wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">i have last question regarding this thread<br>with exten =&gt; 3,n,MYSQL(Query resultid ${connid} insert into test ( option_name ) values (&#39;${CALLERID(num)}&#39;))<br>
i can store the phone number without issue<br>i need also the date and hour fo call in the &quot;count coulum&quot;<br>could you please give me the syntex<br>best regards<br><br></blockquote><br></div>The example table that I gave originally was before I knew what you were looking to do. I assumed, incorrectly that you simply wanted to track how many times an option was selected in the menu.<br>
I would recommend that you create a table specifically for this application.<br><br>That table may look like this.  Please name the table and columns appropriately for your application.<br><br>create table option_three (<br>
calldate    datetime,<br>callerid    varchar(40)<br>)<br><br>Then the sql would look something like this...<br> exten =&gt; 3,n,MYSQL(Query resultid ${connid} insert into option_three ( calldate, callerid ) values ( now(), &#39;${CALLERID(num)}&#39;)) 
<div>
<div></div>
<div class="h5"><br><br>Dale<br><br>-- <br>&quot;The truth speaks for itself. I&#39;m just the messenger.&quot;<br>    Lyta Alexander - Babylon 5<br><br><br>--<br>______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>             <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>