[asterisk-users] R: R: R: R: R: CDR(billsec)
Alexandru Oniciuc
Alexandru.Oniciuc at trivenet.it
Thu Oct 29 09:31:56 CDT 2009
Ye, don't mind that one ...
Da: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] Per conto di Alexandru Oniciuc
Inviato: giovedì 29 ottobre 2009 15.15
A: Asterisk Users Mailing List - Non-Commercial Discussion
Oggetto: [asterisk-users] R: R: R: R: CDR(billsec)
Hi Danny,
I'm using CSV output too. Maybe you didn't "module reload cdr" after adding endbeforehexten?
Alex
Da: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] Per conto di Danny Nicholas
Inviato: giovedì 29 ottobre 2009 14.25
A: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Oggetto: Re: [asterisk-users] R: R: R: CDR(billsec)
While I don't question that this works, I'll state that for some reason it doesn't work on my 1.4.26.2 on Centos 5.3
Here's my test snippet
exten => 333,1,answer
exten => 333,n,SetMusicOnHold(default)
exten => 333,n,Background(pls-hold-while-try)
exten => 333,n,WaitMusicOnHold(5)
exten => 333,n,Background(vm-goodbye)
exten => 333,n,Verbose(time ${CDR(billsec)})
exten => 333,n,Verbose(dur ${CDR(duration)})
exten => 333,n,Verbose(id ${CDR(uniqueid)})
exten => 333,n,Hangup
here's cdr.conf
[general]
endbeforehexten = yes
[csv]
usegmtime = no ; log date/time in GMT. Default is "no"
loguniqueid = yes ; log uniqueid. Default is "no"
loguserfield = yes ; log user field. Default is "no"
here's CLI output
-- Executing [333 at DLPN_DialPlan1:1] Answer("SIP/170-b3704ae0", "") in new stack
-- Executing [333 at DLPN_DialPlan1:2] SetMusicOnHold("SIP/170-b3704ae0", "default") in new stack
-- Executing [333 at DLPN_DialPlan1:3] BackGround("SIP/170-b3704ae0", "pls-hold-while-try") in new stack
-- <SIP/170-b3704ae0> Playing 'pls-hold-while-try' (language 'en')
-- Executing [333 at DLPN_DialPlan1:4] WaitMusicOnHold("SIP/170-b3704ae0", "5") in new stack
-- Started music on hold, class 'default', on SIP/170-b3704ae0
-- Stopped music on hold on SIP/170-b3704ae0
-- Executing [333 at DLPN_DialPlan1:5] BackGround("SIP/170-b3704ae0", "vm-goodbye") in new stack
-- <SIP/170-b3704ae0> Playing 'vm-goodbye' (language 'en')
-- Executing [333 at DLPN_DialPlan1:6] Verbose("SIP/170-b3704ae0", "time 0") in new stack
time 0
-- Executing [333 at DLPN_DialPlan1:7] Verbose("SIP/170-b3704ae0", "dur 0") in new stack
dur 0
-- Executing [333 at DLPN_DialPlan1:8] Verbose("SIP/170-b3704ae0", "id 1256822108.6") in new stack
id 1256822108.6
-- Executing [333 at DLPN_DialPlan1:9] Hangup("SIP/170-b3704ae0", "") in new stack
== Spawn extension (DLPN_DialPlan1, 333, 9) exited non-zero on 'SIP/170-b3704ae0'
-- Executing [h at DLPN_DialPlan1:1] Set("SIP/170-b3704ae0", "CDR(userfield)= Hangupcause:16") in new stack
-- Executing [h at DLPN_DialPlan1:2] DeadAGI("SIP/170-b3704ae0", "userfield.agi|1256822108.6| Hangupcause:16") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/userfield.agi
-- AGI Script userfield.agi completed, returning 0
-- Executing [h at DLPN_DialPlan1:3] NoOp("SIP/170-b3704ae0", "id 1256822108.6 time 8") in new stack
-- Executing [h at DLPN_DialPlan1:4] NoOp("SIP/170-b3704ae0", "caller hung up") in new stack
-- Executing [h at DLPN_DialPlan1:5] Hangup("SIP/170-b3704ae0", "") in new stack
== Spawn extension (DLPN_DialPlan1, h, 5) exited non-zero on 'SIP/170-b3704ae0'
FWIW, I'm only using the csv CDR; perhaps these values are better preserved/presented if you use the SQL CDR's?
________________________________
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anahi Ludueña
Sent: Thursday, October 29, 2009 7:30 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] R: R: R: CDR(billsec)
Thanks Matt!
It works now!
Bye...
________________________________
Anahi Ludueña
> Date: Fri, 30 Oct 2009 01:20:02 +1300
> From: lists at venturevoip.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] R: R: R: CDR(billsec)
>
> On 30/10/09 1:10 AM, Alexandru Oniciuc wrote:
> >
> > Thank you! My bad,the CDR function was working on 1.4, I can confirm that endbeforehexten=yes does the trick, I've just tried it :]
> >
> > WOW: "On 29/10/09 5:56 AM, Alexandru Oniciuc wrote:" 12h difference!
>
> :D Yeah based in New Zealand - we're just about ahead of everybody - in
> fact it's 1:20 in the morning so I probably should go to sleep :)
>
> --
> Cheers,
>
> Matt Riddell
> Director
> _______________________________________________
>
> http://www.venturevoip.com/news.php (Daily Asterisk News)
> http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)
> http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
________________________________
¿Para qué descargarte juegos, si tienes los más divertidos online? Entra ya en Juegos y prepárate para muchas horas de diversión<http://juegosonline.es.msn.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091029/8e24c82b/attachment-0001.htm
More information about the asterisk-users
mailing list