search for: endbeforehexten

Displaying 20 results from an estimated 30 matches for "endbeforehexten".

2014 Nov 20
1
Error saving cdr at h exten in Asterisk13
Dears, I need to save some information on userfield when calls end in Asterisk13, but I have two error cases: 1. With endbeforehexten=no in cdr.conf, I have a registry in cdr, but userfield is not set. 2. With endbeforehexten=yes, I have two lines in cdr, one with duration, src e dst correct, and a second line with userfield setting and dst h. I am using cdr_odbc.conf, with Asterisk11.14.0 it works fine. May be this is a bug in...
2015 Aug 03
2
Modifying CDR values from a hangup extension in Asterisk 13
Hi, I'm trying to migrate from Asterisk 1.8 to Asterisk 13 and can't figure this one out. I'm pretty sure the question has been already asked, but I failed to find a solution. Can you modify CDR values in an h-extension? My cdr.conf contains: [general] enable=yes unanswered=yes endbeforehexten=yes initiatedseconds=no batch=no The diaplan contains a simple "h" extension exten => h,1,NoOp(${CDR(userfield)}) exten => h,n,Set(CDR(userfield)=changed) exten => h,n,NoOp(${CDR(userfield)}) In the same context I execute: exten => 10,1,Set(CDR(userfield)=empty) exten =>...
2010 Dec 22
8
Possible Bug (Include ${HANGUPCAUSE} in CDR)
...til 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. The default value is "no". endbeforehexten=no The default is set to no so why can't I store any CDR values in my h extension. exp.. exten => h,n,Set(CDR(cause_code)=${HANGUPCAUSE}) I need the cause code stored. Really what I need to be able to do is in the h quickly store some values to the CDR then. For the write of the CDR and...
2015 Aug 04
2
Modifying CDR values from a hangup extension in Asterisk 13
With endbeforehexten=no I actually get two CDR entries. One for the call and a second one for the "h" extension. "","13","10","sip-locals","""13"" <13>","SIP/13-00000006","SIP/10-00000007","Dial","...
2018 Feb 20
2
Modifying CDR values from a hangup extension in Asterisk 13
...handlers ? I'm planning to store some RTCP stats. Saving them in CDR(userfield) would be perfect. Cheers 2015-08-10 15:05 GMT+02:00 Matthew Jordan <mjordan at digium.com>: > > On Tue, Aug 4, 2015 at 9:16 AM, Filip Jenicek <fjenicek at kerio.com> wrote: > >> With endbeforehexten=no I actually get two CDR entries. One for the call >> and a second one for the "h" extension. >> "","13","10","sip-locals","""13"" <13>","SIP/13-00000006","SIP/ >> 10-00000007&quo...
2013 Mar 29
1
Asterisk 11 - Change CDR in hangup exten [Was: CDR values changed in hangup handler not saved]
2013/3/29 Julian Lyndon-Smith <asterisk at dotr.com> > check out the endbeforehexten option in cdr.conf > > this needs to set to "yes" > > Julian > Unfortunately, this doesn't help. Let's drop the hangup handler at the moment, and focus on the "saving to file" part. Then my issue is I can't update CDR value is hangup exten. Here is...
2015 Oct 07
2
Storing HANGUPCAUSE in CDR
...andler is registered: Set(CHANNEL(hangup_handler_push)=record-hangupcause,s,1) The routine is called and the variables are being set, however not on the channel's CDR which made the call. I believe this is due to the CDR being closes as soon as the dial returns. By changing the cdr option 'endbeforehexten=no' this should keep the CDR accessible, however all this does is cause another CDR to be created for the 'h' extension. Is there a way to update the CDR so that a result can be stored per dial? Thank you in advance, Ross -------------- next part -------------- An HTML a...
2008 Oct 09
2
Asterisk 1.6.0 CDR billsec and duration not working from h extension
Can someone tell me what I am doing wrong? Why doesn't CDR(duration) or CDR(billsec) return the correct values? cdr.conf endbeforehexten=yes extensions.conf [macro-Dial] ; ${ARG1} - Dial String exten => s,1,Dial(${ARG1},,M(post-dial)) exten => h,1,NoOp(Call was hung up - ${CDR(duration)} seconds long, billed for ${CDR(billsec)} seconds) The log shows: -- Executing [h at macro-Dial:1] NoOp("SIP/10.10.10.170-...
2008 Dec 29
1
1.6, CDR and h extension
...Set("DAHDI/49-1", "CDR(hangupcause)=16") in new stack Unfortunately hangupcause doesn't actually make it to the database or the csv file, despite that message. My cdr.conf on both servers: [general] enable=yes batch=yes size=10 time=60 scheduleronly=no safeshutdown=yes endbeforehexten=no I am probably just being stupid somehow, but I cannot figure out what is wrong. Both asterisks are 1.6.0.1-2.fc10. /Benny
2012 Dec 21
0
CDR written before hangup extension
asterisk 11.1 Documentation in cdr.conf for endbeforehexten reads: 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 and hangup handlers so that CDR values such as "end" and "billsec" may be retrieved in...
2015 Oct 09
2
Storing HANGUPCAUSE in CDR
...The routine is called and the variables are being set, however not on the channel's CDR which made the call. I believe this is due to the CDR being closes as soon as the dial returns. By changing the cdr option 'endbeforehexten=no' this should keep the CDR accessible, however all this does is cause another CDR to be created for the 'h' extension. Is there a way to update the CDR so that a result can be stored per dial? Thank yo...
2010 Dec 22
0
CDR on MySQL
...ed to do it on some of my h exten code as well. Bryant ---------------------------------------- From: "Ron" <nhadie at gmail.com> Sent: Wednesday, December 22, 2010 9:42 AM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] CDR on MySQL Hi I have tried setting endbeforehexten=yes but still CDR does not get inserted before h exten. what i tried is setting ResetCDR(w) before the DEADAGI. Like this: exten => h,1,ResetCDR(w) exten => h,2,DEADAGI(get-unqiueid.php) it seems to work but it's inserting 2 record on the CDR, one with disposition ANSWERED and one wi...
2011 Aug 05
1
No more CDR record for simple Hangup?
I am using the new 1.8.5 and I just found out that Asterisk won't record the call if the call just hangup. I did a test like this: exten => 1009, 1, Hangup() Then I called 1009: == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [1009 at init-1005:1] Hangup("SIP/1007-0000003c", "") in new stack == Spawn extension (init-1005, 1009, 1)
2010 Jan 27
2
CDR problems with Queue
Hi, I'm having problems with CDR's and Queues in Asterisk 1.6.1. Heres three examples: Normal call: User A calls in to asterisk, gets a PlayFile, and hangs up. This gives 1 CDR as expected. Call to a Queue and then a playfile afterwards: User A calls into asterisk, goes into a queue, asterisk calls user B. When user B hangs up a CDR for User A is generated. (no CDR for user B)
2007 Dec 06
3
CDR Function in Hangup Channel
So... I'm trying to access CDR(duration) and CDR(billsec) inside h... I keep getting 0. Can I access the CDR function inside a hangup extensions? Asterisk 1.4.13 Thanks, Doug. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
2014 Jan 11
1
Does cdr adaptive odbc re-connect automatically after a long idle time?
...all ODBC DSN Settings ----------------- Name: asterisk DSN: asterisk-connector Last connection attempt: 2014-01-11 18:16:40 Pooled: Yes Limit: 1000 Connections in use: 0 -------------- /etc/asterisk/cdr.conf lists below: [general] enable=yes unanswered = yes congestion = yes 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" accountlogs=yes ; create separate log file for each account code. Default is "yes" ----...
2015 Feb 26
1
How to perform some tasks after the CDR has been closed?
Hi, I would like to do some tasks after the CDR has been closed, and the CDR(end), CDR(billsec) and CDR(duration) fields are available. I have tried to do that on the h extension, but it seems the CDR is not yet complete in the h extension. When is the CDR closed? How can I trigger some actions after that event? It would be nice if the channel is still available, since I need access to other
2007 Nov 14
0
Real Time CDR
...ll. This makes me want to create hard file and a compare script between the file cdr and the odbc cdr, but I was wondering if anyone else has seen this error or if my config is off. mySQL 5 Asterisk branch/1.4 current rev cdr.conf [general] enabled=yes batch=no size=100 time=300 scheduleronly=no endbeforehexten=no safeshutdown=yes cdr_manager.conf [general] enabled=yes cdr_odbc.conf [global] dsn=asterisk username=user password=password loguniqueid=yes dispositionstring=yes table=cdr ;"cdr" is default table name ;usegmtime=no...
2008 Nov 26
0
CDR Hangupcause
Hi, I'm trying to get HANGUPCAUSE on my cdr the problem I'm facing is that this option: endbeforehexten=yes is not working at least on asterisk 1.6.0.1, so if I put yes o no I cant set CDR value with that value. It seems to finish the CDR record before h is executed. I'm using cdr_mysql. Any idea?? Thanks!! -------------- next part -------------- An HTML attachment was scrubbed.....
2010 Feb 25
0
CDR duration/billsec
...OUTGOING CONTEXT (here I'm trying to print the variable) The problem is I'm always getting '0' from those variables. The incoming calls aren't passing through a macro and they return the correct billsec/duration value. cdr.conf has this enabled: endbeforehexten=yes asterisk version: 1.6.0.20 Any ideas, clues, suggestions on how may I get this to work? Thanks in advance, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/201002...