(closes issue #6113)
[asterisk/asterisk.git] / channels / chan_skinny.c
index 198b464..c4458ba 100644 (file)
@@ -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));