Correct me if I&#39;m wrong or don&#39;t know anything other than AMI Originate Event or a call file to kick start a call from asterisk ! So making a new or modifying asterisk call-file cron job/poller seems like a nice idea but why put on extra load on Asterisk. (See pbx_spool.c if still want to modify). <div>
The simple idea is create a MySQL trigger for your Table insertion, the data in the table at insertion time becomes parameters for a simple script that triggers an AMI event (or call file) whichever is easier for you.<br>
<br><div class="gmail_quote">On Tue, Sep 27, 2011 at 6:54 PM, Nick Khamis <span dir="ltr">&lt;<a href="mailto:symack@gmail.com">symack@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello David,<br>
<br>
At first I assumed asterisk used call files out of the box for<br>
normal-initiated/instantiated calls however,<br>
this is incorrect. I think call files was the easy approach for client<br>
just to place a file with call details<br>
in some location. I am trying to do the same with a db record. My<br>
first question is, how does asterisk<br>
initiate calls, i.e. what part of the source code is responsible for<br>
that. Are there any threads involved etc.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Nick.<br>
</font><div><div></div><div class="h5"><br>
On Tue, Sep 27, 2011 at 9:35 AM, David Moring &lt;<a href="mailto:DMoring@tmcentral.net">DMoring@tmcentral.net</a>&gt; wrote:<br>
&gt; Hi Nick,<br>
&gt;<br>
&gt; Understand your reasoning - though as Matt points out sql db isn&#39;t in the<br>
&gt; core so compiling it there would preclude seemless upgrades.  Also, I<br>
&gt; personally would be concerned putting the calls right into the call-file<br>
&gt; thread might create an issue if you hung on a db query or insert.  Finally<br>
&gt; (and I&#39;d love to hear the answer not knowing), but I believe<br>
&gt; &quot;normally-initiated/instantiated&quot; calls are handled with direct calls via<br>
&gt; either SIP requests and/or AMI - thus even using the proposed method, I<br>
&gt; *think* the db/file-drop method is going to create some overhead that might<br>
&gt; not scale well...<br>
&gt;<br>
&gt; Best,<br>
&gt;<br>
&gt; David<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Nick Khamis &lt;<a href="mailto:symack@gmail.com">symack@gmail.com</a>&gt;<br>
&gt; To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
&gt; &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>
&gt; Date: Mon, 26 Sep 2011 18:49:07 -0400<br>
&gt; Subject: Re: [asterisk-users] Asterisk Realtime Time Dial App<br>
&gt;<br>
&gt; Hello David,<br>
&gt;<br>
&gt; Thank you so much for your response. I am sure it can be easily done<br>
&gt; using AGI. The reason I am leaning more<br>
&gt; towards storing the call information in a database record, is because<br>
&gt; our existing client applications can be easily<br>
&gt; modified to write to MySQL. The asterisk cron/thread that would<br>
&gt; querying the DB should be no different than existing implementation<br>
&gt; used process the call files?<br>
&gt; For those of you that may be interested in what we are doing. We are<br>
&gt; developing an application that will apply NLP<br>
&gt; services on text generated using the speech to text module, and<br>
&gt; generate the response that will then be forwarded to<br>
&gt; the text to speech.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Nick<br>
&gt; .<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
<br>
--<br>
_____________________________________________________________________<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/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>