diff options
author | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-11 16:46:17 +0000 |
---|---|---|
committer | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-11 16:46:17 +0000 |
commit | 82b615e21fa23e01bebc1c76ce9685963ca8a33c (patch) | |
tree | 313179dabd9d10859131cec164e93213606176b6 /res | |
parent | 332020f2afeba72eed9261b30fd4a13f9475dbcc (diff) |
Add LINEKEYS variable to allow for a user to set the number of keys assigned to a line on a polycom phone
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155934 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_phoneprov.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 5fcb29466..5646d2d02 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -80,6 +80,7 @@ enum pp_variables { PP_CALLERID, PP_TIMEZONE, PP_LINENUMBER, + PP_LINEKEYS, PP_VAR_LIST_LENGTH, /* This entry must always be the last in the list */ }; @@ -98,6 +99,7 @@ static const struct pp_variable_lookup { { PP_CALLERID, "cid_number", "CALLERID" }, { PP_TIMEZONE, "timezone", "TIMEZONE" }, { PP_LINENUMBER, "linenumber", "LINE" }, + { PP_LINEKEYS, "linekeys", "LINEKEYS" }, }; /*! \brief structure to hold file data */ @@ -746,6 +748,10 @@ static struct extension *build_extension(struct ast_config *cfg, const char *nam tmp = "1"; } exten->index = atoi(tmp); + } else if (i == PP_LINEKEYS) { + if (!tmp) { + tmp = "1"; + } } if (tmp && (var = ast_var_assign(pp_variable_list[i].template_var, tmp))) { |