On 22/7/09 7:24 PM, Scott Gifford wrote:
> Hello,
>
> I'm using an AMI Originate command to send a fax.  The fax is sent by
> a script, and I'd like my script to send the fax, wait until it has
> succeeded or failed, then exit with an appropriate error code (it is
> driven by a mail system, so the exit code will tell the mail system
> whether to retry the fax later).
>
> The script works great if the fax succeeds, or if the line is busy or
> doesn't pick up.  The problem I'm having is that when a fax is sent
> and the line picks up but doesn't accept the fax (for example if I
> call a voice line).
>
> In this case, I don't seem to have enough information to tell when the
> call has failed and I should give up.  I do get a Hangup event, but I
> don't see a way to distinguish it from other hang-up events from other
> calls.

For doing fax broadcasting we use the UserEvent function.

exten => 
h,n,UserEvent(SmoothTorque|SmoothTorqueFax:${PHASEESTATUS}-${campaignid}-${phonenumber})

Then in the back end we parse the results.

-- 
Cheers,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)
http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)

_______________________________________________
-- 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

Reply via email to