diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-11 22:23:34 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-11 22:23:34 +0000 |
commit | dfa6c29ac823d0813d7bcc2def920458701399d9 (patch) | |
tree | dc082bfac667294246df0f199107b7b930cd0f75 /res | |
parent | d5a04f118627ab007e0420485be4019bff411fd0 (diff) |
Make sure that ${LINE} is set even if linenumber is not set in users.conf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114080 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_phoneprov.c | 5 |
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); } |