Steve, Thanks for your advice! You have an interesting point of view.
I shall discuss this with my office partners on Monday. Thank you both. PS: In case you wonder, I'm from Argentina, hence my native language is Spanish On Sat, Apr 2, 2011 at 3:57 PM, Steve Edwards <asterisk....@sedwards.com>wrote: > Un-top-posting... > > > On Sat, Apr 2, 2011 at 3:39 PM, John Kiniston <j...@meatkite.com> wrote: >> > > You could use a procmail recipe to create a call file and then move >> it >> to the /var/spool/asterisk/outgoing directory. >> Below is a untested example .procmailrc: >> >> :0: >> * ^to.trig...@example.com >> | /usr/local/bin/callout.sh >> >> where callout.sh would look like this perhaps: >> >> !/bin/bash >> sleep 5 >> CALL="callout.call"; >> echo channel: LOCAL/NUMBER@pstn-local > /tmp/$CALL; >> echo context: ivr-call-out >> /tmp/$CALL; >> echo exten: s >> /tmp/$CALL; >> echo priority: 1 >> /tmp/$CALL; >> >> echo mv /tmp/$CALL /var/spool/asterisk/outgoing >> done >> >> Again all untested writing by the seat of my pants type stuff. >> > > On Sat, 2 Apr 2011, Rafael Bermúdez wrote: > > John, >> > > Thanks for your reply. I will test this script. >> > > A couple of comments of the top of my head: > > ) 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. > > ) The 'mv' command has an extraneous 'echo' > > ) Pay attention to permissions. Sudo can help if needed. Personally, I > prefer a restrictive sudo to the blunt hammer of wide open permissions :) > > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST > Newline Fax: +1-760-731-3000 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Bermúdez Rafael
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users