[asterisk-users] Continue processing AGI script after hangup

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Feb 13 11:27:11 CST 2009


On Friday 13 February 2009 09:55:49 cbbs70a at hotmail.com wrote:
> All;
>   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? Any help at
> all would be greatly appreciated. Thanks

$SIG{HUP} = \&send_message;

-- 
Tilghman



More information about the asterisk-users mailing list