i was able to create a daemon that queries a database every 2 seconds for outbound calls. the daemon originates a call to a destination determined by the database. what i&#39;ve noticed is, after the originate, the script never does anything else. it seems i have to use &quot;Async&quot; or the AMI will disconnect, so i tried using OriginateHack=&gt;1 but still no dice... any ideas? <div>
<br><div class="gmail_quote">On Mon, May 16, 2011 at 11:37 AM, Ryan Bullock <span dir="ltr">&lt;<a href="mailto:rrb3942@gmail.com">rrb3942@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;">
Alex is pointing you in the right direction. You should want a single<br>
daemon running that then gets notified by the voicemail script, either<br>
through a FIFO, a socket, or by dropping a file in a watched<br>
directory.<br>
<br>
If you are going to write a daemon, I would suggest looking at :<br>
<br>
<a href="http://search.cpan.org/~greenbean/Asterisk-AMI-v0.2.5/" target="_blank">http://search.cpan.org/~greenbean/Asterisk-AMI-v0.2.5/</a><br>
<br>
It has integration with event loops and should work well for what you<br>
are doing. It also has some features for detecting disconnects and<br>
timeouts.<br>
<div><div></div><div class="h5"><br>
On Mon, May 16, 2011 at 5:42 AM, Alex Balashov<br>
&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt; wrote:<br>
&gt; On 05/16/2011 08:33 AM, vip killa wrote:<br>
&gt;<br>
&gt;&gt; Thank you, that makes sense but actually I would be invoking the script<br>
&gt;&gt; using the &quot;externnotify&quot; in voicemail.conf, similar to<br>
&gt;&gt; &quot;externnotify = /var/lib/asterisk/scripts/<a href="http://notify.pl" target="_blank">notify.pl</a> &lt;<a href="http://notify.pl" target="_blank">http://notify.pl</a>&gt;&quot;<br>
&gt;&gt; I assume &quot;externnotify&quot; cannot call the FastAGI server...correct?<br>
&gt;<br>
&gt; That is correct.  But you can call a script that notifies the daemon through<br>
&gt; a FIFO or UNIX domain socket, if local, or network socket if remote.<br>
&gt;<br>
&gt; --<br>
&gt; Alex Balashov - Principal<br>
&gt; Evariste Systems LLC<br>
&gt; 260 Peachtree Street NW<br>
&gt; Suite 2200<br>
&gt; Atlanta, GA 30303<br>
&gt; Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670">+1-678-954-0670</a><br>
&gt; Fax: <a href="tel:%2B1-404-961-1892" value="+14049611892">+1-404-961-1892</a><br>
&gt; Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
&gt;<br>
&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>