From: <abe...@us...> - 2014-03-21 15:22:06
|
Revision: 6474 http://sourceforge.net/p/astlinux/code/6474 Author: abelbeck Date: 2014-03-21 15:22:04 +0000 (Fri, 21 Mar 2014) Log Message: ----------- phoneprov-tools, add 'auto_account_case=lower|upper' option to template [general] context Modified Paths: -------------- branches/1.0/package/phoneprov-tools/phoneprov-build branches/1.0/package/phoneprov-tools/templates/snom320.conf branches/1.0/package/phoneprov-tools/templates/spa942-no-reg.conf branches/1.0/package/phoneprov-tools/templates/yealink-2line.conf branches/1.0/package/phoneprov-tools/templates/yealink.conf Modified: branches/1.0/package/phoneprov-tools/phoneprov-build =================================================================== --- branches/1.0/package/phoneprov-tools/phoneprov-build 2014-03-20 19:40:53 UTC (rev 6473) +++ branches/1.0/package/phoneprov-tools/phoneprov-build 2014-03-21 15:22:04 UTC (rev 6474) @@ -275,6 +275,16 @@ auto_account_prefix="$(extract_var auto_account_prefix)" auto_account_suffix="$(extract_var auto_account_suffix)" +auto_account_case="$(extract_var auto_account_case)" +case $auto_account_case in + upper) auto_account_prefix="$(echo "$auto_account_prefix" | tr '[:lower:]' '[:upper:]')" + auto_account_suffix="$(echo "$auto_account_suffix" | tr '[:lower:]' '[:upper:]')" + ;; + lower) auto_account_prefix="$(echo "$auto_account_prefix" | tr '[:upper:]' '[:lower:]')" + auto_account_suffix="$(echo "$auto_account_suffix" | tr '[:upper:]' '[:lower:]')" + ;; +esac + prov_path="$(extract_var prov_path)" if [ -z "$prov_path" ]; then prov_path="$PHONEPROV_DIR/$vendor" Modified: branches/1.0/package/phoneprov-tools/templates/snom320.conf =================================================================== --- branches/1.0/package/phoneprov-tools/templates/snom320.conf 2014-03-20 19:40:53 UTC (rev 6473) +++ branches/1.0/package/phoneprov-tools/templates/snom320.conf 2014-03-21 15:22:04 UTC (rev 6474) @@ -11,6 +11,7 @@ macaddress_case=upper #auto_account_prefix= auto_account_suffix=_@MAC4@_@MODEL@ +auto_account_case=lower #dialplan_path=/mnt/kd/asterisk/includes dialplan_file=astlinux-phoneprov-exten.conf Modified: branches/1.0/package/phoneprov-tools/templates/spa942-no-reg.conf =================================================================== --- branches/1.0/package/phoneprov-tools/templates/spa942-no-reg.conf 2014-03-20 19:40:53 UTC (rev 6473) +++ branches/1.0/package/phoneprov-tools/templates/spa942-no-reg.conf 2014-03-21 15:22:04 UTC (rev 6474) @@ -11,6 +11,7 @@ macaddress_case=lower #auto_account_prefix= auto_account_suffix=_@MAC4@_@MODEL@ +#auto_account_case=lower #dialplan_path=/mnt/kd/asterisk/includes dialplan_file=astlinux-phoneprov-exten.conf Modified: branches/1.0/package/phoneprov-tools/templates/yealink-2line.conf =================================================================== --- branches/1.0/package/phoneprov-tools/templates/yealink-2line.conf 2014-03-20 19:40:53 UTC (rev 6473) +++ branches/1.0/package/phoneprov-tools/templates/yealink-2line.conf 2014-03-21 15:22:04 UTC (rev 6474) @@ -11,6 +11,7 @@ macaddress_case=lower #auto_account_prefix= auto_account_suffix=_@MAC4@_@MODEL@ +#auto_account_case=lower #dialplan_path=/mnt/kd/asterisk/includes dialplan_file=astlinux-phoneprov-exten.conf Modified: branches/1.0/package/phoneprov-tools/templates/yealink.conf =================================================================== --- branches/1.0/package/phoneprov-tools/templates/yealink.conf 2014-03-20 19:40:53 UTC (rev 6473) +++ branches/1.0/package/phoneprov-tools/templates/yealink.conf 2014-03-21 15:22:04 UTC (rev 6474) @@ -11,6 +11,7 @@ macaddress_case=lower #auto_account_prefix= auto_account_suffix=_@MAC4@_@MODEL@ +#auto_account_case=lower #dialplan_path=/mnt/kd/asterisk/includes dialplan_file=astlinux-phoneprov-exten.conf This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |