selmak se
2008-Aug-21 15:35 UTC
[asterisk-users] After Dial execution, using DIALEDTIME, ANSWEREDTIME
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: lists.digium.com/pipermail/asterisk-users/attachments/20080821/8e8e0ec3/attachment.htm
Darren Sessions
2008-Aug-21 15:45 UTC
[asterisk-users] After Dial execution, using DIALEDTIME, ANSWEREDTIME
We recently discussed DeadAGI on the list - I'd check the archives first. I just finished doing a write up on DeadAGI and Perl on my website if you're interested. DeadAGI *can* be very reliable if done properly. - Darren _____________________________ dmsessions at gmail.com darrensessions.com _____________________________ On Aug 21, 2008, at 9:35 AM, 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 api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20080821/eaeef698/attachment.htm
Ruddy Gbaguidi
2008-Aug-21 16:10 UTC
[asterisk-users] After Dial execution, using DIALEDTIME, ANSWEREDTIME
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 api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > 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 >
Tony Mountifield
2008-Aug-21 16:35 UTC
[asterisk-users] After Dial execution, using DIALEDTIME, ANSWEREDTIME
In article <20080821153516.292500 at gmx.com>, selmak se <selmak at gmx.com> wrote:> 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 ?You can give the 'g' option to Dial, but that might not be the best way.> How I am supposed to handle the returned vales DIALEDTIME, ANSWEREDTIME if > I can not execute anything after Dial()?In the 'h' extension, as you mentioned below.> 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)Use the value of ${UNIQUEID} to distinguish between the channels. It will be unique for every channel in a system. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - softins.co.uk Play: tony at mountifield.org - tony.mountifield.org