Hi mflorell,
I apologize for confusing the issue.
http://www.voip-info.org/wiki/view/Aste ... pAddHeader, Just wasn't sure how it would be done from vici or through the AMI and made an assumption that if it was added to the sip header I would somehow be able to stick it in the CDR.
exten => s,1,Set(CDR(accountcode)=1234) is how I would set the account code normally.
Anyway, I have found a work around. (I Think
)
I did a DumpChan in the dial plan and found a variable that you guys add "CAMPCUST=TEST1". This is the campaign ID right?
- Code: Select all
================================================================================
Info:
Name= Local/8478729009@default-dc56,2
Type= Local
UniqueID= 1392385969.4304
CallerID= 0000000001
CallerIDName= V2141552470000000193
DNIDDigits= (N/A)
RDNIS= (N/A)
State= Ring (4)
Rings= 0
NativeFormat= 0x40 (slin)
WriteFormat= 0x40 (slin)
ReadFormat= 0x40 (slin)
1stFileDescriptor= -1
Framesin= 0
Framesout= 0
TimetoHangup= 0
ElapsedTime= 0h0m0s
Context= default
Extension= 8478729009
Priority= 2
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
AGISTATUS=SUCCESS
CAMPCUST=TEST1
So, by adding "exten => _9999X.,3,set(CDR(accountcode)=${CAMPCUST})" to the dial plan, I now have separate CDR's for each of my campaigns. Seems to be working - any reason why I shouldn't do it this way?
Regards,
Rudolf