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

selmak se selmak at gmx.com
Thu Aug 21 11:18:39 CDT 2008


Thank you for your answer,





Is the call tracknum stored in some variable?



Could you let me know how to  pass a call tracknum to an AGI. 





Se.-





> ----- Original Message -----
> From: Ruddy Gbaguidi
> 
> 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?
> >
> >
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080821/f8fdaffa/attachment.htm 


More information about the asterisk-users mailing list