mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
Make sure that ${LINE} is set even if linenumber is not set in users.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -731,7 +731,10 @@ static struct extension *build_extension(struct ast_config *cfg, const char *nam
|
|||||||
} else if (i == PP_TIMEZONE) {
|
} else if (i == PP_TIMEZONE) {
|
||||||
/* perfectly ok if tmp is NULL, will set variables based on server's time zone */
|
/* perfectly ok if tmp is NULL, will set variables based on server's time zone */
|
||||||
set_timezone_variables(exten->headp, tmp);
|
set_timezone_variables(exten->headp, tmp);
|
||||||
} else if (i == PP_LINENUMBER && tmp) {
|
} else if (i == PP_LINENUMBER) {
|
||||||
|
if (!tmp) {
|
||||||
|
tmp = "1";
|
||||||
|
}
|
||||||
exten->index = atoi(tmp);
|
exten->index = atoi(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user