Steve, <br><br>Thanks for your advice! You have an interesting point of view.<br><br>I shall discuss this with my office partners on Monday.<br><br>Thank you both.<br><br><br>PS: In case you wonder, I'm from Argentina, hence my native language is Spanish <br>
<br><div class="gmail_quote">On Sat, Apr 2, 2011 at 3:57 PM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Un-top-posting...<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sat, Apr 2, 2011 at 3:39 PM, John Kiniston <<a href="mailto:john@meatkite.com" target="_blank">john@meatkite.com</a>> wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You could use a procmail recipe to create a call file and then move it<br>
to the /var/spool/asterisk/outgoing directory.<br>
Below is a untested example .procmailrc:<br>
<br>
:0:<br>
* ^<a href="mailto:To.trigger@example.com" target="_blank">To.trigger@example.com</a><br>
| /usr/local/bin/callout.sh<br>
<br>
where callout.sh would look like this perhaps:<br>
<br>
!/bin/bash<br>
sleep 5<br>
CALL="callout.call";<br>
echo channel: LOCAL/NUMBER@pstn-local > /tmp/$CALL;<br>
echo context: ivr-call-out >> /tmp/$CALL;<br>
echo exten: s >> /tmp/$CALL;<br>
echo priority: 1 >> /tmp/$CALL;<br>
<br>
echo mv /tmp/$CALL /var/spool/asterisk/outgoing<br>
done<br>
<br>
Again all untested writing by the seat of my pants type stuff.<br>
</blockquote>
<br></div><div class="im">
On Sat, 2 Apr 2011, Rafael Bermúdez wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
John,<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for your reply. I will test this script.<br>
</blockquote>
<br></div>
A couple of comments of the top of my head:<br>
<br>
) If you construct the call file name using the PID you can accomodate more than a single event at the same (or really close) time.<br>
<br>
) The 'mv' command has an extraneous 'echo'<br>
<br>
) Pay attention to permissions. Sudo can help if needed. Personally, I prefer a restrictive sudo to the blunt hammer of wide open permissions :)<div><div></div><div class="h5"><br>
<br>
-- <br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000</div></div><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></blockquote></div><br><br clear="all"><br>-- <br>Bermúdez Rafael<br>