summaryrefslogtreecommitdiff
path: root/res/res_phoneprov.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2008-04-11 22:23:34 +0000
committerTerry Wilson <twilson@digium.com>2008-04-11 22:23:34 +0000
commitef8007f6300f7cfcd1dae74548396d81ef9a30c5 (patch)
treedc082bfac667294246df0f199107b7b930cd0f75 /res/res_phoneprov.c
parent9a1b485100d5d9956cafd02088796ca5192c4457 (diff)
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
Diffstat (limited to 'res/res_phoneprov.c')
-rw-r--r--res/res_phoneprov.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c
index 5e658f5e5..5d9ec27e3 100644
--- a/res/res_phoneprov.c
+++ b/res/res_phoneprov.c
@@ -731,7 +731,10 @@ static struct extension *build_extension(struct ast_config *cfg, const char *nam
} else if (i == PP_TIMEZONE) {
/* perfectly ok if tmp is NULL, will set variables based on server's time zone */
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);
}