<div><div><a href="http://pastebin.com/W5h9AMrQ">http://pastebin.com/W5h9AMrQ</a></div></div><div><br></div><div>anything else you need to see?</div><br><br><div class="gmail_quote">On Mon, May 16, 2011 at 2:45 PM, Ryan Bullock <span dir="ltr"><<a href="mailto:rrb3942@gmail.com">rrb3942@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A normal Originate over the AMI will block all other actions until it<br>
completes. So to do other commands while the Originate is still going<br>
you have to call Originate with the Async option. I would suggest<br>
using an Originate with the 'Async' option and OriginateHack=>1. If<br>
that is still not working I would have to see your code. Unfortunately<br>
I am not on irc today.<br>
<div><div></div><div class="h5"><br>
On Mon, May 16, 2011 at 11:16 AM, vip killa <<a href="mailto:vipkilla@gmail.com">vipkilla@gmail.com</a>> wrote:<br>
> i was able to create a daemon that queries a database every 2 seconds for<br>
> outbound calls. the daemon originates a call to a destination determined by<br>
> the database. what i've noticed is, after the originate, the script never<br>
> does anything else. it seems i have to use "Async" or the AMI will<br>
> disconnect, so i tried using OriginateHack=>1 but still no dice... any<br>
> ideas?<br>
> On Mon, May 16, 2011 at 11:37 AM, Ryan Bullock <<a href="mailto:rrb3942@gmail.com">rrb3942@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><br>
>> On Mon, May 16, 2011 at 5:42 AM, Alex Balashov<br>
>> <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br>
>> > On 05/16/2011 08:33 AM, vip killa wrote:<br>
>> ><br>
>> >> Thank you, that makes sense but actually I would be invoking the script<br>
>> >> using the "externnotify" in voicemail.conf, similar to<br>
>> >> "externnotify = /var/lib/asterisk/scripts/<a href="http://notify.pl" target="_blank">notify.pl</a> <<a href="http://notify.pl" target="_blank">http://notify.pl</a>>"<br>
>> >> I assume "externnotify" cannot call the FastAGI server...correct?<br>
>> ><br>
>> > That is correct. But you can call a script that notifies the daemon<br>
>> > through<br>
>> > a FIFO or UNIX domain socket, if local, or network socket if remote.<br>
>> ><br>
>> > --<br>
>> > Alex Balashov - Principal<br>
>> > Evariste Systems LLC<br>
>> > 260 Peachtree Street NW<br>
>> > Suite 2200<br>
>> > Atlanta, GA 30303<br>
>> > Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670">+1-678-954-0670</a><br>
>> > Fax: <a href="tel:%2B1-404-961-1892" value="+14049611892">+1-404-961-1892</a><br>
>> > Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><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>
>> ><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>
><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>
><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>