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

Steve Totaro stotaro at totarotechnologies.com
Fri Jun 13 21:07:03 CDT 2008


Two things jump to mind depending on the nature of your script.  Both
use the "h" extension, this is where a call will go when hungup.  You
can either use deadagi on the h extension or you can use exten =
h,1,System(command).

Thanks,
Steve T

On Fri, Jun 13, 2008 at 4:26 PM, Robor Oghene <oghenerobor at gmail.com> 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> 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
>> Google is nice
>>
>> --
>> 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