Summary: | ASTERISK-14869: billsec not available in "h" extensions | ||
Reporter: | Private Name (falves11) | Labels: | |
Date Opened: | 2009-09-22 20:20:59 | Date Closed: | 2009-09-23 10:06:19 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_cdr |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | The help for cdr.conf says that if we set endbeforehexten=yes the we may retrieve the cdr values in the "h" extension. This is not happening in this scenario. However, the correct amount is written to the cdr, therefore, there is a bug. This my dialplan [teliax] exten => _X.,1,Set(PROMPT=demo-instruct) exten => _X.,2,Dial(Sip/${EXTEN}@X.X.X.X,25,M(get-callid^${PROMPT})L(1800000)) exten => h,1,Verbose(0,${DIALSTATUS} Seconds ${CDR(billsec)} exten => h,n,GotoIf($["${DIALSTATUS}" = "ANSWER" & "$(CDR(billsec)}" = "0"]?label1:label2) exten => h,n(label1),Set(CDR(amaflags|r)=billing) exten => h,n(label2),Verbose(0,${CDR(amaflags)}) [macro-get-callid] exten => s,1,Background(${ARG1}) Note: If the call hangs up on the second leg, the outbound leg, before the file ends playing, the cdr reflects the correct information. It proves the the CDR has the information, but does not make it available to the "h" extension, contrary to the specification. ****** ADDITIONAL INFORMATION ****** Please look at the trace, in the first line of the -- Executing [1727XXXXXX@teliax:2] Dial("SIP/XX.XX.XX.XX-162ca900", "Sip/1727XXXXXX@X.X.X.X>|25|M(get-callid^demo-instruct)L(1800000)") in new stack -- Setting call duration limit to 1800 seconds. -- Called 1727XXXXXX@X.X.X.X -- SIP/8.20.212.9-162d0020 is ringing -- SIP/8.20.212.9-162d0020 is making progress passing it to SIP/XX.XX.XX.XX-162ca900 -- SIP/8.20.212.9-162d0020 answered SIP/208.78.161.230-162ca900 -- Executing [s@macro-get-callid:1] BackGround("SIP/8.20.212.9-162d0020", "demo-instruct") in new stack -- <SIP/8.20.212.9-162d0020> Playing 'demo-instruct' (language 'en') -- Executing [h@teliax:1] Verbose("SIP/208.78.161.230-162ca900", "0|ANSWER Seconds ") in new stack ANSWER Seconds -- Executing [h@teliax:2] GotoIf("SIP/208.78.161.230-162ca900", "0?label1:label2") in new stack -- Goto (teliax,h,4) -- Executing [h@teliax:4] Verbose("SIP/208.78.161.230-162ca900", "0|DOCUMENTATION") in new stack | ||
Comments: | By: Private Name (falves11) 2009-09-22 20:22:29 Please make it private since I published an IP address from my carrier. I am sorry. By: Leif Madsen (lmadsen) 2009-09-23 09:27:38 Please stop marking every issue you file as a blocker -- this is NOT a blocker. It is a MINOR issue at best. By: Private Name (falves11) 2009-09-23 09:31:22 Please kindly close the case. I will deal with the business edition support. |