static int autologoff;
static int wrapuptime;
static int ackcall;
+static int endcall;
static int multiplelogin = 1;
static int autologoffunavail = 0;
p->acknowledged = 1;
ast_frfree(f);
f = &answer_frame;
- } else if (f->subclass == '*') {
+ } else if (f->subclass == '*' && endcall) {
/* terminates call */
ast_frfree(f);
f = NULL;
autologoff = 0;
wrapuptime = 0;
ackcall = 0;
+ endcall = 1;
cfg = ast_config_load(config);
if (!cfg) {
ast_log(LOG_NOTICE, "No agent configuration found -- agent support disabled\n");
ackcall = 1;
else
ackcall = 0;
+ } else if (!strcasecmp(v->name, "endcall")) {
+ endcall = ast_true(v->value);
} else if (!strcasecmp(v->name, "wrapuptime")) {
wrapuptime = atoi(v->value);
if (wrapuptime < 0)
;
;ackcall=no
;
+; Define endcall to allow an agent to hangup a call by '*'.
+; Default is "yes". Set this to "no" to ignore '*'.
+;
+;endcall=yes
+;
; Define wrapuptime. This is the minimum amount of time when
; after disconnecting before the caller can receive a new call
; note this is in milliseconds.