there was a discussion some days ago about that. basically, you can do exten => h,1,AGI(somescript) to do that. but this way the channel is freed only when the scripts returns. if you want to hangup && exectute an agi && free the channel, then use a wrapper script to lauch in the bg the real script. so somescript will be #!/bin/sh /some/path/realscript &
but be aware that agi vars will be passed only to somescript and not to realscript, so , if u need them, you must pass them is some way to realscript. matteo. Il mar, 2003-09-16 alle 19:13, Areski ha scritto: > Hello, > > Someone know if it's possible in an agi to run a function when the user > hang up the phone. > > > Thanks in advance for the help, > Areski > > _______________________________________________ > Asterisk-Dev mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-dev -- Brancaleoni Matteo <[EMAIL PROTECTED]> Espia - Emmegi Srl _______________________________________________ Asterisk-Dev mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-dev
