[asterisk-users] Re: dialplan: execute on hangup
Tony Mountifield
tony at softins.clara.co.uk
Mon May 14 04:54:44 MST 2007
In article <727040580705140433m5f2d51f2pe7fe3b01effd2de at mail.gmail.com>,
Michael Kamleitner <michael.kamleitner at gmail.com> wrote:
>
> I'm looking for a way to execute commands in my dialplan specifically when a
> caller has hung up. my curretn dialplan looks like this:
>
> exten => s,1,Answer
> exten => s,n(restart),BackGround(intro)
> exten => s,n,Read(Enter,4,4)
> exten => s,n,Voicemail(${Enter},u)
> exten => s,n,agi(process.php|${Enter})
> exten => #,1,Playback(thanks)
> exten => #,n,Hangup
>
> it lets a user record a message to a chosen voicebox, when the user finishes
> his message my pressing "#", the script process.php is executed via AGI
> everything fine. however, when the user finishes recording by simply hanging
> up, asterisk isn't executing the AGI-command any more. what I'm looking for
> is some kind of "on hangup"-hook to catch this use-case...
>
> any help appreciated, thx!
Try something like:
exten => h,1,DeadAGI(process.php|${Enter})
Be prepared to experiment a bit!
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list