Tilghman Lesher schrieb:
> On Friday 13 February 2009 09:55:49 [email protected] wrote:

>>   I wrote a PERL AGI script that prompts a caller to leave a message using
>> print "RECORD FILE $recordfile wav # 60000 BEEP s=3\n";
>>
>> When the caller is done, they need to press the # key. The message is then
>> delivered. However, the message is not delivered if the caller simply hangs
>> up when finished. If the user hangs up, the script ends right then. How do
>> I keep on processing the rest of the script after the hangup?

> $SIG{HUP} = \&send_message;

http://perldoc.perl.org/perlipc.html#Signals
http://perldoc.perl.org/perlfaq8.html#How-do-I-trap-control-characters/signals%3F


   Philipp Kempgen

-- 
AMOOCON 2009, May 4-5, Rostock / Germany   ->  http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 

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