Re: [asterisk-users] Continue in dialplan on hangup

2009-02-28 Thread David Backeberg
On Fri, Feb 27, 2009 at 2:45 PM, Daniel Hazelbaker
dan...@highdesertchurch.com wrote:
 Is there a way to force a channel to continue in the dialplan after
 the remote end hangs up?

You use the 'h' side of the dialplan for the extension.

   exten = s,1,Answer
   exten = s,n,Set(some magic to make the filename unique)
   exten = s,n,ReceiveFax(filenamevar)

   exten = h,1,Cmd(/usr/bin/tiff2ps filenamevar.tiff)
   exten = h,n,Cmd(/usr/bin/lpr filenamevar.ps)

So if your ReceiveFax() saves a tiff, you can then on the 'h' side do
the tiff2ps and lpr steps. Which is the only way it's going to work if
you make these calls directly in the dialplan.

Another alternative is setting up external programs to handle those
things for you. Some people get good results that way. I am getting
good results doing everything in the dialplan. One brilliant thing
about doing it all from an asterisk dialplan is that it automatically
scales to the number of inbound calls in your system at that time.
Zero 'modems' when nobody is calling in and n 'modems' when you're
load testing. Asterisk will dynamically create the resources, and
destroy them when the call completes. I loaded up my system with 150+
fake modems in load testing Asterisk-1.6 with ReceiveFax() directly in
a dialplan.

Whereas Hylafax needs to have a fixed number of 'modems' that it
manages at a time. So you need to designate a number of 'modems' based
on the number of inbound calls you expect.

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


[asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Daniel Hazelbaker
Is there a way to force a channel to continue in the dialplan after  
the remote end hangs up?

Specifically, I am trying to play around with setting up a fax  
server.  I can receive the fax, but sometimes the sending fax hangs up  
before my System command for printing can run and the fax never  
prints.  I know I can work around by setting up a custom context and  
use the 'h' extension, but I am hoping for a more simple method.

Daniel

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


Re: [asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Doug Lytle
Daniel Hazelbaker wrote:
 Specifically, I am trying to play around with setting up a fax  
 server.  I can receive the fax, but sometimes the sending fax hangs up  
   

If your looking into setting up a reliable fax server and your not doing 
it over IP, then your best results will be using HylaFAX+ and iaxmodem 
with Asterisk.

HylaFAX+ handles the printing/re-faxing/fax2email of all 
inbound/outbound faxes via it's FaxDispatch script.  It's a 'Set and 
forget (tm)' package.  I absolutely love it.

Doug

-- 
 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


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


Re: [asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Doug Lytle
Daniel Hazelbaker wrote:

Um..

Your=You're!



-- 
 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


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


Re: [asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Anthony Messina
On Friday 27 February 2009 14:03:19 Doug Lytle wrote:
 Daniel Hazelbaker wrote:
  Specifically, I am trying to play around with setting up a fax
  server.  I can receive the fax, but sometimes the sending fax hangs up

 If your looking into setting up a reliable fax server and your not doing
 it over IP, then your best results will be using HylaFAX+ and iaxmodem
 with Asterisk.

 HylaFAX+ handles the printing/re-faxing/fax2email of all
 inbound/outbound faxes via it's FaxDispatch script.  It's a 'Set and
 forget (tm)' package.  I absolutely love it.

 Doug

Or, if you're using Asterisk 1.6 and looking to try something new, take a look 
at http://messinet.com/AsteriskFAXGateway


-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E



signature.asc
Description: This is a digitally signed message part.
___
-- 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

Re: [asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Daniel Hazelbaker
On Feb 27, 2009, at 1:35 PM, Anthony Messina wrote:

 On Friday 27 February 2009 14:03:19 Doug Lytle wrote:
 Daniel Hazelbaker wrote:
 Specifically, I am trying to play around with setting up a fax
 server.  I can receive the fax, but sometimes the sending fax  
 hangs up

 If your looking into setting up a reliable fax server and your not  
 doing
 it over IP, then your best results will be using HylaFAX+ and  
 iaxmodem
 with Asterisk.

 HylaFAX+ handles the printing/re-faxing/fax2email of all
 inbound/outbound faxes via it's FaxDispatch script.  It's a 'Set and
 forget (tm)' package.  I absolutely love it.

 Doug

 Or, if you're using Asterisk 1.6 and looking to try something new,  
 take a look
 at http://messinet.com/AsteriskFAXGateway

I'll take a look at both packages.  I hadn't given HylaFAX(+) any  
thought as when I searched initially I found just the old version of  
HylaFAX that last had a release in 2007, which makes me a bit  
nervous. :)

Daniel

 Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

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


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


Re: [asterisk-users] Continue in dialplan on hangup

2009-02-27 Thread Anthony Messina
On Friday 27 February 2009 17:02:16 Daniel Hazelbaker wrote:
  Or, if you're using Asterisk 1.6 and looking to try something new,  
  take a look
  at http://messinet.com/AsteriskFAXGateway

 I'll take a look at both packages.  I hadn't given HylaFAX(+) any  
 thought as when I searched initially I found just the old version of  
 HylaFAX that last had a release in 2007, which makes me a bit  
 nervous. :)

hylafax is excellent.  i used it myself.  i was just looking to try and start 
something simpler.  also, hylafax uses the concept of modems, so even if 
you're doing an all-software solution, you'll still need iaxmodem or t38modem.  
in asterisk 1.6, the SendFAX and ReceiveFAX applications do all of that work 
for you and all you need is a way to streamline getting faxes into and out of 
asterisk.  in my case, with the AsteriskFAXGateway, it's e-mail.  but if you 
look at the script, it's just a bash script and rather than having incoming 
faxes be e-mailed, just have them go to a printer.

here is the current script:
http://messinet.com/viewvc/asterisk-fax-gw/trunk/fax-gw?view=markup

on a side note, i'dlove some folks who are willing to test and help me work 
out scenarios that i've not thought of.  there has been interest on digium's 
side of getting this to be part of the default tarball, but i'd like to get 
some testing and feedback (and devel help) before i do that.

-a

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E



signature.asc
Description: This is a digitally signed message part.
___
-- 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