Hi guys, is there any way to execute a command *after* a caller has hung up the call? Something like exten => s,1,Voicemail exten => s,2,AGI(mwi.agi) I'd like to turn off the MWI on my cellphone (which is done by gammu[1]) Or does anyone know a way to check the state of the MWI from outside, i.e. with a cron-job? I'm turning on the MWI with the email-notify from voicemail, but this only work to turn it on... Greetings, Christoph [1] http://www.mwiacek.com/english/gsm/gammu/gammu.html
extension 'h' is executed from the current context when the call is hanged up exten => h,1,System,"shutdown -r 0" Martin On Sat, 3 May 2003, Christoph Frei wrote:> Hi guys, > > is there any way to execute a command *after* a caller has hung up the > call? Something like > > exten => s,1,Voicemail > exten => s,2,AGI(mwi.agi) > > I'd like to turn off the MWI on my cellphone (which is done by gammu[1]) > > Or does anyone know a way to check the state of the MWI from outside, > i.e. with a cron-job? I'm turning on the MWI with the email-notify from > voicemail, but this only work to turn it on... > > > > Greetings, > > Christoph > > > [1] http://www.mwiacek.com/english/gsm/gammu/gammu.html > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Florian Overkamp
2003-May-03 09:51 UTC
[Asterisk-Users] Execute command after hangup / MWI
At 18:02 3-5-2003 +0200, you wrote:>Hi guys, > >is there any way to execute a command *after* a caller has hung up the >call? Something like > >exten => s,1,Voicemail >exten => s,2,AGI(mwi.agi)exten => h,1,AGI(mwi.agi) Make sure its in its own context, or all your calls will go through this :) Met vriendelijke groet, Florian Overkamp ObSimRef BV (http://www.obsimref.com/)