[Asterisk-Dev] AGI script - Hang up
Brancaleoni Matteo
mbrancaleoni at espia.it
Tue Sep 16 10:28:44 MST 2003
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
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
--
Brancaleoni Matteo <mbrancaleoni at e-mg.it>
Espia - Emmegi Srl
More information about the asterisk-dev
mailing list