Hello Cosmin, it's hard to tell without first knowing what is going on on your side, but I would not just drop call files and let Asterisk decide when to process them - if you have hundreds of faxes pending, you risk having all lines busy sending faxes and your other users without a dial tone.
I would do something like this: 1. create a cron job that runs every couple of minutes 2. the cron job looks at the list of faxes to send (ag a database table) and checks if there are call files waiting to be processed; it will thene generate call files up to a maximum number of parallel slots you choose (so if you have say 10 lines, you never have more than 5 faxes outstanding). 3. when a call file is generated, it is set up to retry a number of times (like 20 minutes) through the MaxRetries, RetryTime and WaitTime parameters 4. Once a fax is sent successfully, the database is updated so it's not sent anymore. Just my euro 0.02, l. On Mon, 15 Oct 2007 10:26:41 +0200, Cosmin Prund <[EMAIL PROTECTED]> wrote: > Hello everyone. > > > I'm working on an application that needs to automatically send faxes. To > send the faxes I create .call files but the .call files mostly fail > because my lines are always congested within business hours! Is there > any trick I can use to give the end user a better chance at actually > receiving the faxes? > > > I already tried using the local channel for dialing (so I can put in > there a loop that waits for a line to be available) but this doesn't > work because I'm sending faxes using chan_capi's capicommand(sendfax) - > and that command requires an chan_capi channel, it doesn't like the > "local" channel. Besides, looping in the dialplan would probably > interfere with the "Wait" option in the .call file so that's a really > bad solution. > > > -- > > Thanks for any suggestion, > > Cosmin Prund > > > -- Loway Research - Home of QueueMetrics http://queuemetrics.com _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
