mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
(closes issue #6113)
Reported by: oej Tested by: jpeeler This patch implements multiple parking lots for parked calls. The default parkinglot is used by default, however setting the channel variable PARKINGLOT in the dialplan will allow use of any other configured parkinglot. See configs/features.conf.sample for more details on setting up another non-default parkinglot. Also, one can (currently) set the default parkinglot to use in the driver configuration file via the parkinglot option. Patch initially written by oej, brought up to date and finalized by mvanbaak, and then stabilized and converted to astobj2 by me. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -968,6 +968,7 @@ static char mohsuggest[MAX_MUSICCLASS] = "";
|
||||
static char cid_num[AST_MAX_EXTENSION] = "";
|
||||
static char cid_name[AST_MAX_EXTENSION] = "";
|
||||
static char linelabel[AST_MAX_EXTENSION] ="";
|
||||
static char parkinglot[AST_MAX_CONTEXT] ="";
|
||||
static int nat = 0;
|
||||
static ast_group_t cur_callergroup = 0;
|
||||
static ast_group_t cur_pickupgroup = 0;
|
||||
@@ -1162,6 +1163,7 @@ struct skinny_line {
|
||||
char vmexten[AST_MAX_EXTENSION];
|
||||
char regexten[AST_MAX_EXTENSION]; /* Extension for auto-extensions */
|
||||
char regcontext[AST_MAX_CONTEXT]; /* Context for auto-extensions */
|
||||
char parkinglot[AST_MAX_CONTEXT]; /* Parkinglot for parkedcalls */
|
||||
char mohinterpret[MAX_MUSICCLASS];
|
||||
char mohsuggest[MAX_MUSICCLASS];
|
||||
char lastnumberdialed[AST_MAX_EXTENSION]; /* Last number that was dialed - used for redial */
|
||||
@@ -3024,6 +3026,8 @@ static struct skinny_device *build_device(const char *cat, struct ast_variable *
|
||||
ast_copy_string(linelabel, v->value, sizeof(linelabel));
|
||||
} else if (!strcasecmp(v->name, "setvar")) {
|
||||
chanvars = add_var(v->value, chanvars);
|
||||
} else if ( !strcasecmp(v->name, "parkinglot")) {
|
||||
ast_copy_string(parkinglot, v->value, sizeof(parkinglot));
|
||||
} else if (!strcasecmp(v->name, "speeddial")) {
|
||||
if (!(sd = ast_calloc(1, sizeof(*sd)))) {
|
||||
return NULL;
|
||||
@@ -3077,6 +3081,7 @@ static struct skinny_device *build_device(const char *cat, struct ast_variable *
|
||||
ast_copy_string(l->cid_num, cid_num, sizeof(l->cid_num));
|
||||
ast_copy_string(l->cid_name, cid_name, sizeof(l->cid_name));
|
||||
ast_copy_string(l->label, linelabel, sizeof(l->label));
|
||||
ast_copy_string(l->parkinglot, parkinglot, sizeof(l->parkinglot));
|
||||
ast_copy_string(l->language, language, sizeof(l->language));
|
||||
ast_copy_string(l->mohinterpret, mohinterpret, sizeof(l->mohinterpret));
|
||||
ast_copy_string(l->mohsuggest, mohsuggest, sizeof(l->mohsuggest));
|
||||
|
Reference in New Issue
Block a user