VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
janusz_1942 at op.pl Guest
|
Posted: Tue Sep 16, 2014 11:42 am Post subject: [asterisk-users] Disabling CDR for all dialed parties in Ast |
|
|
Hello,
is it possible to disable the CDR record creation for all dialed parties? From my limited testing it looks like CDR_PROP(disable) is effective only for the first party (the one specified before the first ampersand in the Dial application argument) and I can't find any way to disable it for the other ones (I think the CDR in question is written after the Dial completes). Is it by design? Is there any other known way?
Here is my simple testing dialplan:
----
[test]
exten => a,1,Set(CDR_PROP(disable)=true)
same => n,Dial(Local/chan1@loc&Local/chan2@loc)
same => n,Hangup()
[loc]
exten => chan1,1,Set(CDR_PROP(disable)=true)
same => n,Answer()
same => n,Wait(2)
same => n,Hangup()
exten => chan2,1,Set(CDR_PROP(disable)=true)
same => n,Answer()
same => n,Wait(3)
same => n,Hangup()
---
The following is the result of "select * from cdr;" on my sqlite cdr backend:
---
1|2014-09-16 18:18:57|"test" <test>|test|SIP/test-00000000|Local/chan2@loc-00000001;1|Dial|Local/chan1@loc&Local/chan2@loc|3|3|ANSWERED|DOCUMENTATION||1410884337.0||
---
Thank you in advance.
Best regards,
Janusz
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
nick at flhsi.com Guest
|
Posted: Tue Sep 16, 2014 11:54 am Post subject: [asterisk-users] Disabling CDR for all dialed parties in Ast |
|
|
Not sure if it'll work for your specific use. But I always use app nocdr.
exten => 1,1,NoCDR
exten => 1,2,Dial(SIP/test,30)
Nick Olsen Network Operations (855) FLSPEED x106
From: "janusz_1942" <janusz_1942@op.pl> Sent: Tuesday, September 16, 2014 12:43 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Disabling CDR for all dialed parties in Asterisk 12
Hello, is it possible to disable the CDR record creation for all dialed parties? From my limited testing it looks like CDR_PROP(disable) is effective only for the first party (the one specified before the first ampersand in the Dial application argument) and I can't find any way to disable it for the other ones (I think the CDR in question is written after the Dial completes). Is it by design? Is there any other known way? Here is my simple testing dialplan: ---- [test] exten => a,1,Set(CDR_PROP(disable)=true) same => n,Dial(Local/chan1@loc&Local/chan2@loc) same => n,Hangup() [loc] exten => chan1,1,Set(CDR_PROP(disable)=true) same => n,Answer() same => n,Wait(2) same => n,Hangup() exten => chan2,1,Set(CDR_PROP(disable)=true) same => n,Answer() same => n,Wait(3) same => n,Hangup() --- The following is the result of "select * from cdr;" on my sqlite cdr backend: --- 1|2014-09-16 18:18:57|"test" <test>|test|SIP/test-00000000|Local/chan2@loc-00000001;1|Dial|Local/chan1@loc&Local/chan2@loc|3|3|ANSWERED|DOCUMENTATION||1410884337.0|| --- Thank you in advance. Best regards, Janusz -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|