thanks, It worked for h! and if I want in DeadAGI? I want cdr function in the same AGI.
Regards, Zohair Raza On Fri, Dec 16, 2011 at 7:08 PM, Eric Wieling <ewiel...@nyigc.com> wrote: > From cdr.conf.sample: > > ; Normally, CDR's are not closed out until after all extensions are > finished > ; executing. By enabling this option, the CDR will be ended before > executing > ; the "h" extension so that CDR values such as "end" and "billsec" may be > ; retrieved inside of of this extension. > ;endbeforehexten=no > > -----Original Message----- > From: asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas > Sent: Friday, December 16, 2011 9:57 AM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: Re: [asterisk-users] CDR END TIME in correct in 1.8+ > > Try this > > exten => _X.,1,Dial(SIP/1*100) > > exten => h,1,wait(10) > > exten => h,n,AGI(cdr.php,11) > > > > Don't know how long after hangup this information gets updated, but would > be shocked if 10 seconds doesn't cover it. > > > > > > From: asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] On Behalf Of Zohair Raza > Sent: Friday, December 16, 2011 8:51 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] CDR END TIME in correct in 1.8+ > > > > Yes running from h > > > > > > exten => _X.,1,Dial(SIP/1*100) > > exten => h,1,AGI(cdr.php,11) > > > > Regards, > Zohair Raza > > > > > > > > > > On Fri, Dec 16, 2011 at 6:42 PM, Danny Nicholas <da...@debsinc.com> wrote: > > You are running the AGI from the h() exten? Otherwise I wouldn't expect > CDR(end) to populated or correct. > > > > From: asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] On Behalf Of Zohair Raza > Sent: Friday, December 16, 2011 8:38 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] CDR END TIME in correct in 1.8+ > > > > Hi, > > > > I've tested 1.8.6.0, 1.8.4.0 and 1.8.0 > > > > I can get proper start and answer time but not the end time of call > > > > <SIP/11-00000000>AGI Rx << GET VARIABLE CDR(start) > > <SIP/11-00000000>AGI Tx >> 200 result=1 (2011-12-16 18:34:48) > > <SIP/11-00000000>AGI Rx << GET VARIABLE CDR(end) > > <SIP/11-00000000>AGI Tx >> 200 result=1 (2011 12-16 18:34:48) > > <SIP/11-00000000>AGI Rx << GET VARIABLE CDR(answer) > > <SIP/11-00000000>AGI Tx >> 200 result=1 (2011-12-16 18:34:50) > > > > In 1.8.6.0, there was no end time and in the other two it's present but > neither in correct format nor exact time. > > > > Is it something related to system or a bug? > > > > Regards, > Zohair Raza > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New > to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users