[asterisk-commits] twilson: trunk r114080 - /trunk/res/res_phoneprov.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 11 17:23:35 CDT 2008
Author: twilson
Date: Fri Apr 11 17:23:34 2008
New Revision: 114080
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114080
Log:
Make sure that ${LINE} is set even if linenumber is not set in users.conf
Modified:
trunk/res/res_phoneprov.c
Modified: trunk/res/res_phoneprov.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_phoneprov.c?view=diff&rev=114080&r1=114079&r2=114080
==============================================================================
--- trunk/res/res_phoneprov.c (original)
+++ trunk/res/res_phoneprov.c Fri Apr 11 17:23:34 2008
@@ -731,7 +731,10 @@
} 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);
}
More information about the asterisk-commits
mailing list