[asterisk-users] CDR END TIME in correct in 1.8+

Danny Nicholas danny at debsinc.com
Fri Dec 16 08:56:58 CST 2011


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

 

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

 

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111216/f6af91da/attachment.htm>


More information about the asterisk-users mailing list