diff options
author | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-10 06:00:17 +0000 |
---|---|---|
committer | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-10 06:00:17 +0000 |
commit | b8ed719ad6acba6f213f737749c9823af2836708 (patch) | |
tree | 08d12ad916478a026bd64616ef36965ea2d85cab /apps/app_dial.c | |
parent | a5b75bca3546f01dbcf717e036fb85da8a8a8a88 (diff) |
Mon Mar 10 07:00:00 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@637 f38db490-d61c-443f-a65b-d21fe96a405b
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); |