[asterisk-bugs] [Asterisk 0011986]: Problem adding ${CDR(foo)} while using .call file
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Feb 20 06:04:39 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11986
======================================================================
Reported By: kowalma
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 11986
Category: Applications/app_cdr
Reproducibility: always
Severity: major
Priority: normal
Status: feedback
Asterisk Version: 1.4.18
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 02-13-2008 13:38 CST
Last Modified: 02-20-2008 06:04 CST
======================================================================
Summary: Problem adding ${CDR(foo)} while using .call file
Description:
I've noticed problem with adding additional fields into CDR file. Call
which cames from ZAP gets CDR fileds, but when I create call via .call file
this extra fields are not added. I use same macro to make a call at calling
directly and via .call.
[macro-nagrywaj]
exten => s,1,Set(SPYGROUP=${ARG3})
exten => s,n,Set(CDR(PROJEKT)=IT)
exten => s,n,Set(CDR(TYP)=energis)
exten => s,n,Set(CDR(EMPLOYEE)=test)
<cut>
when using .call file rasterisk says:
[Feb 13 20:30:15] VERBOSE[5481] logger.c: -- Executing
[s at macro-nagrywaj:1] Set("Zap/111-1", "SPYGROUP=231") in new stack
[Feb 13 20:30:15] DEBUG[5481] app_macro.c: Executed application: Set
[Feb 13 20:30:15] VERBOSE[5481] logger.c: -- Executing
[s at macro-nagrywaj:2] Set("Zap/111-1", "CDR(PROJEKT)=IT") in new stack
[Feb 13 20:30:15] DEBUG[5481] app_macro.c: Executed application: Set
[Feb 13 20:30:15] VERBOSE[5481] logger.c: -- Executing
[s at macro-nagrywaj:3] Set("Zap/111-1", "CDR(TYP)=energis") in new stack
[Feb 13 20:30:15] DEBUG[5481] app_macro.c: Executed application: Set
[Feb 13 20:30:15] VERBOSE[5481] logger.c: -- Executing
[s at macro-nagrywaj:4] Set("Zap/111-1", "CDR(EMPLOYEE)=test") in new stack
[Feb 13 20:30:15] DEBUG[5481] app_macro.c: Executed application: Set
but Master.csv does not contain CDR info.
cdr_custom.conf
[mappings]
Master.csv =>
"${CDR(clid)}","${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(start)}","${CDR(answer)}","${CDR(end)}","${CDR(duration)}","${CDR(billsec)}","${CDR(disposition)}","${CDR(amaflags)}","${CDR(account
code)}","${CDR(userfield)}","${CDR(uniqueid)}","${CDR(TYP)}","${CDR(SIEC)}","${CDR(PROJEKT)}","${CDR(EMPLOYEE)}"
Checked also on 1.4.16
======================================================================
----------------------------------------------------------------------
kowalma - 02-20-08 06:04
----------------------------------------------------------------------
I've chcked channel like you said:
-- Executing [1495791 at na-miasto-click:1]
Set("Local/289 at do-centrali-3074,1", "SPYGROUP=289") in new stack
-- Executing [1495791 at na-miasto-click:2]
Set("Local/289 at do-centrali-3074,1",
"CALLFILENAME=pomarancza-utrzymanie-anyn.kaws-2008.02.20-12.59.01-495791-289")
in new stack
-- Executing [1495791 at na-miasto-click:3]
Set("Local/289 at do-centrali-3074,1", "CDR(team)=orange") in new stack
-- Executing [1495791 at na-miasto-click:4]
Set("Local/289 at do-centrali-3074,1", "CDR(typ)=ORANGE") in new stack
-- Executing [1495791 at na-miasto-click:5]
Set("Local/289 at do-centrali-3074,1", "CDR(employee)=anya.kaws") in new
stack
-- Executing [1495791 at na-miasto-click:6]
Set("Local/289 at do-centrali-3074,1", "CDR(projekt)=utrzymanie") in new
stack
-- Executing [1495791 at na-miasto-click:8]
Set("Local/289 at do-centrali-3074,1",
"CDR(channel)=Local/289 at do-centrali-3074,1") in new stack
so channel name is from "internal" context (there I call agent, and there
is NoCDR() on this channel), is it possible to change it to detination?
Issue History
Date Modified Username Field Change
======================================================================
02-20-08 06:04 kowalma Note Added: 0082633
======================================================================
More information about the asterisk-bugs
mailing list