[asterisk-users] After Dial execution, using DIALEDTIME, ANSWEREDTIME

Ruddy Gbaguidi plugworld at micnes.com
Thu Aug 21 11:10:12 CDT 2008


First, if you want to use that, you may want pass the call tracknum to 
the myagi.agi,
so you will know which call the dialedtime and answeredtime belongs to.

But you can use the Dial 'g' option that doesn't hangup up both legs of 
the call when the called party hangs up.



selmak se wrote:
>
>
> Hi,
>
>
>
>
> I noticed that when dial terminates it does not return to the 
> dialplan, and therefore can not execute any entry after Dial().
>
>
> Is there any trick to overcome this limitation ?
>
>
>
> How I am supposed to handle the returned vales DIALEDTIME, 
> ANSWEREDTIME if I can not execute anything after Dial()?
>
>
>
> I made a workaround with DeadAGI (below) but it is unreliable: if 2 
> calls end nearly at the same time I do not know to whom belongs the 
> ANSWEREDTIME value :
>
>
> exten => h,1,DeadAGI(myagi.agi,0,${DIALEDTIME},${ANSWEREDTIME},00)
>
>
> Any comments?
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> ------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 269.23.16/1448 - Release Date: 5/16/2008 7:42 PM
>   




More information about the asterisk-users mailing list