diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-10 06:00:17 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-10 06:00:17 +0000 |
commit | c1e327a7138c492ca2bb4e88d7a0d80d20758cc5 (patch) | |
tree | 08d12ad916478a026bd64616ef36965ea2d85cab /apps/app_dial.c | |
parent | 32b4c314f95fc51e6ed65e7f646b35affd1a2eb8 (diff) |
Mon Mar 10 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-x | apps/app_dial.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index cd26974fd..8743e0baa 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -64,6 +64,7 @@ static char *descrip = " 'm' -- provide hold music to the calling party until answered.\n" " 'd' -- data-quality (modem) call (minimum delay).\n" " 'H' -- allow caller to hang up by hitting *.\n" +" 'C' -- reset call detail record for this call.\n" " 'P[(x)]' -- privacy mode, using 'x' as database if provided.\n" " In addition to transferring the call, a call may be parked and then picked\n" "up by another user.\n" @@ -295,6 +296,7 @@ static int dial_exec(struct ast_channel *chan, void *data) int allowredir=0; int allowdisconnect=0; int privacy=0; + int resetcdr=0; char numsubst[AST_MAX_EXTENSION]; char restofit[AST_MAX_EXTENSION]; char *transfer = NULL; @@ -364,8 +366,12 @@ static int dial_exec(struct ast_channel *chan, void *data) } else if (strchr(transfer, 'P')) { /* No specified privdb */ privacy = 1; + } else if (strchr(transfer, 'C')) { + resetcdr = 1; } } + if (resetcdr && chan->cdr) + ast_cdr_reset(chan->cdr, 0); if (!strlen(privdb) && privacy) { /* If privdb is not specified and we are using privacy, copy from extension */ strncpy(privdb, chan->exten, sizeof(privdb) - 1); |