No subject


Fri Sep 2 03:59:05 CDT 2011


; Normally, CDR's are not closed out until after all extensions are finishe=
d
; executing.  By enabling this option, the CDR will be ended before executi=
ng
; the "h" extension so that CDR values such as "end" and "billsec" may be
; retrieved inside of of this extension.
;endbeforehexten=3Dno

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounce=
s at 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 =3D> _X.,1,Dial(SIP/1*100)

exten =3D> h,1,wait(10)

exten =3D> h,n,AGI(cdr.php,11)

=20

Don't know how long after hangup this information gets updated, but would b=
e shocked if 10 seconds doesn't cover it.

=20

=20

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounce=
s at 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+

=20

Yes running from h

=20

=20

exten =3D> _X.,1,Dial(SIP/1*100)

exten =3D> h,1,AGI(cdr.php,11)

=20

Regards,
Zohair Raza

=20

=20





On Fri, Dec 16, 2011 at 6:42 PM, Danny Nicholas <danny at debsinc.com> wrote:

You are running the AGI from the h() exten?  Otherwise I wouldn't expect CD=
R(end) to populated or correct.

=20

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounce=
s at 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+

=20

Hi,

=20

I've tested 1.8.6.0, 1.8.4.0 and 1.8.0=20

=20

I can get proper start and answer time but not the end time of call=20

=20

<SIP/11-00000000>AGI Rx << GET VARIABLE CDR(start)

<SIP/11-00000000>AGI Tx >> 200 result=3D1 (2011-12-16 18:34:48)

<SIP/11-00000000>AGI Rx << GET VARIABLE CDR(end)

<SIP/11-00000000>AGI Tx >> 200 result=3D1 (2011 12-16 18:34:48)

<SIP/11-00000000>AGI Rx << GET VARIABLE CDR(answer)

<SIP/11-00000000>AGI Tx >> 200 result=3D1 (2011-12-16 18:34:50)

=20

In 1.8.6.0, there was no end time and in the other two it's present but nei=
ther in correct format nor exact time.

=20

Is it something related to system or a bug?

=20

Regards,
Zohair Raza

=20

=20


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New t=
o 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

=20




More information about the asterisk-users mailing list