2009-06-09 21:53:42 UTC
Or any suggestions on what to do when someone hangs up during processing of one of my scripts that uses pyst quite heavily... I've tried using signal, i've even tried putting the signal ignore into the pyst agi.py as well (and of course commenting out the signal handling that was there), and still to no avail. I even went as far as just using Set(AGISIGHUP=no) in the dialplan but come to find out that's a bug and doesn't work... I of course have also tried just using deadagi to run my script because supposedly asterisk won't pass a sighup like it does with the regular agi command, but that was a waste of time to because anyone can still hangup and it doesn't do anything but kills the script and never goes to processing the deadagi script i have waiting in the next priority of the dialplan. It returns a result=-1 all the time when i get a hangup but never does what's documented.. and I've tried so many different ways before resulting to asking here.