[asterisk-users] start n run an agi script on hangup

Benjamin Jacob ben4asterisk at yahoo.com
Sat Jun 14 01:46:12 CDT 2008


I think, you can use the 'h' extension to invoke scripts (DeadAGI to be more precise) on hungup channels.
use something like this :
exten => _X., 1, NoOp(got a call)
exten => _X., n, Dial(<somexten>}
....

exten => h, 1, DeadAGI(hangupScript.sh)


--- On Fri, 6/13/08, Robor Oghene <oghenerobor at gmail.com> wrote:

> From: Robor Oghene <oghenerobor at gmail.com>
> Subject: Re: [asterisk-users] start n run an agi script on hangup
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> Date: Friday, June 13, 2008, 8:59 PM
> Thanks a million Sherwood!!
> 
> On Fri, Jun 13, 2008 at 9:31 PM, Sherwood McGowan <
> sherwood.mcgowan at gmail.com> wrote:
> 
> > Robor Oghene wrote:
> > > Thanks Steve, I appreciate your response, I
> checked the link and it
> > > talks about an agi script running before and
> continuing after
> > > hangup..... the problem I have is that, I dont
> want to run an agi
> > > while the channel is up..... i want to start the
> script on on hangup
> > > to do database cleanup...... i'd appreciate
> if you'd shed more light
> > > just in case am missing something..
> > >
> > > Rgds
> > >
> > > On Fri, Jun 13, 2008 at 3:05 PM, Sherwood McGowan
> > > <sherwood.mcgowan at gmail.com
> <mailto:sherwood.mcgowan at gmail.com>> wrote:
> > >
> > >     Robor Oghene wrote:
> > >     > hello All,
> > >     >
> > >     > How do I start and run an agi script on
> channel hang up?
> > >     >
> > >     > Rgds,
> > >     >
> > >
> >
> ------------------------------------------------------------------------
> > >     >
> > >     >
> _______________________________________________
> > >     > -- 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
> > >     Define the "h" extension in the
> context in question, and use DeadAGI
> > >
> >
> http://www.google.com/search?hl=en&q=how+do+I+run+an+AGI+after+hangup&btnG=Search
> > >     <
> >
> http://www.google.com/search?hl=en&q=how+do+I+run+an+AGI+after+hangup&btnG=Search
> > >
> > >     Google is nice
> > >
> > >     --
> > >     Sherwood McGowan
> > >     VoIP / Telecom Solutions
> > >     sherwood.mcgowan at gmail.com
> <mailto:sherwood.mcgowan at gmail.com>
> > >
> > >
> > >    
> _______________________________________________
> > >     -- 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
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > -- 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
> > DeadAGI will run even after both channels are down,
> that's why they
> > called it DeadAGI. VERY useful when put in the h exten
> :)
> >
> > --
> > Sherwood McGowan
> > VoIP / Telecom Solutions
> > sherwood.mcgowan at gmail.com
> >
> >
> > _______________________________________________
> > -- 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
> >_______________________________________________
> -- 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


      




More information about the asterisk-users mailing list