[asterisk-commits] dbailey: trunk r155934 - in /trunk: phoneprov/ res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 11 10:46:17 CST 2008


Author: dbailey
Date: Tue Nov 11 10:46:17 2008
New Revision: 155934

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155934
Log:
Add LINEKEYS variable to allow for a user to set the number of keys assigned to a line on a polycom phone

Modified:
    trunk/phoneprov/polycom_line.xml
    trunk/res/res_phoneprov.c

Modified: trunk/phoneprov/polycom_line.xml
URL: http://svn.digium.com/view/asterisk/trunk/phoneprov/polycom_line.xml?view=diff&rev=155934&r1=155933&r2=155934
==============================================================================
--- trunk/phoneprov/polycom_line.xml (original)
+++ trunk/phoneprov/polycom_line.xml Tue Nov 11 10:46:17 2008
@@ -1,1 +1,1 @@
-reg.${LINE}.displayName="${DISPLAY_NAME}" reg.${LINE}.address="${USERNAME}" reg.${LINE}.label="${LABEL}" reg.${LINE}.type="private" reg.${LINE}.thirdPartyName="" reg.${LINE}.auth.userId="${USERNAME}" reg.${LINE}.auth.password="${SECRET}" reg.${LINE}.server.1.address="${SERVER}" reg.${LINE}.server.1.port="${SERVER_PORT}" reg.${LINE}.server.1.transport="DNSnaptr" reg.${LINE}.server.1.expires="300" reg.${LINE}.server.1.register="1" reg.${LINE}.server.1.retryTimeOut="" reg.${LINE}.server.1.retryMaxCount="" reg.${LINE}.server.1.expires.lineSeize="" reg.${LINE}.acd-login-logout="0" reg.${LINE}.acd-agent-available="0" reg.${LINE}.ringType="2" reg.${LINE}.lineKeys="1" reg.${LINE}.callsPerLineKey="1"
+reg.${LINE}.displayName="${DISPLAY_NAME}" reg.${LINE}.address="${USERNAME}" reg.${LINE}.label="${LABEL}" reg.${LINE}.type="private" reg.${LINE}.thirdPartyName="" reg.${LINE}.auth.userId="${USERNAME}" reg.${LINE}.auth.password="${SECRET}" reg.${LINE}.server.1.address="${SERVER}" reg.${LINE}.server.1.port="${SERVER_PORT}" reg.${LINE}.server.1.transport="DNSnaptr" reg.${LINE}.server.1.expires="300" reg.${LINE}.server.1.register="1" reg.${LINE}.server.1.retryTimeOut="" reg.${LINE}.server.1.retryMaxCount="" reg.${LINE}.server.1.expires.lineSeize="" reg.${LINE}.acd-login-logout="0" reg.${LINE}.acd-agent-available="0" reg.${LINE}.ringType="2" reg.${LINE}.lineKeys="${LINEKEYS}" reg.${LINE}.callsPerLineKey="1"

Modified: trunk/res/res_phoneprov.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_phoneprov.c?view=diff&rev=155934&r1=155933&r2=155934
==============================================================================
--- trunk/res/res_phoneprov.c (original)
+++ trunk/res/res_phoneprov.c Tue Nov 11 10:46:17 2008
@@ -80,6 +80,7 @@
 	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 @@
 	{ 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 @@
 				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))) {




More information about the asterisk-commits mailing list